/**
 * Regulations Page Layout
 * Modern, clean design for regulations display
 */

/* Page Container */
.regulations-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    padding-top: 0;
}

.regulations-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.regulations-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 7rem 0rem 2rem 0rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.regulations-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.regulations-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.regulations-hero h1 {
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.regulations-hero h1 svg {
    color: var(--text-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.regulations-hero p {
    color: var(--text-white);
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    margin: 0;
}

/* Regulations Section */
.regulations-section {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    margin-bottom: 0;
}


.regulations-title h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.regulations-title p {
    color: var(--text-light);
    font-size: var(--font-size-lg);
    margin: 0;
}

/* Filters */
.regulations-filters {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 8px;
    margin-bottom: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-lg);
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: var(--spacing-md) var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--bg-white);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--border-primary);
}

/* Hide native select elements when custom dropdown is present */
.filter-group:has(.custom-dropdown) select {
    display: none;
}

.filter-group input::placeholder {
    color: var(--text-muted);
}

/* Search group specific styles */
.search-group {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    flex: 1;
    padding-right: 40px;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.clear-search-btn svg {
    width: 16px;
    height: 16px;
}



/* Loading and Error States */
.loading-state,
.error-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--spacing-xl);
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-xl) 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.error-state h3 {
    color: #dc3545;
    margin-bottom: var(--spacing-sm);
}

.error-state p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.retry-button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.retry-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Responsive Design */

/* FHD (Full HD) - 1920x1080 and above */
@media (min-width: 1920px) {
    .regulations-hero {
        padding: 8rem 4rem 3rem 4rem;
    }
    
    .regulations-hero-content {
        max-width: 1000px;
    }
    
    .regulations-hero h1 {
        font-size: 3.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .regulations-hero h1 svg {
        width: 36px;
        height: 36px;
    }
    
    .regulations-hero p {
        font-size: 1.5rem;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .regulations-section {
        padding: 3rem 4rem;
        margin: 0 auto;
    }
    
    .regulations-filters {
        padding: 2rem;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto 2rem auto;
    }
    
    .filter-group {
        min-width: 250px;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .regulations-title h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .regulations-title p {
        font-size: 1.25rem;
    }
}

/* QHD (Quad HD) - 2560x1440 and above */
@media (min-width: 2560px) {
    .regulations-hero {
        padding: 10rem 6rem 4rem 6rem;
    }
    
    .regulations-hero-content {
        max-width: 1400px;
    }
    
    .regulations-hero h1 {
        font-size: 4.5rem;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .regulations-hero h1 svg {
        width: 48px;
        height: 48px;
    }
    
    .regulations-hero p {
        font-size: 1.75rem;
        max-width: 1200px;
        line-height: 1.7;
    }
    
    .regulations-section {
        padding: 4rem 6rem;
    }
    
    .regulations-filters {
        padding: 2.5rem 3rem;
        gap: 2.5rem;
        max-width: 1600px;
        margin: 0 auto 3rem auto;
        border-radius: 20px;
    }
    
    .filter-group {
        min-width: 300px;
    }
    
    .filter-group label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 1.25rem 1.5rem;
        font-size: 1.125rem;
        border-radius: 12px;
    }
    
    .regulations-title h2 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .regulations-title p {
        font-size: 1.375rem;
    }
    
    .loading-state,
    .error-state {
        padding: 6rem 4rem;
    }
    
    .loading-spinner {
        width: 64px;
        height: 64px;
        border-width: 6px;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .retry-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
    .regulations-container {
        padding: 0;
    }
    
    .regulations-hero {
        padding: 7rem 0rem 2rem 0rem;
        margin-bottom: 0;
    }
    
    .regulations-hero h1 {
        font-size: var(--font-size-3xl);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .regulations-hero p {
        font-size: var(--font-size-lg);
    }
    
    .regulations-section {
        padding: var(--spacing-lg);
        margin-bottom: 0;
    }
    
    .regulations-filters {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
} 