/* Responsive Styles */

/* Tablet and below */
@media (max-width: 1024px) {
    .casino-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Casino card responsive adjustments for new layout */
@media (max-width: 900px) {
    .casino-top {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "left  title"
            "bonus bonus"
            "cta   cta";
        gap: 0.75rem;
    }
    .top-left   { grid-area: left; }
    .top-middle { grid-area: title; }
    .top-bonus  {
        grid-area: bonus;
        align-self: auto;
        display: block;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .top-bonus .bonus-desc {
        text-align: left;
        padding: 0.5rem 0;
    }
    .top-right  { grid-area: cta; align-items: stretch; }

}
@media (max-width: 768px) {
    .casino-top { grid-template-columns: 1fr; gap: 0.75rem; }
    .top-bonus { grid-column: 1 / -1; }
    .casino-identity {
        justify-content: center;
    }
    .casino-cta { text-align: center; }
    .casino-summary { grid-template-columns: 1fr; }
    .top-right { align-items: stretch; }
    .top-tags { justify-content: flex-start; }
    .mobile-only {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Lite rows stack on mobile */
    .casino-row-lite {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .casino-row-lite__left {
        justify-content: flex-start;
    }
    .casino-row-lite__bonus {
        white-space: normal;
        text-align: center;
        margin: 4px 0;
    }
    .casino-row-lite__cta {
        justify-content: stretch;
        width: 100%;
    }
    .casino-row-lite__cta .btn-cta {
        flex: 1 1 auto;      /* key: makes button fill width */
        width: auto;         /* optional but helps avoid conflicts */
        max-width: none;     /* override global mobile max-width: 300px */
        text-align: center;
    }
}

/* Ensure RTP stays single-line on smaller screens */
@media (max-width: 768px) {
    .rtp-steps { flex-wrap: nowrap; }
    .rtp-step { width: 10px; height: 20px; }
}

@media (max-width: 480px) {
    .casino-top {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "left  title"
            "bonus bonus"
            "cta   cta";
        gap: 0.75rem;
    }
    .top-left   { grid-area: left; }
    .top-middle { grid-area: title; }
    .top-bonus  {
        grid-area: bonus;
        align-self: auto;
        display: block;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .top-bonus .bonus-desc {
        text-align: left;
        padding: 0.5rem 0;
    }
    .top-right  { grid-area: cta; align-items: stretch; }

    .title-and-stars { min-width: 0; }
    .casino-name { font-size: 1.1rem; line-height: 1.2; }
    .top-tags { row-gap: 0.25rem; }
    .bonus-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }
    .rtp-steps { flex-wrap: nowrap; }
    .rtp-step { width: 9px; height: 18px; }
    .casino-rank-box { width: 70px; height: 70px; font-size: 1.2rem; }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
    }
    .main-nav {
        margin-left: auto;
        position: relative;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 320px);
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--color-footer-2), var(--color-footer-3));
        padding: 4rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        padding: 1rem 0;
    }
    
    .nav-menu a {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
        margin-left: auto;
        padding: 0.5rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 1001;
    }

    .mobile-menu-toggle.active {
        position: fixed;
        top: 1.25rem;
        right: clamp(1rem, 5vw, 2rem);
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(8px);
    }

    .mobile-menu-toggle.active span {
        background: #fff;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .casino-header {
        flex-direction: column;
        text-align: center;
    }
    
    .casino-name-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .casino-logo {
        margin: 0 auto;
    }
    
    .casino-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pnp-explanation {
        padding: 1.5rem;
    }
}

/* Tablet breakpoint for payment methods - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - single column */
@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .casino-card {
        padding: 1rem;
    }
    
    .casino-logo {
        width: 140px;
        aspect-ratio: 2 / 1;
        padding: 0 10px;
    }
    
    .casino-name {
        font-size: 1.25rem;
    }
    
    .btn-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    /* RTP Progress Bar Responsive */
    .casino-rtp-section {
        padding: 0.75rem;
    }
    
    .rtp-steps {
        gap: 0.2rem;
    }
    
    .rtp-step {
        height: 20px;
        max-width: 18px;
        min-width: 12px;
    }
    
    .rtp-label {
        font-size: 0.85rem;
    }
    
    .rtp-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .casino-rtp-section {
        padding: 0.75rem 0.5rem;
        margin: 1rem 0;
    }
    
    .rtp-steps {
        gap: 0.15rem;
    }
    
    .rtp-step {
        height: 18px;
        max-width: 16px;
        min-width: 10px;
    }
    
    .rtp-label {
        font-size: 0.8rem;
    }
    
    .rtp-value {
        font-size: 0.85rem;
    }
}

/* Error Pages Responsive */
@media (max-width: 768px) {
    .error-content {
        padding: 2rem 1.5rem;
    }
    
    .error-code h1 {
        font-size: 5rem;
    }
    
    .error-text h2 {
        font-size: 1.5rem;
    }
    
    .error-text p {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .error-code h1 {
        font-size: 4rem;
    }
    
    .error-text h2 {
        font-size: 1.25rem;
    }
    
    .error-content {
        padding: 1.5rem 1rem;
    }
    
    .suggestion-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .error-section {
        padding: 2rem 0;
    }
    
    .error-code h1 {
        font-size: 4rem;
    }
}

