.recommendations-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
    z-index: 1001;
}

.recommendations-title {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 700;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.rec-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    border: 3px solid var(--border-color);
    padding: 1.5rem;
    height: 140px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 4px 4px 0 var(--border-color);
    cursor: pointer;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
}

.rec-card h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    z-index: 2;
}

.rec-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 8px 8px 0 var(--border-color);
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.explore-more-btn {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 1rem 2.5rem;
    background-color: #111;
    color: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.explore-more-btn.secondary {
    background-color: #fff;
    color: #111;
    border: 3px solid #111;
}

.explore-more-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}

.explore-more-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Global Popup Overlay */
.global-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.global-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.global-popup-content {
    background: #f4f0ea;
    border: 4px solid #111;
    padding: 3rem 2rem;
    max-width: 800px;
    width: 90%;
    border-radius: 24px;
    box-shadow: 12px 12px 0 #111;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.global-popup-overlay.active .global-popup-content {
    transform: translateY(0);
}

.global-popup-content .title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.global-popup-content .subtitle {
    margin-bottom: 2rem;
}

/* Global Back Link Adjustment */
.back-link {
    top: 5rem !important;
    z-index: 9998 !important;
}

/* Global Top Nav Slider */
.global-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(244, 240, 234, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #111;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    overflow: hidden;
}

.nav-home-btn {
    text-decoration: none;
    color: #111;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border: 2px solid #111;
    background: #fff;
    box-shadow: 2px 2px 0 #111;
    margin-right: 1rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.1;
    z-index: 10;
    flex-shrink: 0;
    position: relative;
}

.nav-home-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #111;
}

.nav-slider-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 20px, black 90%, transparent);
}

.nav-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.nav-card {
    flex: 0 0 auto;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 2px solid #111;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 2px 0 #111;
}

.nav-card:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 4px 4px 0 #111;
}

@media (max-width: 768px) {
    .global-nav-header {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .nav-home-btn {
        margin-right: 0.5rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .nav-card {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rec-card {
        height: 100px;
        padding: 1rem;
    }
    
    .recommendations-container {
        margin-top: 2rem;
    }

    .global-popup-content {
        padding: 2rem 1rem;
    }

    .global-popup-content .title {
        font-size: 1.8rem;
    }
}


