/*
 * KALYAN CHART WEBSITE - MODERN STYLESHEET
 * Author: AI Assistant
 * Theme: Clean, High-Contrast, Mobile-First
 */

/* --- 1. Variables & Global Reset --- */
:root {
    --primary-color: #f44336;     /* Deep Red/Kalyan Theme Highlight */
    --secondary-color: #ffc107;   /* Amber/Gold for contrast and warnings */
    --accent-color: #03a9f4;      /* Light Blue for links/buttons */
    --background-light: #f8f9fa;  /* Very Light Grey background */
    --text-dark: #212529;         /* Dark text */
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --font-stack: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
    min-width: 320px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* --- 2. Header & Branding --- */
.header-section {
    background: var(--primary-color);
    background-image: linear-gradient(135deg, #d32f2f 0%, #ff5252 100%);
    padding: 30px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.site-title {
    color: var(--text-light);
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3em;
    font-weight: 300;
}

/* --- 3. Ticker Tape (Marquee) --- */
.ticker-tape {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 10px 0;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-transform: uppercase;
}

.ticker-tape span {
    display: inline-block;
    padding: 0 20px;
}

/* --- 4. Main Content Layout --- */
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.chart-sections {
    /* Responsive grid for Jodi and Panel Lists */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* --- 5. Utility Buttons (WhatsApp/Call) --- */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    min-width: 200px;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}

.call-btn {
    background-color: #0077B5; /* Deep Blue/Viber/Phone Call */
}

/* --- 6. Chart List Styling (Side Links) --- */
.jodilisthead, .panellisthead {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 20px;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    margin-top: 25px;
    text-transform: capitalize;
}

.jodilist, .panellist {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.jodi, .panel {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
    color: var(--text-dark);
    font-weight: 500;
    text-align: left;
    transition: background-color 0.2s ease;
}

.jodi:last-child, .panel:last-child {
    border-bottom: none;
}

.jodi:hover, .panel:hover {
    background-color: #fff3e0; /* Light Amber/Gold hover */
    color: var(--primary-color);
}

/* --- 7. Chart Table Styles (The actual data display) --- */
.chart-container {
    overflow-x: auto;
    width: 100%;
    margin: 20px 0;
}

.chart-table {
    width: 100%;
    min-width: 650px; /* Ensures readability on small screens */
    border-collapse: collapse;
    margin: 10px auto;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-table th,
.chart-table td {
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.chart-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Row Striping */
.chart-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.chart-table tr:hover {
    background-color: #fce4ec; /* Light Pink hover */
}

/* Highlighting Key Data */
.jodi-column {
    font-weight: 900;
    color: var(--primary-color);
    background-color: #ffebee;
    font-size: 1.1em;
}

.panel-column {
    font-style: italic;
    color: #388e3c; /* Green for Panel numbers */
}

/* --- 8. Articles/Text Blocks --- */
.article {
    text-align: left;
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
    font-size: 1em;
}

.article h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

/* --- 9. Footer --- */
.footer {
    background: var(--text-dark);
    color: #bdbdbd;
    padding: 20px 10px;
    font-size: 0.9em;
    margin-top: 40px;
    font-weight: 400;
}

.footer a {
    color: var(--secondary-color);
}

/* --- 10. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.2em;
        letter-spacing: 3px;
    }

    .site-subtitle {
        font-size: 1.1em;
    }

    .button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .chart-sections {
        gap: 20px;
    }

    .jodilisthead, .panellisthead {
        font-size: 1.2em;
    }

    .jodi, .panel {
        font-size: 1em;
        padding: 10px 15px;
    }
}