/**
 * Glossario Frontend - Studio Audino
 * Stile coerente con backend (verde come resto del sito)
 */

/* Override variabili primary: verde invece del blu di design-system */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #86efac;
    --primary-lighter: #dcfce7;
}

/* Navbar uguale al resto del sito */
#mainNavbar,
#mainNavbar.scrolled {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Header Glossario (sezione sotto la navbar) - verde come resto del sito */
.glossary-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.glossary-header h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: white;
    margin-bottom: 1rem;
}

.glossary-header p {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Box */
.glossary-search {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: var(--text-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
}

/* Alphabet Navigation */
.alphabet-nav {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    text-align: center;
}

.alphabet-nav a {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    margin: 0.25rem;
    border-radius: var(--radius);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--text-lighter);
    background: transparent;
    transition: var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
}

.alphabet-nav a:hover {
    background: var(--bg-light);
    color: var(--text-base);
    border-color: var(--border-color);
}

.alphabet-nav a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alphabet-nav a.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Letter Section */
.letter-section {
    margin-bottom: 4rem;
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.letter-badge {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: var(--font-extrabold);
    font-size: var(--text-3xl);
}

.letter-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin: 0;
}

.letter-count {
    color: var(--text-lighter);
    font-size: var(--text-lg);
    margin-left: auto;
}

/* Terms List */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.term-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.term-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.term-name {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.term-definition {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: 1.6;
}

.term-definition p {
    margin-bottom: 0.5rem;
}

.term-definition p:last-child {
    margin-bottom: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-base);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: var(--text-lg);
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .glossary-header {
        padding: 3rem 0 2rem;
    }
    
    .glossary-header h1 {
        font-size: var(--text-4xl);
    }
    
    .glossary-header p {
        font-size: var(--text-base);
    }
    
    .alphabet-nav a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: var(--text-xs);
        margin: 0.15rem;
    }
    
    .letter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .letter-badge {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: var(--text-2xl);
    }
    
    .letter-count {
        margin-left: 0;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: var(--text-base);
        padding: 0.875rem 3rem 0.875rem 1rem;
    }
    
    .alphabet-nav {
        padding: 1rem;
    }
}




