body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.changelog-widget {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.changelog-entry {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-title {
    font-size: 1.2em;
    font-weight: bold;
}

.changelog-date {
    color: #999;
    font-size: 0.9em;
}

.changelog-description {
    margin-top: 5px;
    font-size: 1em;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-entry {
    position: relative;
    margin: 20px 0;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-entry:last-child::before {
    display: none;
}

.timeline-title {
    font-weight: bold;
}

.timeline-date {
    color: #999;
    font-size: 0.9em;
}

.timeline-description {
    margin-top: 5px;
    font-size: 1em;
}

/* ===== BASE WIDGET STYLES ===== */
#chanma-frontend-widget {
    position: fixed;
    z-index: 99999;
    width: 320px;
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#chanma-frontend-widget:hover {
    transform: translateY(-3px);
}

#chanma-frontend-widget h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#chanma-frontend-widget .chanma-admin-notice {
    margin: 0 0 15px 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#chanma-frontend-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#chanma-frontend-widget li {
    padding: 12px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chanma-frontend-widget strong {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

#chanma-frontend-widget .chanma-change-text {
    flex: 1;
    font-size: 13px;
}

/* ===== MODERN THEME ===== */
#chanma-frontend-widget.chanma-theme-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#chanma-frontend-widget.chanma-theme-modern:hover {
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

#chanma-frontend-widget.chanma-theme-modern h3::before {
    content: '🚀';
}

#chanma-frontend-widget.chanma-theme-modern h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

#chanma-frontend-widget.chanma-theme-modern li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#chanma-frontend-widget.chanma-theme-modern strong {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

/* ===== VINTAGE THEME ===== */
#chanma-frontend-widget.chanma-theme-vintage {
    background: linear-gradient(135deg, #f4f1de 0%, #e9c46a 100%);
    color: #6f4e37;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(111, 78, 55, 0.2);
    border: 3px solid #d2b48c;
    position: relative;
}

#chanma-frontend-widget.chanma-theme-vintage::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(111, 78, 55, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

#chanma-frontend-widget.chanma-theme-vintage:hover {
    box-shadow: 0 18px 35px rgba(111, 78, 55, 0.3);
}

#chanma-frontend-widget.chanma-theme-vintage h3::before {
    content: '�';
}

#chanma-frontend-widget.chanma-theme-vintage h3 {
    border-bottom: 2px solid rgba(111, 78, 55, 0.3);
    padding-bottom: 15px;
    font-family: 'Georgia', serif;
}

#chanma-frontend-widget.chanma-theme-vintage li:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateX(3px);
}

#chanma-frontend-widget.chanma-theme-vintage strong {
    background: #8b4513;
    color: #f4f4f4;
    font-family: 'Courier New', monospace;
}

/* ===== DARK THEME ===== */
#chanma-frontend-widget.chanma-theme-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f0f0f0;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

#chanma-frontend-widget.chanma-theme-dark:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(1.02);
}

/* Effetto click per easter egg */
#chanma-frontend-widget.chanma-theme-dark.chanma-dark-clicked {
    transform: scale(0.98);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    filter: brightness(1.2);
}

#chanma-frontend-widget.chanma-theme-dark h3::before {
    content: '🌙';
}

#chanma-frontend-widget.chanma-theme-dark h3 {
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 15px;
    color: #00d4ff;
}

#chanma-frontend-widget.chanma-theme-dark li:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

#chanma-frontend-widget.chanma-theme-dark strong {
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    color: #1a1a1a;
    font-weight: 900;
}

/* ===== COLORFUL THEME ===== */
#chanma-frontend-widget.chanma-theme-colorful {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    animation: colorfulGlow 3s ease-in-out infinite alternate;
}

@keyframes colorfulGlow {
    0% { box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 20px 40px rgba(78, 205, 196, 0.3); }
    100% { box-shadow: 0 20px 40px rgba(69, 183, 209, 0.3); }
}

#chanma-frontend-widget.chanma-theme-colorful h3::before {
    content: '🎨';
}

