/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 1.5rem;
    margin: 0;
}

.site-logo a {
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

.category-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.category-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Outages List */
.outages-list {
    display: grid;
    gap: 1.5rem;
}

.outage-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.outage-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.outage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

.category-power {
    background-color: #e74c3c;
}

.category-natural_gas {
    background-color: #f39c12;
}

.category-internet {
    background-color: #3498db;
}

.category-water {
    background-color: #16a085;
}

.outage-date {
    color: #666;
    font-size: 0.9rem;
}

.outage-item h2, .outage-item h3 {
    margin-bottom: 0.5rem;
}

.outage-item h2 a, .outage-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.outage-item h2 a:hover, .outage-item h3 a:hover {
    color: #3498db;
}

.outage-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.outage-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.city-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.city-card h3 {
    margin-bottom: 0.5rem;
}

.city-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.city-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Outage Detail */
.outage-detail {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.outage-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.outage-detail-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #2c3e50;
}

.outage-summary {
    background-color: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.outage-content {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-part {
    margin-bottom: 1rem;
}

.read-more-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #2980b9;
}

.outage-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.related-links h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.related-outages {
    list-style: none;
}

.related-outages li {
    margin-bottom: 0.5rem;
}

.related-outages a {
    color: #3498db;
    text-decoration: none;
}

.related-outages a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .outage-detail-header h1 {
        font-size: 1.8rem;
    }
    
    .outage-detail {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
}

/* SEO and Accessibility */
a:focus, button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ============================================
   Search Section - Modern Clean Design
   ============================================ */
.search-section {
    background: #ffffff !important;
    padding: 2.5rem !important;
    border-radius: 20px !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.search-section h2 {
    margin-bottom: 2rem !important;
    color: #2c3e50 !important;
    font-size: 1.75rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.search-form {
    width: 100%;
    display: block;
}

.search-filters {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: start !important;
    width: 100% !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative !important;
}

.filter-label {
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2px !important;
    display: block !important;
    height: 20px !important;
    line-height: 20px !important;
}

.filter-hint {
    display: block !important;
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    font-style: italic !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 0.25rem !important;
}

.filter-select:not(:disabled) ~ .filter-hint {
    display: none !important;
}

.filter-select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    color: #2c3e50 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 14px 14px !important;
    padding-right: 2.5rem !important;
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.filter-select:focus {
    outline: none !important;
    border-color: #667eea !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.filter-select:hover:not(:disabled) {
    border-color: #b0b0b0 !important;
    background-color: #fafafa !important;
}

.filter-select:disabled {
    background-color: #f5f5f5 !important;
    border-color: #e8e8e8 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.filter-select option {
    padding: 0.75rem !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 1rem !important;
}

.filter-select option:checked {
    background-color: #667eea !important;
    color: #ffffff !important;
}

.filter-actions {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.filter-actions .btn-search-modern {
    margin-top: 20px !important;
}

.btn-search-modern {
    width: 100% !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.btn-search-modern:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-search-modern:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
}

.btn-search-modern svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

/* Search Results */
.search-results {
    margin-bottom: 3rem;
}

.search-results h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 1rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
}

/* Content Page Styles */
.content-page {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.content-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.content-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

.content-body {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

.content-intro {
    margin-bottom: 2.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: #555;
}

.content-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.content-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.content-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.content-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.disclaimer {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin-top: 1rem;
}

/* Read More Section */
.content-more {
    margin-top: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.content-more-blurred {
    filter: blur(4px) !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    user-select: none !important;
    max-height: 600px !important;
    overflow: hidden !important;
    position: relative;
}

.content-more-blurred::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    z-index: 1;
}

.content-more-expanded {
    filter: blur(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.read-more-container {
    text-align: center;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    position: relative;
    z-index: 10;
}

.btn-read-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-read-more:active {
    transform: translateY(0);
}

.btn-read-more.expanded {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-read-more.expanded:hover {
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

/* Responsive Form */
@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .filter-group {
        margin-bottom: 0;
    }
    
    .search-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .search-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-select {
        font-size: 0.95rem;
        padding: 0.75rem 0.875rem;
        padding-right: 2.25rem;
    }
    
    .btn-search-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .content-page {
        padding: 1.5rem;
    }
    
    .content-header h1 {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}

/* SEO Content Section */
.seo-content-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.seo-content h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.seo-content h4 {
    font-size: 1.25rem;
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.seo-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #444;
}

.seo-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.search-description,
.section-description {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    .main-header, .main-footer, .read-more, .read-more-btn, .search-section {
        display: none;
    }
    
    .outage-content .hidden-content {
        display: block !important;
    }
}

