/**
 * Enhanced Taxonomy Pages Styling
 * Beautiful, modern styling for state and city taxonomy pages
 */

/* Hero Section Enhancement */
.taxonomy-hero {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #0056b3, #001f3f);
    position: relative;
    overflow: hidden;
}

.taxonomy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

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

.taxonomy-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
    text-align: center !important;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out forwards !important;
}

.taxonomy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff9800, #ff5722);
    border-radius: 2px;
}

.section-description {
    color: #ffffff;
    font-size: 1.25rem !important;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2rem !important;
    line-height: 1.6;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Enhanced City Grid */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0056b3, #17a2b8);
    border-radius: 2px;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Beautiful Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(23, 162, 184, 0.9));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

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

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

.card:hover .card-title a,
.card:hover .card-meta,
.card:hover .read-more {
    color: #ffffff;
}

.compact-card {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.compact-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-meta {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.count::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Stats Section Enhancement */
.stats-section {
    margin: 3rem 0;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .taxonomy-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .taxonomy-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .taxonomy-title {
        font-size: 1.75rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
