/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0d0f1a; 
}
::-webkit-scrollbar-thumb {
    background: #2d3246; 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7b01; 
}

/* Sidebar Animations */
.sidebar-transition {
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Collapsed State Styles */
@media (min-width: 1024px) {
    #sidebar.collapsed .nav-text,
    #sidebar.collapsed .nav-arrow, 
    #sidebar.collapsed .sidebar-footer-text,
    #sidebar.collapsed .special-promo-text {
        display: none;
    }
    #sidebar.collapsed .menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    #sidebar.collapsed .nav-item-content {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    #sidebar.collapsed .logo-text {
        display: none;
    }
    /* Hide the bottom footer complex elements when collapsed */
    #sidebar.collapsed .footer-complex {
        display: none;
    }
    #sidebar.collapsed .footer-simple {
        display: flex;
    }
}

.gradient-banner {
    background: linear-gradient(90deg, #1f2345 0%, #2a184a 100%);
}

/* SEO Block Styles (Automatic Application) */
.seo-block {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 4rem;
    padding: 2rem;
    background-color: #131521;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 100%;
    overflow-x: hidden;
}

.seo-block h1, 
.seo-block h2, 
.seo-block h3 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-block h1 { font-size: 2rem; }
.seo-block h2 { font-size: 1.5rem; border-bottom: 2px solid #ff7b01; display: inline-block; padding-bottom: 5px; }
.seo-block h3 { font-size: 1.25rem; color: #e5e7eb; }

.seo-block p {
    margin-bottom: 1.5rem;
}

.seo-block ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.seo-block ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.seo-block ul li::before {
    content: '•';
    color: #ff7b01;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.seo-block ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.seo-block ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    color: #9ca3af;
}

.seo-block ol li::marker {
    color: #ff7b01;
    font-weight: bold;
}

/* Tables in SEO block: horizontal scroll on desktop when needed */
.seo-block:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.seo-block table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #1a1d2e;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seo-block th {
    background-color: #0d0f1a;
    color: #ff7b01;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.seo-block td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e5e7eb;
}

.seo-block tr:last-child td {
    border-bottom: none;
}

.seo-block tr:hover td {
    background-color: rgba(255,255,255,0.02);
}

/* Mobile: card layout — no horizontal scroll, each row = one card */
@media (max-width: 767px) {
    .seo-block:has(table) {
        overflow-x: visible;
    }

    .seo-block .seo-table {
        display: block;
        min-width: 0;
        margin: 1.25rem 0;
    }

    .seo-block .seo-table thead,
    .seo-block .seo-table tbody tr:first-child {
        display: none;
    }

    .seo-block .seo-table tbody tr {
        display: block;
        background-color: #1a1d2e;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }

    .seo-block .seo-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .seo-block .seo-table td {
        display: block;
        padding: 0.4rem 0 0.5rem;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: #e5e7eb;
        font-size: 0.875rem;
    }

    .seo-block .seo-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .seo-block .seo-table td p {
        margin: 0;
        font-size: inherit;
        line-height: 1.4;
    }

    .seo-block .seo-table td::before {
        display: block;
        font-weight: 700;
        color: #ff7b01;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 0.2rem;
    }

    .seo-block .seo-table-bonus td:nth-child(1)::before { content: "Deposito"; }
    .seo-block .seo-table-bonus td:nth-child(2)::before { content: "Percentuale Bonus"; }
    .seo-block .seo-table-bonus td:nth-child(3)::before { content: "Massimo Importo"; }
    .seo-block .seo-table-bonus td:nth-child(4)::before { content: "Caratteristica Extra"; }

    .seo-block .seo-table-payment td:nth-child(1)::before { content: "Metodo di Pagamento"; }
    .seo-block .seo-table-payment td:nth-child(2)::before { content: "Velocità Deposito"; }
    .seo-block .seo-table-payment td:nth-child(3)::before { content: "Velocità Prelievo"; }
    .seo-block .seo-table-payment td:nth-child(4)::before { content: "Commissioni"; }
}

.seo-block strong {
    color: #ffffff;
}
