/* Hero Section Styles */
.registered-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.registered-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.registered-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registered-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.registered-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.registered-hero-title {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.registered-hero-subtitle {
    color: white;
    font-size: 1.25rem;
    text-align: center;
    margin: 0;
}

/* Content Grid Layout */
.registered-content {
    padding: 60px 0;
    background: white;
}

.registered-content-grid {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 40px;
    align-items: start;
}

/* States Sidebar */
.registered-states-sidebar {
    position: sticky;
    top: 20px;
}

.states-list-container {
    background: #1e3a8a; /* Dark blue */
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-height: 400px;
}

.active-states-list,
.inactive-states-list {
    margin-bottom: 30px;
}

.inactive-states-list {
    background: #bfdbfe; /* Much lighter blue background for inactive section */
    padding: 15px;
    border-radius: 6px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 20px;
}

.active-states-list h4,
.inactive-states-list h4 {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inactive-states-list h4 {
    color: #1e3a8a; /* Dark blue text on light blue background */
}

.active-states-list ul,
.inactive-states-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.active-states-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

.active-states-list li,
.inactive-states-list li {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inactive-states-list li {
    color: #1e3a8a; /* Dark blue text on light blue background */
    border-bottom: 1px solid rgba(30, 58, 138, 0.2);
}

/* Pulsating animation for states on map when hovering legend */
.state-path.pulsating {
    animation: statePulse 1.2s infinite;
}

@keyframes statePulse {
    0% {
        opacity: 1;
        stroke-width: 2;
        stroke: #ff6b35;
    }
    50% {
        opacity: 0.7;
        stroke-width: 4;
        stroke: #ff6b35;
    }
    100% {
        opacity: 1;
        stroke-width: 2;
        stroke: #ff6b35;
    }
}

/* Subtle hover effect for legend items */
.active-states-list li:hover,
.inactive-states-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.active-states-list li:last-child,
.inactive-states-list li:last-child {
    border-bottom: none;
}

.no-states p {
    color: white;
    font-style: italic;
}

/* Map Container */
.registered-map-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.registered-states-map {
    max-width: 100%;
    margin: 0 auto;
}

.registered-states-map svg {
    width: 100%;
    height: auto;
    max-height: 600px;
}

/* State Path Styles */
.state-path {
    fill: #e5e7eb; /* Light gray for unregistered states */
    stroke: #9ca3af;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.state-path.active-registered {
    fill: #1e3a8a; /* Dark blue for active registered */
}

.state-path.inactive-registered {
    fill: #bfdbfe; /* Much lighter blue for inactive registered */
}

.state-path:hover {
    stroke-width: 2;
    stroke: #374151;
}

.state-path.active-registered:hover {
    fill: #1e40af;
}

.state-path.inactive-registered:hover {
    fill: #93c5fd;
}

/* State labels removed - shown in legend instead */

/* Last Updated Styling */
.last-updated {
    margin-top: 30px;
    padding: 15px 20px;
    margin-left: -20px;
    margin-right: -20px;
    background: #374151; /* Dark gray background */
    border-radius: 0 0 8px 8px;
}

.last-updated p {
    color: #d1d5db; /* Light gray text */
    font-style: italic;
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .registered-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .registered-states-sidebar {
        position: static;
        order: 2;
    }
    
    .registered-map-container {
        order: 1;
    }
    
    .states-list-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        min-height: auto;
    }
    
    .active-states-list ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .registered-hero-title {
        font-size: 2rem;
    }
    
    .registered-hero-subtitle {
        font-size: 1rem;
    }
    
    .registered-content {
        padding: 40px 0;
    }
    
    .states-list-container {
        grid-template-columns: 1fr;
    }
    
    .active-states-list ul {
        grid-template-columns: 1fr;
    }
    
    .registered-map-container {
        padding: 15px;
    }
}