/* 
   SattaKing555 Aesthetic Redesign
   Theme: Modern Dark / Cyber-Betting
   Colors: Navy (#0a192f), Neon Green (#00ff00), Cyan (#00f2ff)
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #060b1e;
    background-image: radial-gradient(circle at 50% 0%, #0a1233 0%, #060b1e 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Marquee */
.marquee-container {
    background: #ff4757;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 2px solid #00f2ff;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-weight: 700;
    font-size: 15px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header */
header {
    background: #0a192f;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #00f2ff;
    margin-bottom: 30px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

header h1 {
    font-size: 3em;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1em;
    color: #00f2ff;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Navigation */
.internal-nav {
    background: #0a1233;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.internal-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.internal-nav a::after {
    content: '|';
    margin-left: 10px;
    color: #1e293b;
}

.internal-nav a:last-child::after {
    content: '';
}

.internal-nav a:hover {
    color: #00f2ff;
    border-bottom-color: #00f2ff;
}

/* Filter Controls */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    margin: 30px 0;
    padding: 25px;
    background: #0a1233;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.filter-group label {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Section Header Banner */
.section-header-banner {
    background: #0a1233;
    color: #00f2ff;
    text-align: center;
    padding: 15px;
    margin: 30px 0;
    font-size: 1.5em;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid #1e293b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.section-header-banner::before {
    content: '📊';
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.result-card {
    background: #0a1233;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.result-card:hover, .result-card.active {
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.city-name {
    font-size: 0.9em;
    font-weight: 700;
    color: #00f2ff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.status-badge.wait { color: #f39c12; }
.status-badge.live { color: #2ecc71; }

.card-divider {
    border-top: 1px solid #1e293b;
    margin: 10px 0;
}

.result-number {
    font-size: 3em;
    font-weight: 900;
    color: #00ff00;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    line-height: 1;
}

.result-number .pending {
    color: #475569;
    font-size: 1em;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.result-time {
    color: #94a3b8;
    font-weight: 600;
}

/* Charts Section */
.chart-section {
    background: #0a1233;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chart-container { 
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #1e293b;
}

/* Custom Scrollbar for Table */
.chart-container::-webkit-scrollbar {
    height: 6px;
}
.chart-container::-webkit-scrollbar-track {
    background: #060b1e;
}
.chart-container::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
.chart-container::-webkit-scrollbar-thumb:hover {
    background: #00f2ff;
}

.chart-section h2 {
    color: #00ff00;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
}

.calendar-chart-table {
    width: 100%;
    border-collapse: collapse;
    background: #05091a;
    font-size: 0.85em;
}

.calendar-chart-table th {
    background: #0a1233;
    color: #00f2ff;
    padding: 10px 5px;
    border: 1px solid #1e293b;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8em;
}

.calendar-chart-table td {
    padding: 8px 4px;
    border: 1px solid #1e293b;
    text-align: center;
    height: 45px;
}

.calendar-chart-table .date-cell {
    background: #0a1233;
    color: #00f2ff;
    font-weight: 800;
    width: 40px;
}

.calendar-chart-table .result-cell {
    color: #00ff00;
    font-weight: 700;
    font-size: 1.1em;
}

.calendar-chart-table tbody tr:hover {
    background: rgba(0, 242, 255, 0.05);
}

/* Content Sections */
.content-section {
    background: #0a1233;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00f2ff, #00ff00);
}

.content-section h2 {
    color: #00f2ff;
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 15px;
}

.alert {
    background: rgba(0, 242, 255, 0.05);
    border-left: 4px solid #00f2ff;
    padding: 20px;
    color: #e2e8f0;
}

/* Social Buttons */
.share-btn {
    border-radius: 8px !important;
    text-transform: uppercase;
    font-size: 12px !important;
}

/* FAQ Accordion */
.faq-section {
    margin: 60px 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(10, 18, 51, 0.4);
    border: 1px solid #1e293b;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-item:hover {
    border-color: #00f2ff55;
    background: rgba(10, 18, 51, 0.6);
}

.faq-question {
    padding: 20px 25px;
    color: #e2e8f0;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.faq-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #0a1233;
    border: 1px solid #1e293b;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 18px;
    color: #00f2ff;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.faq-item.active .faq-question {
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.05);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: #00f2ff;
    color: #0a1233;
    border-color: #00f2ff;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95em;
}

.faq-item.active .faq-answer {
    padding: 10px 25px 25px;
    max-height: 500px;
}

/* Footer */
footer {
    background: #030612;
    padding: 0;
    border-top: 1px solid #1e293b;
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #00f2ff, transparent);
}

.footer-grid {
    padding: 60px 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00f2ff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a::before {
    content: '›';
    color: #00f2ff;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: #00f2ff;
    transform: translateX(5px);
}

.footer-bottom {
    background: #010208;
    padding: 30px 15px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.market-list {
    color: #1e293b !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 5px; }
    header { padding: 25px 0; }
    header h1 { font-size: 2em; letter-spacing: 0.5px; }
    header p { font-size: 0.85em; }
    
    .internal-nav { gap: 5px; padding: 10px 5px; }
    .internal-nav a { font-size: 10px; padding: 4px 6px; }
    
    .results-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
        padding: 0 5px;
        margin-bottom: 30px;
    }
    
    .result-card { padding: 10px 5px; border-radius: 8px; }
    .city-name { font-size: 0.75em; margin-bottom: 4px; font-weight: 800; }
    .status-badge { font-size: 0.7em; margin-bottom: 5px; }
    .card-divider { margin: 6px 0; }
    .result-number { font-size: 2.2em; margin: 5px 0; }
    .result-time { font-size: 0.7em; }
    
    .chart-section { padding: 15px 5px; margin: 25px 0; }
    .chart-container { 
        margin: 10px -5px; 
        padding-bottom: 5px;
    }
    .calendar-chart-table { min-width: 850px; font-size: 0.75em; }
    .calendar-chart-table th, .calendar-chart-table td { padding: 6px 2px; height: 35px; }
    
    .content-section { padding: 20px 10px; margin: 20px 0; }
    .content-section h2 { font-size: 1.25em; margin-bottom: 15px; }
    .content-section p { font-size: 0.9em; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 40px 15px; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul li a { justify-content: center; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.6em; }
    .result-number { font-size: 2em; }
    .city-name { font-size: 0.7em; }
}