/*------------------------------------------------------------------
    INJECTORTECH.CO.NZ — Responsive Breakpoints
-------------------------------------------------------------------*/

/* Tablet landscape / small desktop */
@media (min-width: 992px) and (max-width: 1180px) {
    .site-footer h3 {
        font-size: 1rem;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .top-navbar .navbar-brand {
        margin-left: 15px;
    }

    .navbar-dark .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        box-shadow: none;
    }

    .hero-section {
        padding: 70px 0 45px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .trust-bar .trust-items {
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .top-navbar .navbar-brand {
        margin-left: 15px;
    }

    .top-navbar .navbar-brand img {
        max-width: 31px;
    }

    .navbar-dark .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        box-shadow: none;
    }

    .hero-section {
        padding: 50px 0 40px;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead-text {
        font-size: 1rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-outline {
        margin-left: 0;
        text-align: center;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Trust bar */
    .trust-bar .trust-items {
        gap: 16px;
        justify-content: flex-start;
    }

    .trust-bar .trust-item {
        font-size: 0.8125rem;
        flex: 0 0 auto;
    }

    /* ── Casino table → mobile cards ── */
    .casino-comparison-table .overflow-x-auto {
        overflow-x: visible;
    }

    .casino-comparison-table table,
    .casino-comparison-table table.table-bordered {
        min-width: 0;
        box-shadow: none;
        border: none !important;
        background: transparent;
    }

    .casino-comparison-table table,
    .casino-comparison-table thead,
    .casino-comparison-table tbody,
    .casino-comparison-table th,
    .casino-comparison-table td,
    .casino-comparison-table tr {
        display: block;
    }

    .casino-comparison-table thead {
        display: none;
    }

    .casino-comparison-table tbody tr {
        background: #ffffff;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.06) !important;
        margin-bottom: 12px;
        padding: 0;
        overflow: hidden;
    }

    .casino-comparison-table tbody tr.featured-row {
        border-left: 4px solid #E8652E !important;
    }

    .casino-comparison-table tbody tr:nth-child(even) {
        background: #ffffff;
    }

    .casino-comparison-table tbody td,
    .casino-comparison-table .table-bordered td,
    .casino-comparison-table .table-bordered th {
        border: none !important;
        text-align: center;
    }

    /* Name */
    .casino-comparison-table tbody td.casino-name {
        font-family: 'Inter', sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #aaa;
        padding: 22px 24px 0;
    }

    .casino-comparison-table .rank-num {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.625rem;
        margin-right: 6px;
    }

    /* Tag */
    .casino-comparison-table tbody td.best-for {
        font-size: 0.75rem;
        font-style: italic;
        font-weight: 400;
        color: #1A8B6E;
        padding: 3px 24px 18px;
    }

    /* Bonus */
    .casino-comparison-table tbody td:nth-child(3) {
        font-family: 'DM Sans', sans-serif;
        color: #1a1a1a;
        padding: 0 24px 6px;
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.2;
    }

    /* Code */
    .casino-comparison-table tbody td:nth-child(4) {
        font-size: 0.7rem;
        color: #ccc;
        padding: 0 24px 20px;
    }

    .casino-comparison-table tbody td:nth-child(4) code {
        font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
        font-size: 0.75rem;
        font-weight: 500;
        color: #666;
        background: transparent;
        border: 1px solid #ddd;
        padding: 3px 14px 2px;
        border-radius: 3px;
    }

    /* CTA */
    .casino-comparison-table tbody td:last-child {
        padding: 0 20px 20px !important;
    }

    .casino-comparison-table tbody td:last-child .btn-visit {
        display: block;
        text-align: center;
        width: 100%;
        padding: 13px;
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-radius: 6px;
        background: #1A8B6E;
        color: #fff;
        transition: opacity 0.12s ease;
    }

    .casino-comparison-table tbody td:last-child .btn-visit:active {
        opacity: 0.85;
    }

    /* ── Payment table → mobile cards ── */
    .payment-table,
    .payment-table thead,
    .payment-table tbody,
    .payment-table th,
    .payment-table td,
    .payment-table tr {
        display: block;
    }

    .payment-table thead {
        display: none;
    }

    .payment-table tr {
        background: #ffffff;
        border: 1px solid #e4e4e4;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 16px 20px;
    }

    .payment-table td {
        border-bottom: none;
        padding: 4px 0;
        text-align: left;
        display: flex;
        justify-content: space-between;
    }

    .payment-table td::before {
        font-weight: 600;
        color: #1E3A5F;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .payment-table td:nth-child(1)::before { content: 'Method'; }
    .payment-table td:nth-child(2)::before { content: 'Min Deposit'; }
    .payment-table td:nth-child(3)::before { content: 'Deposit Speed'; }
    .payment-table td:nth-child(4)::before { content: 'Withdrawal'; }
    .payment-table td:nth-child(5)::before { content: 'Fees'; }

    /* Cards */
    .casino-card {
        padding: 20px;
        height: auto;
    }

    /* FAQ */
    .faq-item summary {
        padding: 16px 45px 16px 20px;
        font-size: 0.9375rem;
    }

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

    /* Footer */
    .site-footer .col-lg-4 {
        margin-bottom: 30px;
    }

    .top-navbar .navbar-dark .navbar-nav .nav-item {
        margin-left: 0;
    }

    .top-navbar .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 16px;
        border-bottom: 1px solid #2D4F7A;
    }

    .content-section,
    .content-section-alt {
        padding: 40px 0;
    }

    .casino-review-cards,
    .faq-section {
        padding: 40px 0;
    }

    .mid-cta {
        padding: 30px 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .casino-card h3 {
        font-size: 1.0625rem;
    }

    .btn-visit-lg {
        padding: 10px 24px;
        font-size: 0.9375rem;
    }

    body {
        font-size: 15px;
    }

    .trust-bar .trust-items {
        gap: 12px;
    }

    .trust-bar .trust-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
}

/* Mobile navbar dropdown styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #1E3A5F;
        padding: 15px;
        margin-top: 8px;
        border-radius: 4px;
    }

    .navbar-nav .dropdown-menu {
        background-color: #162D4A;
        border: none;
        margin-left: 15px;
        padding: 0;
    }

    .navbar-nav .dropdown-item {
        color: #ccc;
        padding: 10px 15px;
        font-size: 15px;
        border-bottom: 1px solid #2D4F7A;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #1A8B6E;
        color: white;
    }

    .navbar-nav .dropdown-divider {
        border-color: #2D4F7A;
        margin: 4px 0;
    }
}
