/* Glossario AI Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.justify-center { justify-content: center;}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    background: transparent;
}

.hero-buttons .btn-outline-primary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glossary-icon {
    position: relative;
    text-align: center;
}

.glossary-icon i {
    font-size: 8rem;
    color: rgba(255,255,255,0.8);
    animation: float 3s ease-in-out infinite;
}

.term-count {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.search-container {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
}

.search-box .btn {
    border: none;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.05);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.suggestion-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 10px;
}

.suggestion-tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: white;
}

.category-btn {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Glossary Section */
.glossary-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.term-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.term-card:hover::before {
    opacity: 1;
}

.term-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.term-definition {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.term-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results-content h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.no-results-content p {
    color: #adb5bd;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .glossary-icon i {
        font-size: 5rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-box .form-control {
        border-radius: 15px 15px 0 0;
    }
    
    .search-box .btn {
        border-radius: 0 0 15px 15px;
    }
    
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .suggestion-tag {
        margin-bottom: 5px;
    }
    
    .category-btn {
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-section,
    .glossary-section,
    .stats-section {
        padding: 40px 0;
    }
    
    .term-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .search-section,
    .glossary-section {
        background: #1a1a1a;
    }
    
    .categories-section {
        background: #2d2d2d;
    }
    
    .section-title {
        color: #ffffff;
    }
    
    .term-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .term-title {
        color: #ffffff;
    }
    
    .term-definition {
        color: #b0b0b0;
    }
    
    .category-btn {
        background: #2d2d2d;
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .category-btn:hover {
        color: #667eea;
        border-color: #667eea;
    }
    
    .search-box .form-control {
        background: #2d2d2d;
        color: #ffffff;
        border: 1px solid #404040;
    }
    
    .suggestion-tag {
        background: #404040;
        color: #b0b0b0;
    }
    
    .stat-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .stat-label {
        color: #b0b0b0;
    }
}

/* Animation for term cards */
.term-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for term cards */
.term-card:nth-child(1) { animation-delay: 0.1s; }
.term-card:nth-child(2) { animation-delay: 0.2s; }
.term-card:nth-child(3) { animation-delay: 0.3s; }
.term-card:nth-child(4) { animation-delay: 0.4s; }
.term-card:nth-child(5) { animation-delay: 0.5s; }
.term-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth transitions for filtering */
.term-card {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Focus states for accessibility */
.search-box .form-control:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.suggestion-tag:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Print styles */
@media print {
    .hero-section,
    .search-section,
    .categories-section,
    .stats-section {
        display: none;
    }
    
    .glossary-section {
        padding: 0;
    }
    
    .term-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .glossary-grid {
        display: block;
    }
}