#chanma-frontend-widget.chanma-theme-colorful h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#chanma-frontend-widget.chanma-theme-colorful li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px) scale(1.02);
}

#chanma-frontend-widget.chanma-theme-colorful strong {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 800;
}

/* ===== GLASS THEME ===== */
#chanma-frontend-widget.chanma-theme-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#chanma-frontend-widget.chanma-theme-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

#chanma-frontend-widget.chanma-theme-glass h3::before {
    content: '💎';
}

#chanma-frontend-widget.chanma-theme-glass h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

#chanma-frontend-widget.chanma-theme-glass li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

#chanma-frontend-widget.chanma-theme-glass strong {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    backdrop-filter: blur(10px);
}

/* ===== MINIMAL THEME ===== */
/* Minimal Theme */
#chanma-frontend-widget.chanma-theme-minimal {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-header {
    background: #f8f8f8;
    color: #000000;
    border-bottom: 1px solid #e0e0e0;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-entry {
    border-bottom: 1px solid #e0e0e0;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-entry:hover {
    background: #f8f8f8;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-version {
    background: #e0e0e0;
    color: #000000;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-type {
    color: #000000;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-close {
    color: #000000;
}

#chanma-frontend-widget.chanma-theme-minimal .chanma-close:hover {
    background: #e0e0e0;
}

/* Roadmap Frontend Styles */
.chanma-roadmap-frontend {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chanma-roadmap-header {
    text-align: center;
    margin-bottom: 40px;
}

.chanma-roadmap-title {
    font-size: 32px;
    color: #333;
    margin: 0 0 10px 0;
}

.chanma-roadmap-timeline {
    position: relative;
}

.chanma-roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4caf50 0%, #2196f3 50%, #ff9800 100%);
    border-radius: 3px;
}

.chanma-roadmap-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.chanma-roadmap-connector {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 3px;
    background: #ddd;
}

.chanma-roadmap-icon {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 50%;
    font-size: 16px;
    z-index: 2;
}

