/* ==========================================
   Lottery Sambad Result Site - Master Stylesheet
   Domain: lotterysambadresult.site
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1642;
    --accent: #f9a825;
    --accent-light: #fdd835;
    --accent-dark: #c17900;
    --success: #2e7d32;
    --danger: #c62828;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-dark: #0d1642;
    --text: #212121;
    --text-light: #616161;
    --text-white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: .3s ease;
    --max-width: 1100px;
    --font: 'Inter', 'Noto Sans Bengali', Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    color: var(--primary-dark);
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 12px 0;
    font-size: .85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-light);
}

.breadcrumb span {
    margin: 0 6px;
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 60px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 900;
}

/* ---------- Navigation ---------- */
.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, .15);
    color: var(--text-white);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-white);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 48px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 168, 37, .08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5%, 5%);
    }
}

.hero h1 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.hero p {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
}

/* Quick-link Buttons */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .95rem;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(249, 168, 37, .35);
    transition: all var(--transition);
}

.quick-link:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 168, 37, .45);
}

.quick-link .time-badge {
    background: var(--primary-dark);
    color: var(--text-white);
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ---------- Section ---------- */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: .95rem;
    margin-bottom: 28px;
}

/* ---------- Result Cards ---------- */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.result-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-card-header h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
}

.result-card-header .draw-time {
    background: var(--accent);
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.result-card-body {
    padding: 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-card-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.result-placeholder {
    color: var(--text-light);
    font-size: .95rem;
}

.result-placeholder .icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.result-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.result-card-footer a {
    font-weight: 600;
    font-size: .9rem;
    color: var(--primary);
}

.result-card-footer a:hover {
    color: var(--accent-dark);
}

/* ---------- Time-slot Tabs ---------- */
.time-tabs {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--primary);
    margin-bottom: 24px;
    width: fit-content;
}

.time-tab {
    padding: 10px 24px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--primary);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all var(--transition);
}

.time-tab:hover {
    background: rgba(26, 35, 126, .07);
}

.time-tab.active {
    background: var(--primary);
    color: var(--text-white);
}

/* ---------- Prize Table ---------- */
.prize-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .92rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.prize-table thead {
    background: var(--primary);
    color: var(--text-white);
}

.prize-table th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}

.prize-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.prize-table tbody tr:nth-child(even) {
    background: rgba(26, 35, 126, .03);
}

.prize-table tbody tr:hover {
    background: rgba(249, 168, 37, .08);
}

.prize-table .prize-amount {
    font-weight: 700;
    color: var(--success);
}

/* ---------- Info Box ---------- */
.info-box {
    background: linear-gradient(135deg, rgba(26, 35, 126, .04) 0%, rgba(249, 168, 37, .06) 100%);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ---------- Content Blocks ---------- */
.content-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-block h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.content-block h3 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
}

.content-block p {
    margin-bottom: 14px;
    color: var(--text);
}

.content-block ul {
    margin: 10px 0 14px 20px;
}

.content-block ul li {
    list-style: disc;
    margin-bottom: 6px;
    color: var(--text);
}

/* ---------- FAQ (Always Visible) ---------- */
.faq-section {
    margin-top: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 16px 20px 8px;
    background: rgba(26, 35, 126, .03);
    border: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font);
    text-align: left;
    gap: 10px;
    cursor: default;
    padding-bottom: 12px;
}

.faq-question::before {
    content: 'Q.';
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.faq-answer {
    padding: 14px 20px 16px;
}

.faq-answer p {
    font-size: .92rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Result Actions (Download + Share) ---------- */
.result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: var(--text-white);
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(46, 125, 50, .3);
}

.btn-download:hover {
    background: #1b5e20;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, .4);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons .share-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text-white);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    color: var(--text-white);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #006fa8;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #333333;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #1565c0;
}

/* ---------- Timetable ---------- */
.timetable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.timetable-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.timetable-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.timetable-card .draw-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.timetable-card .draw-time-label {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.timetable-card .draw-detail {
    font-size: .82rem;
    color: var(--text-light);
}

/* ---------- Current Date Banner ---------- */
.date-banner {
    background: var(--accent);
    color: var(--primary-dark);
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: .9rem;
}

/* ---------- Result Page Hero ---------- */
.result-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 32px 0;
    text-align: center;
}

.result-hero h1 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.result-hero .current-date {
    opacity: .85;
    font-size: .95rem;
}

.result-display {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    margin: -20px auto 0;
    max-width: 700px;
    position: relative;
    z-index: 10;
    text-align: center;
    border: 1px solid var(--border);
}

.result-display img {
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, .75);
    padding: 48px 0 20px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-col p {
    font-size: .88rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    text-align: center;
    font-size: .82rem;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
    font-size: .8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 8px 16px 16px;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: .92rem;
    }

    .quick-links {
        gap: 12px;
        flex-direction: column;
        width: 100%;
    }

    .quick-link {
        padding: 14px 20px;
        font-size: .9rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 20px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .prize-table {
        font-size: .82rem;
    }

    .prize-table th,
    .prize-table td {
        padding: 10px 12px;
    }

    .timetable {
        grid-template-columns: 1fr;
    }

    .result-hero h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 52px;
    }

    .site-logo {
        font-size: 1.05rem;
    }

    .hero {
        padding: 32px 0 28px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .quick-link {
        padding: 14px 16px;
        font-size: .85rem;
    }

    .time-tab {
        padding: 8px 16px;
        font-size: .82rem;
    }
}

/* ---------- Print ---------- */
@media print {

    .site-header,
    .site-footer,
    .menu-toggle,
    .back-to-top,
    .quick-links {
        display: none !important;
    }

    .hero {
        background: #fff !important;
        color: #000 !important;
        padding: 16px 0;
    }

    .hero h1 {
        color: #000 !important;
    }

    .result-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        font-size: 14px;
    }
}