:root {
    --primary-color: #ff6600;
    --bg-dark: #1a1a1a;
    --bg-card: #262626;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

.explore-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.explore-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge-new {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.explore-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.explore-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    line-height: 1.6;
}

.static-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-container a,
.nav-container a:visited {
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-links a,
.nav-links a:visited {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.login-btn,
.login-btn:visited {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 200px;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 20px;
        box-sizing: border-box;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.filters-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 15px 15px 15px 50px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.schede-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.scheda-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scheda-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.scheda-content {
    padding: 25px;
    flex-grow: 1;
}

.diff-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 12px;
    display: inline-block;
}

.diff-facile { background: #2ecc7122; color: #2ecc71; }
.diff-media { background: #f1c40f22; color: #f1c40f; }
.diff-difficile { background: #e74c3c22; color: #e74c3c; }

.scheda-content h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.scheda-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag {
    background: #333;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-tag i {
    color: var(--primary-color);
}

.scheda-footer {
    padding: 20px 25px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid #333;
}

.view-btn {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.2s;
}

.view-btn:hover {
    filter: brightness(1.1);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-gray);
}

.explore-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .explore-header h1 { font-size: 2.2rem; }
    .explore-header p { font-size: 1rem; }
    .schede-grid { grid-template-columns: 1fr; }
}