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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #000000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #330000 100%);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #cc0000, #990000, #660000);
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #ff0000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ffffff, #ffcccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Navigation Styles */
.navigation {
    background: linear-gradient(135deg, #000000, #1a0000);
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid #cc0000;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1a0000, #330000);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: white;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Search and Filter Section */
.search-filter-section {
    background: linear-gradient(135deg, #1a0000, #000000);
    padding: 25px;
    border-bottom: 2px solid #cc0000;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-input, .filter-select {
    padding: 12px 16px;
    border: 2px solid #cc0000;
    border-radius: 8px;
    background: linear-gradient(135deg, #000000, #1a0000);
    color: #ffffff;
    font-size: 1em;
    min-width: 200px;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.search-button, .clear-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-button:hover, .clear-button:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.clear-button {
    background: linear-gradient(135deg, #666666, #999999);
}

.clear-button:hover {
    background: linear-gradient(135deg, #999999, #666666);
}

/* Advertisement Section */
.ads-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #000000, #1a0000);
}

.ad-placeholder {
    background: linear-gradient(45deg, #cc0000, #ff0000, #990000);
    color: white;
    padding: 50px 25px;
    text-align: center;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ad-placeholder:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.5);
}

/* Main Content Styles */
.main-content {
    padding: 40px 30px;
    background: linear-gradient(135deg, #000000, #1a0000);
}

.current-result {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.current-result h2 {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    margin-bottom: 40px;
    line-height: 1.9;
    color: #ffffff;
}

.description p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1em;
}

.data-section h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 4px solid #cc0000;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.data-section h3 {
    color: #ffcccc;
    margin: 40px 0 25px 0;
    font-size: 1.6em;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a0000, #000000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #cc0000;
}

.table-title {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ff0000;
}

.data-table th {
    background: linear-gradient(135deg, #990000, #660000);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    border-bottom: 2px solid #cc0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.data-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #cc0000;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0000, #1a0000);
}

.data-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #1a0000, #0a0000);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #330000, #1a0000);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.date-column {
    background: linear-gradient(135deg, #000000, #1a0000) !important;
    font-weight: bold;
    text-align: left !important;
    padding-left: 20px !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.number-cell {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.empty-cell {
    color: #999999;
    font-style: italic;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.load-more-btn:disabled {
    background: linear-gradient(135deg, #666666, #999999);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #000000, #1a0000);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 3px solid #cc0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2em;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .ads-section {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 6px;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input, .filter-select {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .data-table {
        font-size: 0.8em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
    
    .search-input, .filter-select {
        min-width: 200px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: #ffffff;
    font-size: 1.2em;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 4px solid #333333;
    border-top: 4px solid #cc0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

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

/* Refresh Button */
#refresh-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #cc0000, #ff0000) !important;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#refresh-button:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

/* Status Indicator */
#refresh-status {
    position: fixed;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #000000, #1a0000);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 1000;
    border: 2px solid #cc0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Highlight search results */
.highlight {
    background-color: #ffff00;
    color: #000000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px;
    color: #cccccc;
    font-size: 1.2em;
    font-style: italic;
}

/* Schema.org structured data (hidden) */
.structured-data {
    display: none;
}

/* SEO optimizations */
.breadcrumb {
    padding: 15px 30px;
    background: linear-gradient(135deg, #1a0000, #000000);
    border-bottom: 1px solid #cc0000;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 10px;
}

.breadcrumb a:hover {
    color: #cc0000;
}

.breadcrumb span {
    color: #999999;
    margin-right: 10px;
}

/* Performance optimizations */
.data-table img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

