/* ===== FABULA ARCANA - GUIDA PAGE CSS ===== */

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(22, 33, 61, 0.85);
    --bg-card-solid: #16213d;
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-gold: #d4af37;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-accent: #c4b5fd;
    --border-color: rgba(124, 58, 237, 0.3);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.guida-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(13, 13, 26, 0.4) 0%, 
        rgba(13, 13, 26, 0.6) 50%, 
        rgba(13, 13, 26, 0.85) 100%);
}

/* ===== MAIN WRAPPER ===== */
.guida-wrapper {
    position: relative;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.guida-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 20px;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-link span {
    color: var(--accent-secondary);
}

/* ===== SIDEBAR NAVIGATION ===== */
.guida-sidebar {
    position: fixed;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 15px;
    background: rgba(13, 13, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sidebar-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar-link:hover::before {
    left: 100%;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: #fff;
    border-color: var(--accent-secondary);
    transform: translateX(8px) scale(1.02);
    box-shadow: 
        0 5px 20px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.sidebar-link.back-link {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    margin-bottom: 8px;
}

.sidebar-link.back-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 
        0 5px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== MAIN CONTENT ===== */
.guida-main {
    padding-left: 220px;
    padding-right: 40px;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.guida-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* ===== INFO BOX ===== */
.info-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 35px;
    line-height: 1.9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-box h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-secondary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.info-box p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    text-align: justify;
}

.info-box strong {
    color: var(--text-primary);
}

.info-box em {
    color: var(--text-accent);
}

.warning-box {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 12px;
    padding: 18px;
    margin-top: 25px;
    text-align: center;
}

.warning-box p {
    color: #fbbf24;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    perspective: 1000px;
}

/* ===== 3D CARD ===== */
.guida-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.guida-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px var(--accent-glow),
        inset 0 0 20px rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
}

.guida-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.guida-card:hover::before {
    opacity: 1;
}

.guida-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.guida-card:hover .guida-card-img {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.05);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card-solid) 0%, transparent 100%);
}

.guida-card-body {
    padding: 18px;
    position: relative;
    z-index: 2;
}

.guida-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.guida-card:hover .guida-card-body h3 {
    color: var(--accent-secondary);
}

.guida-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.guida-card-body .card-meta {
    font-size: 0.8rem;
    color: var(--text-accent);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

/* Card glow effect on hover */
.guida-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.guida-card:hover::after {
    opacity: 0.3;
}

/* ===== MODAL ===== */
.guida-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guida-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #12121f 50%, #0f0f1a 100%);
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    max-width: 950px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 80px rgba(124, 58, 237, 0.25),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 100px rgba(212, 175, 55, 0.03);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Fantasy book corner decorations */
.modal-content::before,
.modal-content::after {
    content: '?';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(212, 175, 55, 0.4);
    z-index: 5;
}

.modal-content::before {
    top: 10px;
    left: 15px;
}

.modal-content::after {
    bottom: 10px;
    right: 15px;
    transform: rotate(180deg);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.8);
    border-color: var(--accent-gold);
    color: #0d0d1a;
    transform: rotate(90deg);
}

/* ===== TWO COLUMN FANTASY LAYOUT ===== */
.modal-inner {
    display: flex;
    flex-direction: row;
    min-height: 450px;
    max-height: 85vh;
}

/* Left Column - Image */
.modal-image-column {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
}

.modal-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(0.9) saturate(1.1);
    transition: transform 0.6s ease, filter 0.4s ease;
    animation: imgReveal 0.6s ease-out;
}

@keyframes imgReveal {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content:hover .modal-image-column img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

/* Image overlay gradient */
.modal-image-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to left, rgba(18, 18, 31, 1) 0%, transparent 100%);
    z-index: 1;
}

/* Fantasy frame effect on image */
.modal-image-column::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

/* Right Column - Content */
.modal-content-column {
    flex: 1;
    padding: 30px 35px;
    overflow-y: auto;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 26, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Parchment texture effect */
.modal-content-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Custom scrollbar for content */
.modal-content-column::-webkit-scrollbar {
    width: 8px;
}

.modal-content-column::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content-column::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0.5));
    border-radius: 4px;
}

/* Title in content column */
.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.modal-title::after {
    content: '?';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.5);
}

/* ===== FANTASY STYLED SUBTITLE ===== */
.modal-subtitle {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--text-accent);
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 85, 247, 0.08));
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: block;
    animation: fadeSlideUp 0.5s ease-out 0.1s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FANTASY STAT BADGES ===== */
.modal-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.4s ease-out both;
}

.modal-stat-badge {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.modal-stat-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.modal-stat-badge .stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.modal-stat-badge .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== FANTASY SECTIONS (Book Pages Style) ===== */
.modal-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-section {
    margin-bottom: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(26, 26, 46, 0.5) 100%);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: sectionReveal 0.5s ease-out forwards;
}

