/* Recorder Section Styles - v1.00 */

/* Hero Sections */
.recorder-hero-section,
.state-hero,
.county-hero {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    padding: 60px 0 40px 0;
    margin-bottom: 40px;
    margin-top: 0;
    position: relative;
    overflow: visible;
}

.recorder-hero-section {
    padding: 80px 0;
}

.county-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.county-hero .container,
.state-hero .container {
    position: relative;
    z-index: 1;
}

.recorder-hero-section h1,
.state-hero h1,
.county-hero h1 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.recorder-hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.state-hero h1,
.county-hero h1 {
    font-size: 2.5rem;
}

.recorder-hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.county-hero .lead {
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Breadcrumbs */
.breadcrumb-hero {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-hero .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-hero .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-hero .breadcrumb-item.active {
    color: white;
}

/* State and County Grids */
.state-grid,
.county-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.state-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.county-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.state-card,
.county-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-card {
    min-height: 80px;
}

.county-card {
    position: relative;
    overflow: hidden;
}

.state-card:hover,
.county-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.state-card:hover {
    border-color: #1976d2;
    color: #1565c0;
}

.county-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #1976d2;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.county-card:hover {
    color: #1565c0;
}

.county-card:hover::before {
    transform: translateX(0);
}

.county-card h5 {
    margin: 0;
}

/* Info Cards and Sections */
.info-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #1976d2;
}

.info-card h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.info-section h2 {
    color: #1565c0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.info-section h2 i {
    margin-right: 10px;
}

.info-section h3 {
    color: #1565c0;
}

/* Collapsible State Info */
.info-section h2[data-bs-toggle="collapse"] {
    cursor: pointer;
    justify-content: space-between;
}

.info-section h2 i.bi-chevron-down {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.info-section h2[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* Office Cards */
.office-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #1976d2;
    transition: transform 0.3s ease;
}

.office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.office-card h5 {
    color: #1565c0;
    margin-bottom: 15px;
}

.office-info {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

.office-info i {
    color: #1976d2;
    margin-right: 10px;
    width: 20px;
    margin-top: 3px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

/* Form Links */
.form-link {
    display: block;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.form-link:hover {
    border-color: #1976d2;
    background: #f5f5f5;
    text-decoration: none;
    color: #1565c0;
}

/* Stats Boxes */
.stats-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stats-box h3 {
    color: #1976d2;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stats-box-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #f8f9fa;
}

.stats-box-link h3 {
    transition: color 0.3s ease;
}

.stats-box-link:hover h3 {
    color: #1565c0;
}

/* Search Filter */
.search-filter {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 30px;
    transition: border-color 0.3s ease;
}

.search-filter:focus {
    outline: none;
    border-color: #1976d2;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.disclaimer-banner i {
    color: #f39c12;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Quick Links */
.quick-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.quick-links h3 {
    color: #1565c0;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

/* Hero Image */
.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Recorder Card Enhancements */
.recorder-section .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.recorder-section .card-title {
    color: #1565c0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .recorder-hero-section h1 {
        font-size: 2rem;
    }

    .state-hero h1,
    .county-hero h1 {
        font-size: 2rem;
    }

    .state-hero,
    .county-hero {
        padding: 40px 0 30px 0;
    }

    .state-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .county-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific office display */
    .mobile-offices {
        display: block;
    }

    .desktop-offices {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-offices {
        display: none;
    }

    .desktop-offices {
        display: block;
    }
}