/* ========================================
   TLV Bet - Supreme Bet
   Responsive Stylesheet
   Mobile-First Fixes + All Breakpoints
   ======================================== */

/* ---- Global Mobile Overflow Fix ---- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- Max 1200px ---- */
@media (max-width: 1200px) {
    .hero__inner {
        gap: 40px;
    }

    .hero__3d-shield {
        width: 260px;
        height: 312px;
    }

    .vip__podium {
        gap: 16px;
    }

    .footer__top {
        grid-template-columns: 1.2fr 2.8fr;
        gap: 36px;
    }
}

/* ---- Max 1024px ---- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Header - Mobile Nav */
    .header__nav {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(17, 17, 17, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(212, 168, 67, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 24px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        overflow-y: auto;
    }
    .header__nav.open {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .header__link {
        display: block;
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        font-size: 1.05rem;
        width: 100%;
    }
    .header__link:hover,
    .header__link.active {
        background: rgba(212, 168, 67, 0.08);
    }
    .header__link::after {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Hero */
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 80px;
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 2;
        display: none;
    }

    .hero__badge {
        justify-content: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__bg-shield {
        width: 400px;
        height: 480px;
        opacity: 0.3;
    }

    /* Sports */
    .sports__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    /* Casino */
    .casino__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* VIP */
    .vip__podium {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }
    .vip__tier--bronze,
    .vip__tier--silver,
    .vip__tier--gold,
    .vip__tier--diamond {
        min-height: auto;
    }

    /* Trust */
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Payments */
    .payments__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer__brand {
        text-align: center;
    }
    .footer__logo {
        justify-content: center;
    }
    .footer__desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .footer__social {
        justify-content: center;
    }
    .footer__links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Max 768px ---- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }

    /* Header */
    .header__shield {
        width: 28px;
    }
    .header__brand {
        font-size: 1.15rem;
    }

    .header__actions .btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
    }
    .hero__title {
        font-size: clamp(1.8rem, 5.5vw, 2.6rem);
    }
    .hero__title-line {
        white-space: normal;
    }
    .hero__subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }
    .hero__stats {
        gap: 24px;
    }
    .hero__stat-num {
        font-size: 1.3rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 36px;
        padding: 0 8px;
    }
    .section-header__title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    .section-header__sub {
        font-size: 0.95rem;
    }

    /* Section shield BG - hide on mobile */
    .section-shield-bg {
        display: none;
    }

    /* Section divider */
    .section-divider svg {
        height: 40px;
    }

    /* Sports */
    .sports__tabs {
        gap: 6px;
        margin-bottom: 28px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    .sports__tabs::-webkit-scrollbar {
        display: none;
    }
    .sports__tab {
        padding: 8px 14px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    .sports__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Bet slip - fix overflow */
    .bet-slip {
        clip-path: none;
    }
    .bet-slip__perforation {
        display: none;
    }
    .bet-slip__body {
        padding: 16px 14px;
    }
    .bet-slip__odds {
        padding: 0 14px 14px;
    }

    /* Casino */
    .casino__filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .casino__filters::-webkit-scrollbar {
        display: none;
    }
    .casino__filter {
        flex-shrink: 0;
    }
    .casino__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .casino-card {
        height: 240px;
    }
    .casino-card__title {
        font-size: 0.95rem;
    }
    .casino-card__icon {
        width: 50px;
        height: 50px;
    }
    .casino-card__icon .material-symbols-outlined {
        font-size: 1.6rem;
    }

    /* Promotions - fix overflow */
    .promotions__scroll {
        padding: 0 16px 20px;
    }
    .golden-ticket {
        width: 270px;
    }

    /* VIP */
    .vip__podium {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Trust */
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust__counter-num {
        font-size: 1.6rem;
    }

    /* Payments */
    .payments__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .payments__badges {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    /* FAQ */
    .faq__question {
        padding: 14px 16px;
        font-size: 0.92rem;
        gap: 8px;
    }
    .faq__answer p {
        padding: 0 16px 14px;
        font-size: 0.88rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 70px 0;
    }
    .cta-banner__title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    .cta-banner__text {
        font-size: 1rem;
        padding: 0 8px;
    }
    .cta-banner__btn {
        padding: 14px 36px;
        font-size: 1rem;
    }

    /* Footer */
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Modal */
    .modal__content {
        margin: 16px;
        padding: 28px 24px;
        max-width: 100%;
        border-radius: var(--radius-md);
    }
}

/* ---- Max 480px ---- */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px 0;
        --container-padding: 0 14px;
    }

    /* Header */
    .header {
        height: 60px;
    }
    .header__inner {
        height: 60px;
    }
    .header__nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    .header__shield {
        width: 24px;
        height: 29px;
    }
    .header__brand {
        font-size: 1rem;
    }

    .header__actions .btn--outline-gold {
        display: none;
    }
    .header__actions .btn--gold {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
    .header__actions {
        gap: 8px;
    }

    /* Hero */
    html {
        scroll-padding-top: 60px;
    }
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 0;
    }
    .hero__inner {
        padding-top: 36px;
        padding-bottom: 60px;
    }
    .hero__badge {
        font-size: 0.78rem;
        padding: 5px 14px;
        margin-bottom: 18px;
    }
    .hero__title {
        font-size: clamp(1.6rem, 7.5vw, 2.2rem);
        margin-bottom: 14px;
        line-height: 1.25;
    }
    .hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
        line-height: 1.7;
    }
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 32px;
        padding: 0 4px;
    }
    .hero__cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    .hero__stats {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .hero__stat {
        min-width: 85px;
        padding: 8px 6px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }
    .hero__stat-num {
        font-size: 1.15rem;
    }
    .hero__stat-label {
        font-size: 0.7rem;
    }

    .hero__bg-shield {
        width: 250px;
        height: 300px;
        opacity: 0.15;
    }

    /* Ticker */
    .live-ticker__header-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .live-ticker__title {
        font-size: 0.8rem;
    }
    .live-ticker__all {
        font-size: 0.75rem;
    }
    .ticker-item {
        padding: 10px 16px;
        font-size: 0.78rem;
        gap: 8px;
    }

    /* Sports */
    .sports__tab {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
    .sports__tab .material-symbols-outlined {
        font-size: 0.95rem;
    }

    .bet-slip__header {
        padding: 10px 14px;
    }
    .bet-slip__league {
        font-size: 0.75rem;
    }
    .bet-slip__time {
        font-size: 0.75rem;
    }
    .bet-slip__body {
        padding: 14px 12px;
    }
    .bet-slip__team-name {
        font-size: 0.85rem;
    }
    .bet-slip__score {
        font-size: 1.4rem;
    }
    .bet-slip__vs {
        font-size: 0.65rem;
        padding: 0 8px;
    }
    .odds-chip {
        padding: 8px 4px;
        border-radius: 30px;
    }
    .odds-chip__label {
        font-size: 0.6rem;
    }
    .odds-chip__value {
        font-size: 0.88rem;
    }
    .bet-slip__footer {
        padding: 8px 14px 12px;
        font-size: 0.75rem;
    }

    /* Casino */
    .casino__filter {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .casino__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .casino-card {
        height: 220px;
    }
    .casino-card__front {
        padding: 20px 14px;
    }
    .casino-card__back {
        padding: 20px 14px;
    }
    .casino-card__title {
        font-size: 0.85rem;
    }
    .casino-card__live-badge,
    .casino-card__hot-badge {
        font-size: 0.65rem;
    }
    .casino-card__players {
        font-size: 0.7rem;
    }
    .casino-card__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    .casino-card__icon .material-symbols-outlined {
        font-size: 1.4rem;
    }
    .casino-card__back h3 {
        font-size: 0.9rem;
    }
    .casino-card__back p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    .casino-card__stakes {
        font-size: 0.7rem;
        gap: 10px;
    }
    .casino-card__back .btn--sm {
        padding: 6px 16px;
        font-size: 0.75rem;
    }

    /* Promotions */
    .golden-ticket {
        width: 250px;
    }
    .golden-ticket__body {
        padding: 20px 16px;
    }
    .golden-ticket__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 10px;
    }
    .golden-ticket__icon .material-symbols-outlined {
        font-size: 1.5rem;
    }
    .golden-ticket__title {
        font-size: 1rem;
    }
    .golden-ticket__desc {
        font-size: 0.78rem;
    }
    .golden-ticket__value {
        font-size: 1.2rem;
    }

    /* VIP */
    .vip__tier {
        padding: 24px 16px;
    }
    .vip__tier-shield {
        width: 56px;
        height: 67px;
    }
    .vip__tier-name {
        font-size: 1rem;
    }
    .vip__tier-perks li {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    .vip__tier-popular {
        font-size: 0.65rem;
        padding: 3px 12px;
    }

    /* Trust */
    .trust {
        padding: 40px 0;
    }
    .trust__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .trust__counter {
        padding: 18px 10px;
    }
    .trust__counter-icon .material-symbols-outlined {
        font-size: 1.6rem;
    }
    .trust__counter-num {
        font-size: 1.2rem;
    }
    .trust__counter-label {
        font-size: 0.72rem;
    }

    /* Payments */
    .payments__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .payment-method {
        padding: 12px 8px;
        font-size: 0.78rem;
        gap: 6px;
    }
    .payment-method .material-symbols-outlined {
        font-size: 1rem;
    }

    /* FAQ */
    .faq__question {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .faq__icon {
        font-size: 1.2rem !important;
    }

    /* CTA */
    .cta-banner {
        padding: 50px 0;
    }
    .cta-banner__title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        padding: 0 8px;
    }
    .cta-banner__text {
        font-size: 0.9rem;
        padding: 0 8px;
    }
    .cta-banner__btn {
        width: calc(100% - 32px);
        margin: 0 auto;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 24px;
    }
    .cta-banner__shield {
        width: 140px;
        height: 168px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }
    .footer__shield-watermark {
        display: none;
    }
    .footer__brand {
        text-align: center;
    }
    .footer__logo {
        justify-content: center;
    }
    .footer__shield {
        width: 32px;
        height: 38px;
    }
    .footer__brand-name {
        font-size: 1.2rem;
    }
    .footer__desc {
        font-size: 0.85rem;
        text-align: center;
        margin: 0 auto 16px;
    }
    .footer__social {
        justify-content: center;
    }
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
    }
    .footer__col-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .footer__col-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .footer__col a {
        font-size: 0.82rem;
    }
    .footer__copyright {
        font-size: 0.78rem;
    }
    .footer__disclaimer {
        font-size: 0.72rem;
        padding: 0 8px;
    }
    .footer__bottom {
        padding: 16px 0;
    }

    /* Back to top */
    .back-to-top {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 53px;
    }

    /* Modal */
    .modal__content {
        margin: 12px;
        padding: 24px 18px;
        max-width: calc(100vw - 24px);
    }
    .modal__title {
        font-size: 1.3rem;
    }
    .modal__shield {
        width: 48px;
        height: 58px;
    }
    .form-input {
        font-size: 0.9rem;
    }
    .form-label {
        font-size: 0.82rem;
    }
}

/* ---- Max 360px (very small phones) ---- */
@media (max-width: 360px) {
    .header__brand {
        font-size: 0.9rem;
    }
    .header__shield {
        width: 20px;
        height: 24px;
    }

    .hero__title {
        font-size: 1.5rem;
    }
    .hero__subtitle {
        font-size: 0.82rem;
    }

    .casino__grid {
        grid-template-columns: 1fr;
    }
    .casino-card {
        height: 220px;
    }

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

    .golden-ticket {
        width: 230px;
    }

    .footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ---- Hover effects only on pointer devices ---- */
@media (hover: hover) and (pointer: fine) {
    .casino-card:hover .casino-card__inner {
        transform: rotateY(180deg);
    }
}

/* Touch devices - tap to flip casino cards */
@media (hover: none) {
    .casino-card .casino-card__inner {
        transform: none;
    }
    .casino-card.flipped .casino-card__inner {
        transform: rotateY(180deg);
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__particles .particle {
        display: none !important;
    }

    .live-ticker__items {
        animation: none !important;
    }

    .casino-card:hover .casino-card__inner,
    .casino-card.flipped .casino-card__inner {
        transform: none;
    }

    .gold-text {
        animation: none !important;
        background-size: 100% auto;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .cta-banner__bg {
        animation: none !important;
    }

    .golden-ticket__ornament-top,
    .golden-ticket__ornament-bottom {
        animation: none !important;
    }
}

/* ---- Print Styles ---- */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .header,
    .live-ticker,
    .hero__particles,
    .hero__bg-shield,
    .hero__visual,
    .section-divider,
    .section-shield-bg,
    .back-to-top,
    .modal,
    .cta-banner,
    .header__hamburger,
    .footer__social,
    .vip__glow,
    .casino__felt-overlay {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .sports__grid,
    .casino__grid,
    .vip__podium,
    .trust__grid,
    .payments__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promotions__track {
        flex-wrap: wrap;
    }

    .golden-ticket {
        page-break-inside: avoid;
    }
}