.modal-section:nth-child(1) { animation-delay: 0.1s; }
.modal-section:nth-child(2) { animation-delay: 0.2s; }
.modal-section:nth-child(3) { animation-delay: 0.3s; }
.modal-section:nth-child(4) { animation-delay: 0.4s; }
.modal-section:nth-child(5) { animation-delay: 0.5s; }
.modal-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fantasy book page corner */
.modal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0.3));
    border-radius: 3px 0 0 3px;
}

/* Hover glow effect */
.modal-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at left center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-section:hover::after {
    opacity: 1;
}

.modal-section:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(5px);
}

.modal-section strong {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.modal-section p,
.modal-section div {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
}

.modal-section ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.modal-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.modal-section li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.65rem;
    top: 4px;
}

/* ===== MOBILE RESPONSIVE FOR MODAL ===== */
@media (max-width: 768px) {
    .modal-inner {
        flex-direction: column;
        max-height: none;
    }

    .modal-image-column {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .modal-image-column::after {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, rgba(18, 18, 31, 1) 0%, transparent 100%);
    }

    .modal-content-column {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-stat-badge {
        min-width: 80px;
        padding: 10px 15px;
    }

    .modal-stat-badge .stat-value {
        font-size: 1.3rem;
    }

    .modal-section {
        padding: 14px 16px;
    }

    .modal-section:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .modal-image-column {
        flex: 0 0 160px;
        min-height: 160px;
    }

    .modal-content-column {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.2rem;
        padding-bottom: 12px;
    }

    .modal-stats {
        gap: 10px;
    }

    .modal-stat-badge {
        min-width: 70px;
        padding: 8px 12px;
    }

    .modal-stat-badge .stat-value {
        font-size: 1.1rem;
    }

    .modal-stat-badge .stat-label {
        font-size: 0.6rem;
    }

    .modal-section {
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .modal-section strong {
        font-size: 0.8rem;
    }

    .modal-section p,
    .modal-section div {
        font-size: 0.85rem;
    }
}

/* ===== ANIMATED STATS ===== */
.modal-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.5s ease-out 0.15s both;
}

.modal-stat-badge {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 15px 25px;
    border-radius: 16px;
    text-align: center;
    min-width: 110px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-stat-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-stat-badge:hover::before {
    opacity: 1;
}

.modal-stat-badge:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.modal-stat-badge .stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    display: block;
    text-shadow: 0 0 20px var(--accent-glow);
    position: relative;
    z-index: 1;
}

.modal-stat-badge .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* ===== SECTIONS WRAPPER ===== */
.modal-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-stat-badge .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* ===== MOBILE MENU ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 12px 8px;
    z-index: 100;
    overflow-x: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-nav-inner {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding: 0 5px;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: #fff;
    border-color: var(--accent-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .guida-sidebar {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .guida-main {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 80px;
    }

    .guida-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .modal-header-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .guida-header {
        padding: 10px 15px;
    }

    .logo-link {
        font-size: 1.1rem;
    }

    .guida-main {
        padding-top: 60px;
    }

    .guida-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .info-box {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .info-box h3 {
        font-size: 1.15rem;
    }

    .info-box p {
        font-size: 0.9rem;
        text-align: left;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .guida-card {
        border-radius: 12px;
    }

    .guida-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .guida-card-img {
        height: 120px;
    }

    .guida-card-body {
        padding: 12px;
    }

    .guida-card-body h3 {
        font-size: 0.95rem;
    }

    .guida-card-body p {
        font-size: 0.8rem;
    }

    .guida-modal {
        padding: 10px;
    }

    .modal-content {
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-header-img {
        height: 150px;
        border-radius: 16px 16px 0 0;
    }

    .modal-img-title {
        font-size: 1.4rem;
        bottom: 15px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h2 {
        font-size: 1.4rem;
    }

    .modal-section {
        padding: 14px;
    }

    .modal-section:hover {
        transform: none;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .modal-stats {
        gap: 10px;
    }

    .modal-stat-badge {
        padding: 10px 15px;
        min-width: 80px;
    }

    .modal-stat-badge .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .guida-section {
        padding: 30px 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .info-box {
        padding: 18px 15px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .guida-card-img {
        height: 100px;
    }

    .guida-card-body {
        padding: 10px;
    }

    .guida-card-body h3 {
        font-size: 0.85rem;
    }

    .guida-card-body p,
    .guida-card-body .card-meta {
        display: none;
    }

    .mobile-nav-link {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .modal-header-img {
        height: 120px;
    }

    .modal-img-title {
        font-size: 1.1rem;
        bottom: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-body h2 {
        font-size: 1.2rem;
    }

    .modal-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .modal-section strong {
        font-size: 0.75rem;
    }

    .modal-stat-badge {
        min-width: 70px;
        padding: 8px 12px;
    }

    .modal-stat-badge .stat-value {
        font-size: 1rem;
    }

    .modal-stat-badge .stat-label {
        font-size: 0.6rem;
    }
}
