/* ==========================================================================
   Juwai Morning Teer - Unified Design & Layout System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #3bb394;
    --primary-dark: #2e8f75;
    --header-bg: #a2d2ff;
    --bg-main: #ffffff;
    --text-dark: #000000;
    --text-mid: #333333;
    --border-color: #444444;
}

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

body {
    font-family: Arial, 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 100vh;
}

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

/* ==========================================================================
   MAIN CONTAINER & HEADER ALIGNMENT
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.site-header {
    background-color: var(--header-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-brand svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.header-brand h1 {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin: 0;
}

.page-title {
    text-align: center;
    color: #333333;
    font-size: 13px;
    font-weight: normal;
    margin: 10px 0;
}

.badge-date {
    background-color: var(--primary);
    color: #000000;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--primary-dark);
}

.badge-title {
    background-color: var(--primary);
    color: #000000;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--primary-dark);
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.premium-table-wrap {
    width: 100%;
    margin-bottom: 25px;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: center;
}

.premium-table th, .premium-table td {
    border: 1px solid #444;
    text-align: center;
    padding: 10px;
}

.premium-table th {
    background-color: var(--primary);
    color: #111;
    font-weight: normal;
    font-size: 13px;
}

.premium-table td {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

/* ==========================================================================
   GRID & BOTTOM NAV BAR
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bottom-6-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .bottom-6-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .bottom-6-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }
}

.grid-card {
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
    transition: opacity 0.2s;
}

.grid-card:hover {
    opacity: 0.9;
}

.grid-card img {
    width: 100%;
    height: auto;
    display: block;
}

.block-win-prizes {
    background-color: #1abc9c;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    height: 100%;
    min-height: 100px;
    border-radius: 4px;
}

.block-teer-home {
    background-color: #ffffff;
    border: 2px solid #4a90e2;
    color: #4a90e2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    height: 100%;
    min-height: 100px;
    border-radius: 4px;
}

.footer-card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    font-family: Arial, sans-serif;
}

.footer-main-text {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #333333;
    line-height: 1.8;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-tiny-text {
    text-align: left;
    font-size: 10px;
    color: #333333;
    line-height: 1.4;
}

.footer-tiny-text a {
    color: #0056b3;
    text-decoration: underline;
}

/* Popup Banner */
.popup-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #ffb142;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #007bff;
    z-index: 100;
}

.popup-close {
    color: #666;
    cursor: pointer;
    font-weight: bold;
}
