/* style.css - 100% Exact Parity with Image 2 */
:root {
    --purple: #5e35b1;
    --deep-blue: #3f51b5;
    --red: #FF0000;
    --blue: #0000FF;
    --green: #008000;
    --yellow: #FFFF00;
    --white: #FFFFFF;
    --dark-navy: #000080;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: #000;
    text-align: center;
    line-height: 1.4;
}

/* Header Sections */
header {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 20px 10px;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.seo-text {
    font-size: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Red Live Bar */
.live-bar {
    background-color: var(--white);
    color: var(--red);
    font-weight: 900;
    padding: 10px;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    /* Light border for separation */
}

.branding-description {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.8;
    text-transform: none;
    /* Keep description case-sensitive */
}

/* Yellow App Banner */
.yellow-app-banner {
    background-color: var(--yellow);
    color: #000;
    padding: 15px;
    margin: 15px 0;
    font-weight: 900;
    font-size: 1.5rem;
    border: 3px solid var(--red);
    border-radius: 12px;
    display: block;
    text-decoration: none;
}

/* Section Headers */
.results-header {
    background-color: var(--red);
    color: var(--white);
    padding: 12px;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin: 15px 0;
    border-radius: 12px 12px 0 0;
    border: 2px solid var(--red);
}

.market-container {
    padding: 10px;
}

/* Market Card Styling - 100% Parity */
.market-card {
    border: 2px solid #ff0000 !important;
    background-color: #ffffff !important;
    padding: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin-left: 5px !important;
    margin-right: 5px !important;
}

.market-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.market-name-red {
    color: #ff0000 !important;
    font-size: 1.6rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0.8px 0 0.5px #ff0000;
    /* Even Thicker */
}

.result-text {
    font-size: 2.3rem !important;
    /* Slightly smaller as requested */
    font-weight: 950 !important;
    color: #000 !important;
    margin: 5px 0 !important;
    text-shadow: 0.8px 0 0.5px #000;
    /* Thicker "Mota" look */
}

/* Dynamic Status Badges */
.status-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.5px;
}

.status-badge-open {
    background-color: var(--green);
}

.status-badge-closed {
    background-color: var(--red);
}

.status-badge-soon {
    background-color: var(--purple);
}

.status-badge-running {
    background-color: #ff9800;
    /* Flat Orange */
}

.status-badge-coming-in {
    background-color: #00bcd4;
    /* Flat Cyan */
}

.status-badge-close-in {
    background: linear-gradient(180deg, #ffeb3b 0%, #fbc02d 100%);
    /* Yellowish Amber */
    color: #000;
    /* Dark text for yellow */
}

/* Info Row Improvements */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.time-text-maroon {
    color: #800000;
    font-weight: 900;
    font-size: 1.1rem;
    width: 100px;
}

.daily-badge-purple {
    background-color: #5e35b1;
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.85rem;
}

.time-text-maroon-right {
    color: #800000;
    font-weight: 900;
    font-size: 1.1rem;
    width: 100px;
    text-align: right;
}

/* Chart Button base style */
.chart-btn-base {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline-block !important;
    border-radius: 8px !important;
    border: 1.5px solid #000 !important;
    text-align: center !important;
    transition: all 0.2s !important;
}

.chart-btn-jodi {
    background: linear-gradient(180deg, #3f51b5 0%, #000080 100%) !important;
    box-shadow: 0 4px 0 #000050 !important;
}

.chart-btn-panel {
    background: linear-gradient(180deg, #00b300 0%, #008000 100%) !important;
    box-shadow: 0 4px 0 #004d00 !important;
}

.chart-btn-jodi:active,
.chart-btn-panel:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5) !important;
}

/* Chart Page Specifics */
.chart-header {
    background-color: var(--white);
    color: var(--red);
    padding: 15px;
    font-size: 1.8rem;
    font-weight: 900;
    border-bottom: 2px solid #ccc;
}

.chart-subheader {
    background-color: #00ffff;
    /* Cyan/Blue-ish from Image 2/3 */
    color: #000;
    padding: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    border-bottom: 2px solid #000;
}

.chart-table-container {
    padding: 10px;
    overflow-x: auto;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9rem;
    background-color: #fff;
}

.chart-table th {
    background-color: var(--dark-navy);
    color: #fff;
    padding: 10px 5px;
    border: 1px solid #ccc;
    font-weight: bold;
    text-transform: uppercase;
}

.chart-table td {
    border: 1px solid #ccc;
    padding: 5px 2px;
    vertical-align: middle;
    text-align: center;
}

.week-date {
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    padding: 5px !important;
}

.chart-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    line-height: 1.1;
}

.panna {
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 1px;
}

.digit {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
    margin: 2px 0;
}

.digit-red {
    color: var(--red) !important;
}

.refresh-btn {
    background-color: var(--red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
}


.ad-container {
    border: 2px solid var(--red);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.dynamic-section {
    border: 2px solid var(--red);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
}

.dynamic-section .section-title {
    background: var(--red);
    color: #fff;
    padding: 8px;
    margin: -10px -10px 10px -10px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .market-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 20px;
    }
}