/*
Theme Name: Lottery
Theme URI: https://monichaudhary.me/
Author: Mohsin Rizwan
Author URI: https://monichaudhary.me/
Description: Don't try to copy the theme, otherwise, I'll take the action against you.
Version: 2.0
*/
/* ===============================
   LOTTERY RESULT PAGE – GLOBAL
   Enhanced Design
================================ */

.lottery-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8fafc;
    min-height: 100vh;
}

/* Gradient Background Effect */
.lottery-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0.05;
}

/* ===============================
   PAGE TITLE
================================ */

.lottery-page h1 {
    font-size: 28px;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 800;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.lottery-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ===============================
   DATE DISPLAY
================================ */

.lottery-date {
    text-align: center;
    font-size: 16px;
    color: #64748b;
    margin: -10px 0 25px 0;
    font-weight: 500;
    background: white;
    padding: 8px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* ===============================
   INTERNAL TIME LINKS
================================ */

.time-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.time-links a {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.time-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.time-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.time-links a:hover::before {
    left: 100%;
}

.time-links a.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* ===============================
   LIVE RESULT CONTAINER
================================ */

.live-result {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.live-result::before {
    content: 'LIVE';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3);
}

/* ===============================
   LOTTERY RESULT BOX
================================ */

.lottery-result-box {
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
    color: #2c3e50;
    text-align: center;
    border-radius: 16px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lottery-result-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.lottery-result-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 0 0 16px 16px;
}

/* ===============================
   IMAGE STYLING
================================ */

.lottery-page img,
.live-result img,
.lottery-result-box img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 25px auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lottery-page img:hover,
.live-result img:hover,
.lottery-result-box img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ===============================
   DOWNLOAD BUTTONS
================================ */

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.download-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #1f6aa5);
}

.download-btn.pdf {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.download-btn.pdf:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

/* ===============================
   RESULT TABLE
================================ */

.lottery-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lottery-page table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: center;
    border: none;
}

.lottery-page table td {
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: white;
    transition: background 0.2s ease;
}

.lottery-page table tr:nth-child(even) td {
    background: #f8fafc;
}

.lottery-page table tr:hover td {
    background: #e8f4fd;
}

.lottery-page table tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.lottery-page table tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.lottery-page table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.lottery-page table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* ===============================
   CONTENT TEXT
================================ */

.lottery-page p {
    font-size: 16px;
    margin: 15px 0;
    color: #4a5568;
    line-height: 1.7;
}

.lottery-page p strong {
    color: #2c3e50;
    font-weight: 600;
}

.lottery-page p.highlight {
    background: linear-gradient(135deg, #e8f4fd, #d6eaf8);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

/* ===============================
   INFO BOXES
================================ */

.info-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #ffd43b;
    color: #856404;
}

.info-box.warning {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #f5c6cb;
    color: #721c24;
}

.info-box.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #c3e6cb;
    color: #155724;
}

/* ===============================
   DISCLAIMER
================================ */

.disclaimer {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 25px;
    border-left: 5px solid #ff9800;
    font-size: 14px;
    color: #856404;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
    border: 1px solid #ffd43b;
}

.disclaimer strong {
    color: #856404;
    font-weight: 700;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 768px) {
    .lottery-page {
        padding: 10px 10px;
    }

    .lottery-page h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .lottery-date {
        font-size: 14px;
        padding: 6px 15px;
    }

    .time-links {
        gap: 8px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .time-links a {
        font-size: 14px;
        padding: 8px 18px;
    }

    .live-result {
        padding: 20px;
    }

    .lottery-result-box {
        padding: 20px;
        margin: 15px auto;
    }

    .lottery-page img,
    .live-result img,
    .lottery-result-box img {
        margin: 20px auto;
        border-width: 1px;
    }

    .download-buttons {
        gap: 10px;
        margin: 20px 0;
    }

    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .lottery-page table {
        font-size: 14px;
    }

    .lottery-page table th,
    .lottery-page table td {
        padding: 12px;
    }

    .disclaimer {
        padding: 20px;
        font-size: 13px;
    }
}

/* ===============================
   SMALL MOBILE OPTIMIZATION
================================ */

@media (max-width: 480px) {
    .lottery-page h1 {
        font-size: 22px;
    }

    .lottery-date {
        font-size: 13px;
        padding: 5px 12px;
    }

    .time-links {
        gap: 6px;
        padding: 10px;
    }

    .time-links a {
        font-size: 13px;
        padding: 7px 15px;
    }

    .live-result::before {
        font-size: 10px;
        padding: 4px 30px;
        top: 12px;
        right: -25px;
    }

    .lottery-result-box {
        padding: 15px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .lottery-page table {
        font-size: 13px;
    }

    .lottery-page table th,
    .lottery-page table td {
        padding: 10px 8px;
    }

    .lottery-page p {
        font-size: 15px;
    }
}

/* ===============================
   ANIMATIONS
================================ */

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

.lottery-result-box {
    animation: fadeIn 0.6s ease forwards;
}

/* ===============================
   SCROLLBAR STYLING
================================ */

.lottery-page::-webkit-scrollbar {
    width: 8px;
}

.lottery-page::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lottery-page::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.lottery-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b4193);
}