.chanma-priority-low .chanma-roadmap-icon { border-color: #4caf50; }
.chanma-priority-medium .chanma-roadmap-icon { border-color: #ff9800; }
.chanma-priority-high .chanma-roadmap-icon { border-color: #f44336; }
.chanma-priority-critical .chanma-roadmap-icon { border-color: #e91e63; }

.chanma-roadmap-content {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.chanma-roadmap-content:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.chanma-roadmap-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chanma-roadmap-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.chanma-roadmap-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chanma-status-planned { background: #e3f2fd; color: #1976d2; }
.chanma-status-in-progress { background: #fff3e0; color: #f57c00; }
.chanma-status-completed { background: #e8f5e8; color: #388e3c; }
.chanma-status-on-hold { background: #fce4ec; color: #c2185b; }

.chanma-roadmap-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.chanma-roadmap-progress {
    margin: 15px 0;
}

.chanma-progress-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.chanma-progress-bar {
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.chanma-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.chanma-roadmap-deadline {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chanma-roadmap-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chanma-roadmap-frontend {
        padding: 15px;
    }
    
    .chanma-roadmap-item {
        padding-left: 60px;
    }
    
    .chanma-roadmap-timeline::before {
        left: 20px;
    }
    
    .chanma-roadmap-icon {
        left: 5px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .chanma-roadmap-connector {
        left: 10px;
        width: 15px;
    }
    
    .chanma-roadmap-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* === GUTENBERG BLOCKS WRAPPER STYLES === */

/* 📋 Changelog Block Wrapper */
.wpcm-changelog-block {
    margin: 2rem 0;
    clear: both;
}

.wpcm-changelog-block .chanma-changelog-frontend {
    margin: 0;
}

/* 🗺️ Roadmap Block Wrapper */
.wpcm-roadmap-block {
    margin: 2rem 0;
    clear: both;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
}

.wpcm-roadmap-block .chanma-roadmap-frontend {
    margin: 0;
    width: 100%;
    display: block;
    visibility: visible;
}

/* Fix per eventuali problemi di visibilità */
.wp-block-wpcm-roadmap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.wp-block-wpcm-changelog {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* === THEME VARIATIONS === */
.chanma-roadmap-theme-dark {
    background: #1a1a1a;
    color: #fff;
}

.chanma-roadmap-theme-dark .chanma-roadmap-content {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

.chanma-roadmap-theme-dark .chanma-roadmap-item-title {
    color: #fff;
}

.chanma-roadmap-theme-colorful .chanma-roadmap-content {
    background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(78,205,196,0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ===== WIDGET CONTROLS ===== */
.chanma-widget-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.chanma-widget-control {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.chanma-widget-control:hover {
    opacity: 1;
    transform: scale(1.1);
}

.chanma-minimize {
    background: #ffc107;
    color: #333;
}

.chanma-close {
    background: #dc3545;
    color: white;
}

/* Theme-specific control styles */
.chanma-theme-modern .chanma-widget-control {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chanma-theme-vintage .chanma-widget-control {
    background: rgba(139, 69, 19, 0.8);
    color: #f4f4f4;
}

.chanma-theme-dark .chanma-minimize {
    background: #00d4ff;
    color: #1a1a1a;
}

.chanma-theme-dark .chanma-close {
    background: #ff0080;
    color: white;
}

.chanma-theme-colorful .chanma-widget-control {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.chanma-theme-glass .chanma-widget-control {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    backdrop-filter: blur(10px);
}

.chanma-theme-minimal .chanma-minimize {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.chanma-theme-minimal .chanma-close {
    background: #333;
    color: white;
}

/* ===== WIDGET POSITIONS ===== */
.chanma-widget-bottom-right { 
    bottom: 20px; 
    right: 20px;
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chanma-widget-bottom-left { 
    bottom: 20px; 
    left: 20px;
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chanma-widget-top-right { 
    top: 40px; 
    right: 20px;
    animation: slideInFromTop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chanma-widget-top-left { 
    top: 40px; 
    left: 20px;
    animation: slideInFromTop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFromRight {
    from { 
        transform: translateX(400px) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInFromLeft {
    from { 
        transform: translateX(-400px) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInFromTop {
    from { 
        transform: translateY(-400px) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* ===== SCROLLBAR PERSONALIZZATA ===== */
#chanma-frontend-widget::-webkit-scrollbar {
    width: 6px;
}

#chanma-frontend-widget::-webkit-scrollbar-track {
    background: transparent;
}

#chanma-frontend-widget::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

#chanma-frontend-widget::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4);
}

/* Theme-specific scrollbars */
.chanma-theme-modern::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.chanma-theme-dark::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
}

.chanma-theme-vintage::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.5);
}

/* ===== STATO MINIMIZZATO ===== */
.chanma-widget-minimized {
    max-height: 60px !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

.chanma-widget-minimized ul {
    display: none;
}

.chanma-widget-minimized h3 {
    margin: 0 !important;
    padding: 0 10px 0 0 !important;
    border: none !important;
    font-size: 16px !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    #chanma-frontend-widget {
        width: 280px !important;
        font-size: 13px;
    }
    
    .chanma-widget-bottom-right,
    .chanma-widget-top-right {
        right: 10px;
    }
    
    .chanma-widget-bottom-left,
    .chanma-widget-top-left {
        left: 10px;
    }
    
    .chanma-widget-bottom-right,
    .chanma-widget-bottom-left {
        bottom: 10px;
    }
}

/* Dark Mode Easter Egg Styles */
.chanma-easter-egg-frontend {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 35px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 99999;
    text-align: center;
    max-width: 450px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.chanma-easter-egg-frontend.show {
    transform: translate(-50%, -50%) scale(1);
}

.chanma-celebration-frontend {
    animation: celebrationFrontend 4s ease-in-out;
}

@keyframes celebrationFrontend {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.03) rotate(2deg); }
    50% { transform: scale(1.01) rotate(-2deg); }
    75% { transform: scale(1.03) rotate(1deg); }
}

.chanma-celebration-frontend::before {
    content: '🌙✨🎉🌟🔮💫🎊🏆';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    pointer-events: none;
    animation: confettiFrontend 4s ease-in-out;
    letter-spacing: 30px;
}

@keyframes confettiFrontend {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

/* ===========================
   CHANGELOG SHORTCODE STYLES
   =========================== */

.chanma-changelog-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chanma-changelog-header {
    text-align: center;
    margin-bottom: 40px;
}

.chanma-changelog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--chanma-primary-color, #667eea) 0%, var(--chanma-secondary-color, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chanma-changelog-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.chanma-changelog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

/* Column layouts */
.chanma-columns-2 .chanma-changelog-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.chanma-columns-3 .chanma-changelog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.chanma-changelog-entry {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.chanma-changelog-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chanma-changelog-entry-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e8eeff;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chanma-changelog-version {
    background: linear-gradient(135deg, var(--chanma-primary-color, #667eea) 0%, var(--chanma-secondary-color, #764ba2) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(var(--chanma-primary-color, #667eea), 0.3);
}

.chanma-changelog-type {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Badge types with custom colors */
.chanma-changelog-type.chanma-type-feature {
    background-color: var(--chanma-feature-color, #10b981) !important;
}

.chanma-changelog-type.chanma-type-bugfix {
    background-color: var(--chanma-bugfix-color, #ef4444) !important;
}

.chanma-changelog-type.chanma-type-improvement {
    background-color: var(--chanma-improvement-color, #3b82f6) !important;
}

.chanma-changelog-type.chanma-type-security {
    background-color: #f59e0b !important;
}

.chanma-changelog-type.chanma-type-performance {
    background-color: #8b5cf6 !important;
}

.chanma-changelog-type.chanma-type-ui {
    background-color: #ec4899 !important;
}



.chanma-changelog-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    justify-self: end;
}

.chanma-changelog-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    justify-self: end;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.chanma-changelog-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a6fd8;
}

.chanma-toggle-icon {
    transition: transform 0.3s ease;
}

.chanma-changelog-entry-title {
    margin: 0;
    padding: 0 24px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.chanma-changelog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.chanma-changelog-content.chanma-expanded {
    max-height: none !important;
    padding: 0 24px 24px;
}

.chanma-changelog-content-inner {
    padding-top: 16px;
}

.chanma-changelog-content-inner p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #444;
}

.chanma-changelog-content-inner ul,
.chanma-changelog-content-inner ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.chanma-changelog-content-inner li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #444;
}

.chanma-changelog-content-inner h4,
.chanma-changelog-content-inner h5 {
    margin: 20px 0 12px 0;
    color: #1a1a1a;
}

.chanma-changelog-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
}

.chanma-changelog-empty p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Theme Variations */
.chanma-theme-minimal .chanma-changelog-entry {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
}

.chanma-theme-minimal .chanma-changelog-entry-header {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.chanma-theme-minimal .chanma-changelog-version {
    background: #1a1a1a;
    box-shadow: none;
}

.chanma-theme-modern .chanma-changelog-entry {
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.chanma-theme-modern .chanma-changelog-entry-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.chanma-theme-modern .chanma-changelog-entry-title {
    color: #1a1a1a;
}

.chanma-theme-modern .chanma-changelog-date {
    color: rgba(255, 255, 255, 0.9);
}

.chanma-theme-modern .chanma-changelog-toggle {
    color: white;
}

.chanma-theme-modern .chanma-changelog-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chanma-changelog-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .chanma-changelog-title {
        font-size: 2rem;
    }
    
    .chanma-changelog-grid {
        gap: 20px;
    }
    
    .chanma-columns-2 .chanma-changelog-grid,
    .chanma-columns-3 .chanma-changelog-grid {
        grid-template-columns: 1fr;
    }
    
    .chanma-changelog-entry-header {
        padding: 16px 20px 12px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .chanma-changelog-version,
    .chanma-changelog-type {
        justify-self: start;
    }
    
    .chanma-changelog-date,
    .chanma-changelog-toggle {
        justify-self: start;
    }
    
    .chanma-changelog-entry-title {
        padding: 0 20px 16px;
        font-size: 1.2rem;
    }
    
    .chanma-changelog-content.chanma-expanded {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .chanma-changelog-title {
        font-size: 1.8rem;
    }
    
    .chanma-changelog-entry-header {
        padding: 12px 16px 8px;
    }
    
    .chanma-changelog-entry-title {
        padding: 0 16px 12px;
        font-size: 1.1rem;
    }
    
    .chanma-changelog-content.chanma-expanded {
        padding: 0 16px 16px;
    }
}

/* Animation for expand/collapse */
.chanma-expanded .chanma-toggle-icon {
    transform: rotate(180deg);
}

.chanma-expanded .chanma-toggle-text::after {
    content: ' dettagli';
}

/* Expand/Collapse All Controls */
.chanma-changelog-controls {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.chanma-control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.chanma-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.chanma-control-btn:active {
    transform: translateY(0);
}

/* Animation for entry changes */
.chanma-changelog-entry.chanma-animating {
    animation: chanma-pulse 0.4s ease;
}

@keyframes chanma-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .chanma-changelog-controls {
        margin-top: 16px;
        gap: 8px;
    }
    
    .chanma-control-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ===== CHANGELOG CONTENT SECTIONS ===== */
.chanma-changelog-notes {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eeff;
}

.chanma-changelog-notes h5 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chanma-changelog-section {
    margin-bottom: 24px;
}

.chanma-changelog-section:last-child {
    margin-bottom: 0;
}

.chanma-changelog-section h5 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f4ff;
}

.chanma-changelog-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chanma-changelog-list li {
    margin: 0 0 8px 0;
    padding: 12px 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    transition: all 0.2s ease;
}

.chanma-changelog-list li:hover {
    background: #f0f4ff;
    transform: translateX(4px);
}

.chanma-list-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

/* Features styling */
.chanma-features-list li {
    border-left-color: #4caf50;
    background: #f1f8e9;
}

.chanma-features-list li:hover {
    background: #e8f5e8;
}

/* Bug fixes styling */
.chanma-bugfixes-list li {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.chanma-bugfixes-list li:hover {
    background: #ffe0b2;
}

/* Improvements styling */
.chanma-improvements-list li {
    border-left-color: #2196f3;
    background: #e3f2fd;
}

.chanma-improvements-list li:hover {
    background: #bbdefb;
}

/* Security styling */
.chanma-security-list li {
    border-left-color: #f44336;
    background: #ffebee;
}

.chanma-security-list li:hover {
    background: #ffcdd2;
}

/* Removed styling */
.chanma-removed-list li {
    border-left-color: #9e9e9e;
    background: #f5f5f5;
    opacity: 0.8;
}

.chanma-removed-list li:hover {
    background: #eeeeee;
    opacity: 1;
}

/* Dark theme adjustments for content sections */
.chanma-theme-modern .chanma-changelog-notes,
.chanma-theme-modern .chanma-changelog-section h5 {
    border-color: rgba(255, 255, 255, 0.2);
}

.chanma-theme-modern .chanma-changelog-list li {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

.chanma-theme-modern .chanma-changelog-list li:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments for content sections */
@media (max-width: 768px) {
    .chanma-changelog-section {
        margin-bottom: 20px;
    }
    
    .chanma-changelog-section h5 {
        font-size: 1rem;
    }
    
    .chanma-changelog-list li {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .chanma-list-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chanma-changelog-notes {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .chanma-changelog-section {
        margin-bottom: 16px;
    }
    
    .chanma-changelog-section h5 {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .chanma-changelog-list li {
        padding: 8px 10px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

/* 📋 CHANGELOG EXPANSION STYLES */
.chanma-changelog-entry.wcm-expandable .chanma-changelog-entry-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chanma-changelog-entry.wcm-expandable .chanma-changelog-entry-header:hover {
    background-color: #f8f9fa;
}

.chanma-changelog-content.wcm-hidden {
    display: none !important;
}

.chanma-toggle-icon {
    transition: transform 0.3s ease;
}

.chanma-changelog-entry.wcm-expanded .chanma-toggle-icon {
    transform: rotate(180deg);
}

.wcm-clickable {
    border-radius: 8px;
    padding: 12px;
    margin: -12px;
}

.chanma-changelog-entry-header .chanma-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanma-toggle-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    transition: transform 0.2s ease;
}

/* 📋 SHORTCODE FRONTEND STYLES */
.wcm-changelog-frontend,
.chanma-changelog-frontend {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wcm-changelog-header,
.chanma-changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 20px;
    margin: -30px -30px 35px -30px;
    border-radius: 12px 12px 0 0;
}

.wcm-changelog-title,
.chanma-changelog-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wcm-changelog-entry,
.chanma-changelog-entry {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wcm-changelog-entry:hover,
.chanma-changelog-entry:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
    border-color: #667eea;
}

.wcm-changelog-entry-header,
.chanma-changelog-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
}

.wcm-version-info,
.chanma-version-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wcm-version-number,
.chanma-version-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wcm-version-title,
.chanma-version-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.wcm-release-date,
.chanma-release-date {
    color: #646970;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
}
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* 🔍 EXPANSION FUNCTIONALITY */
.wcm-expandable .wcm-changelog-entry-header,
.wcm-expandable .chanma-changelog-entry-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 15px;
    margin: -15px -15px 15px -15px;
}

.wcm-expandable .wcm-changelog-entry-header:hover,
.wcm-expandable .chanma-changelog-entry-header:hover {
    background: linear-gradient(135deg, #667eea08, #764ba208);
}

.wcm-hidden,
.chanma-changelog-content.wcm-hidden {
    display: none !important;
}

.wcm-expandable:not(.wcm-expanded) .wcm-changelog-entry-header,
.wcm-expandable:not(.wcm-expanded) .chanma-changelog-entry-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.wcm-toggle-icon,
.chanma-toggle-icon {
    color: #667eea;
    font-size: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    background: #667eea15;
}

.wcm-expanded .wcm-toggle-icon,
.wcm-expanded .chanma-toggle-icon {
    transform: rotate(180deg);
    background: #667eea25;
}

.chanma-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 📋 CHANGELOG CONTENT STYLING */
.chanma-changelog-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chanma-change-category,
.wcm-change-category {
    margin-bottom: 25px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chanma-change-category h5,
.wcm-change-category h5 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanma-change-category .chanma-icon,
.wcm-change-category .chanma-icon {
    font-size: 18px;
}

.chanma-change-category ul,
.wcm-change-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chanma-change-category ul li,
.wcm-change-category ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f2f5;
    color: #495057;
    line-height: 1.6;
    transition: background-color 0.2s ease;
    position: relative;
}

.chanma-change-category ul li:before,
.wcm-change-category ul li:before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.chanma-change-category ul li:last-child,
.wcm-change-category ul li:last-child {
    border-bottom: none;
}

.chanma-change-category ul li:hover,
.wcm-change-category ul li:hover {
    background-color: #f8f9fa;
}

.wcm-change-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcm-change-category ul li {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    color: #495057;
    line-height: 1.5;
    transition: background-color 0.2s ease;
}

.wcm-change-category ul li:last-child {
    border-bottom: none;
}

/* 🎨 CATEGORY COLORS */
.wcm-features h5,
.chanma-change-category.wcm-features h5 { 
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
}

.wcm-improvements h5,
.chanma-change-category.wcm-improvements h5 {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-color: #bee5eb;
}

.wcm-bugfixes h5,
.chanma-change-category.wcm-bugfixes h5 {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
}

.wcm-security h5,
.chanma-change-category.wcm-security h5 {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffeaa7;
}

.wcm-removed h5,
.chanma-change-category.wcm-removed h5 {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border-color: #d6d8db;
}

/* 💭 NO CONTENT MESSAGE */
.chanma-no-changes {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    color: #646970;
    font-style: italic;
    border: 2px dashed #dcdcde;
    margin: 20px 0;
}

.chanma-changelog-empty {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    color: #646970;
    font-size: 18px;
    border: 2px dashed #dcdcde;
}
