/**
 * B5-SATTA.ONLINE - Main Stylesheet
 * Color Theme: Olive Green + Black + White
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: #000000;
    padding: 15px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.nav-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 107, 47, 0.4);
}

.nav-active {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: var(--primary);
}

/* ===== MARQUEE ===== */
.marquee-bar {
    background: #000000;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.marquee-bar marquee {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

/* ===== SITE BANNER ===== */
.site-banner {
    background: var(--primary);
    padding: 25px 15px;
    text-align: center;
}

.site-title {
    font-size: 36px;
    font-weight: 900;
    color: #000000;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.3);
}

/* ===== HERO RESULTS SECTION ===== */
.hero-section {
    padding: 30px 15px;
    text-align: center;
    background: #000000;
}

.live-time {
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.hindi-tagline {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
}

.current-market {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 15px 0;
    letter-spacing: 2px;
}

.next-market {
    font-size: 28px;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 15px 0;
}

.result-number {
    font-size: 64px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* ===== WAIT BADGE ===== */
.wait-badge {
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 20px;
    position: relative;
    clip-path: polygon(
        20% 0%, 30% 10%, 40% 0%, 50% 10%, 60% 0%, 70% 10%, 80% 0%, 
        90% 10%, 100% 0%, 90% 20%, 100% 30%, 90% 40%, 100% 50%, 
        90% 60%, 100% 70%, 90% 80%, 100% 90%, 90% 100%, 80% 90%, 
        70% 100%, 60% 90%, 50% 100%, 40% 90%, 30% 100%, 20% 90%, 
        10% 100%, 0% 90%, 10% 80%, 0% 70%, 10% 60%, 0% 50%, 
        10% 40%, 0% 30%, 10% 20%, 0% 10%, 10% 0%
    );
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== ONLINE KHAIWAL SECTION ===== */
.khaiwal-section {
    max-width: 600px;
    margin: 25px auto;
    padding: 0 15px;
}

.khaiwal-card {
    background: var(--primary);
    border: 3px dashed #8B0000;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.khaiwal-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.khaiwal-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.khaiwal-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
}

.khaiwal-list li {
    font-size: 17px;
    font-weight: bold;
    color: #FFFFFF;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.khaiwal-list .dots {
    flex: 1;
    border-bottom: 3px dotted #FFFFFF;
    margin: 0 10px 5px;
}

.khaiwal-list .time {
    color: #FFFFFF;
    font-weight: bold;
}

.payment-option {
    color: #006400;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
}

.game-play-link {
    color: #FF0000;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* ===== RESULTS TABLE ===== */
.results-section {
    max-width: 900px;
    margin: 25px auto;
    padding: 0 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    color: #000000;
    font-size: 15px;
}

.results-table th {
    background: var(--primary);
    color: #FFFFFF;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
}

.results-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ccc;
    font-weight: bold;
}

.results-table .market-cell {
    background: var(--accent);
    color: #000000;
    font-weight: bold;
    font-size: 15px;
}

.results-table .market-name {
    font-size: 16px;
}

.results-table .market-time {
    font-size: 13px;
    opacity: 0.8;
}

.results-table .yesterday-result {
    background: #FFFFFF;
    font-size: 20px;
}

.results-table .today-result {
    background: #FFFFFF;
    font-size: 20px;
    min-width: 80px;
}

.results-table .today-result .wait-badge {
    font-size: 14px;
    padding: 5px 12px;
}

/* ===== MONTHLY CHART SECTION ===== */
.chart-section {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.chart-title-bar {
    background: var(--primary);
    color: #000000;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    color: #000000;
    font-size: 13px;
}

.chart-table th {
    background: var(--accent);
    color: #000000;
    padding: 10px 6px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
    font-size: 12px;
}

.chart-table td {
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #ccc;
    font-weight: bold;
}

.chart-table .date-cell {
    background: var(--accent);
    color: #000000;
    font-weight: bold;
}

.chart-table .today-row {
    background: #F0F4E8;
}

/* ===== SATTA CHART ARCHIVE ===== */
.archive-section {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.archive-title-bar {
    background: var(--primary);
    color: #000000;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    color: #000000;
    font-size: 14px;
}

.archive-table th {
    background: var(--accent);
    padding: 12px 8px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
}

.archive-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ccc;
    font-weight: bold;
}

.archive-table .market-col {
    background: var(--accent);
    color: #000000;
    text-align: left;
    padding-left: 15px;
}

.archive-table a {
    color: var(--primary);
    text-decoration: underline;
}

.archive-table a:hover {
    color: var(--secondary);
}

/* ===== FOOTER ===== */
.main-footer {
    margin-top: 30px;
}

.footer-content {
    background: #000000;
    padding: 25px 15px;
    text-align: center;
}

.footer-designer {
    background: #FFFFFF;
    color: #000000;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 18px;
}

.footer-designer p {
    margin-bottom: 5px;
}

.footer-whatsapp {
    color: #25D366;
    font-size: 22px;
    font-weight: bold;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--primary);
    margin: 0 15px;
    font-size: 15px;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright-bar {
    background: var(--primary);
    color: #000000;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.disclaimer-bar {
    background: #000000;
    color: var(--accent);
    padding: 20px 15px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    border-top: 2px solid var(--primary);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float.right {
    right: 20px;
}

.whatsapp-float.left {
    left: 20px;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
}

.contact-whatsapp {
    display: inline-block;
    margin: 20px 0;
}

.contact-whatsapp img {
    width: 80px;
    height: 80px;
}

/* ===== LOGIN PAGE ===== */
.login-section {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 15px;
    text-align: center;
}

.login-box {
    background: #FFFFFF;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.login-box h2 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 5px;
}

.login-box h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 25px;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #666;
}

.login-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #333;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: var(--primary);
}

.login-btn {
    display: inline-block;
    padding: 14px 50px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.login-error {
    color: #FF0000;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== MARKET DETAIL PAGE ===== */
.market-hero {
    text-align: center;
    padding: 30px 15px;
}

.market-hero h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.market-hero .market-time {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
}

.market-result-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.result-box {
    text-align: center;
}

.result-box .label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.result-box .value {
    font-size: 42px;
    font-weight: 900;
    color: #FFFFFF;
    min-width: 80px;
}

.result-box .value.wait {
    font-size: 24px;
}

.arrow-icon {
    font-size: 30px;
    color: var(--primary);
}

/* ===== MINI ARCHIVE (for contact/login pages) ===== */
.mini-archive {
    max-width: 900px;
    margin: 25px auto;
    padding: 0 15px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
