/* Shared internal page styles — matches homepage design system */

/* ===== Light theme base ===== */
.page-content {
    color: #2d2d2c;
}

/* ===== Typography ===== */
.page-content h1 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.page-content h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 0;
}
.page-content h3 {
    color: #1a1a1a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-content p, .page-content li {
    line-height: 1.8;
    font-size: 16px;
    color: #2d2d2c;
}
.page-content ol {
    padding-left: 22px;
}
.page-content ol li {
    margin-bottom: 10px;
}
.page-content a {
    color: #d4204e;
    text-decoration: underline;
}
.page-content a:hover {
    color: #E5006D;
}

/* ===== Info card (shared with homepage) ===== */
.info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
section > .info-card {
    margin-bottom: 28px;
}
.info-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #E5006D;
}
.info-card h2 {
    margin-bottom: 12px;
}
.info-card > p {
    margin-bottom: 16px;
}
.info-card .card-link {
    margin-top: auto;
}

/* Page card — large content blocks */
.page-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.page-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== Grid layouts ===== */
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
    text-align: center;
    align-items: stretch;
}
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* ===== Step numbers ===== */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E5006D;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ===== Tables ===== */
.sys-req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.sys-req-table th,
.sys-req-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    color: #2d2d2c;
}
.sys-req-table th {
    color: #1a1a1a;
    font-weight: 600;
    background: #fafafa;
}
.sys-req-table tr:hover td {
    background: #fdf0f5;
}

/* ===== FAQ / Details accordion ===== */
.page-content details {
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 0;
}
.page-content details summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
}
.page-content details summary:hover {
    color: #E5006D;
}
.page-content details summary::-webkit-details-marker {
    display: none;
}
.page-content details summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fdf0f5;
    color: #E5006D;
    font-size: 18px;
    flex-shrink: 0;
    transition: background .2s;
}
.page-content details[open] summary::before {
    content: "\2212";
    background: #E5006D;
    color: #fff;
}
.page-content details .faq-answer {
    margin-top: 10px;
    padding-left: 32px;
    color: #444;
    line-height: 1.7;
}

/* ===== FAQ accordion (button-based, used on deposit page) ===== */
.faq-accordion {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.faq-item.active {
    border-color: #E5006D;
}
.faq-item.active .faq-question {
    color: #E5006D;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    gap: 16px;
    transition: background .2s;
}
.faq-question:hover {
    background: #fdf0f5;
}
.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: #999;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #E5006D;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer-inner {
    padding: 0 20px 20px;
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== CTA box ===== */
.cta-box {
    text-align: center;
    padding: 40px 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, #fdf0f5 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}
.cta-box h2 {
    color: #1a1a1a;
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.cta-box p {
    font-size: 17px;
    margin-bottom: 24px;
    color: #444;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 220px;
    padding: 12px 32px;
    background: #d4204e;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(212,32,78,0.3);
}
.btn-cta:hover {
    background: #E5006D;
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(212,32,78,0.4);
}
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 220px;
    padding: 12px 32px;
    background: #fff;
    color: #d4204e !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #d4204e;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.btn-cta-secondary:hover {
    background: #fdf0f5;
    transform: translateY(-2px);
    color: #d4204e !important;
}

/* ===== Promo cards ===== */
.promo-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.promo-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #E5006D;
}

/* ===== Promo terms box ===== */
.promo-terms {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #E5006D;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin-top: 24px;
}

/* ===== Bonus highlight ===== */
.bonus-highlight {
    background: linear-gradient(135deg, #fdf0f5 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    margin: 24px 0;
}
.bonus-highlight .bonus-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E5006D;
}

/* ===== Requirement list ===== */
.req-list {
    list-style: none;
    padding: 0;
}
.req-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}
.req-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #E5006D;
    font-weight: 700;
}

/* ===== Page hero (for game pages) ===== */
.page-hero {
    background: linear-gradient(135deg, #fdf0f5 0%, #fff3f0 50%, #fff 100%);
    padding: 48px 0 40px;
    text-align: center;
}
.page-hero h1 {
    color: #1a1a1a;
    margin-bottom: 12px;
}
.page-hero p {
    color: #444;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Game cards grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}
.card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #E5006D;
}
.card h3 {
    color: #1a1a1a;
}
.card p {
    color: #444;
}

/* ===== Advantage/feature list ===== */
.advantage-list {
    list-style: none;
    padding: 0;
}
.advantage-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #2d2d2c;
}
.advantage-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #E5006D;
    font-weight: 700;
}

/* ===== Steps list (numbered) ===== */
.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}
.steps-list li {
    counter-increment: step-counter;
    padding: 14px 0 14px 48px;
    position: relative;
    margin-bottom: 10px;
}
.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E5006D;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Method badges (deposit page) ===== */
.method-badge {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.method-badge .method-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}
.method-badge .method-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.method-badge .method-time {
    font-size: 13px;
    color: #888;
}
.method-badge:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #E5006D;
}

/* ===== Transaction table ===== */
.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.tx-table th,
.tx-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    color: #2d2d2c;
}
.tx-table th {
    color: #1a1a1a;
    font-weight: 600;
    background: #fafafa;
}
.tx-table tr:hover td {
    background: #fdf0f5;
}

/* ===== Note box ===== */
.note-box {
    background: #fdf0f5;
    border: 1px solid #f0d0dd;
    border-left: 4px solid #E5006D;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-top: 20px;
    color: #444;
}

/* ===== Section divider ===== */
.section-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 32px 0;
}

/* ===== Breadcrumb (light theme) ===== */
.breadcrumb-nav {
    padding: 8px 15px;
    font-size: 14px;
}
.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #999;
}
.breadcrumb-nav a {
    color: #d4204e;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    text-decoration: underline;
}
.breadcrumb-nav [aria-current="page"] {
    color: #666;
}

/* ===== CTA buttons row ===== */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ===== Footer nav grid (used on game pages) ===== */
.footer-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
.footer-nav-grid a {
    color: #000;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-content h1 {
        font-size: 1.5rem;
    }
    .page-content h2 {
        font-size: 1.25rem;
    }
    .grid-2col,
    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
    .page-card {
        padding: 20px;
    }
    .info-card {
        padding: 20px;
    }
    .method-badge {
        padding: 20px 16px;
    }
    .note-box {
        padding: 16px 20px;
    }
    .cta-box {
        padding: 28px 16px;
    }
    .page-hero {
        padding: 32px 0 28px;
    }
}

/* ===== Accessibility: color contrast fixes ===== */
.group-category .news-item .new-text-group .news-info,
.group-category .news-item--dif .new-text-group .news-info {
    color: #767676;
}
.group-category .news-item .new-text-group .news-info span,
.group-category .news-item--dif .new-text-group .news-info span {
    color: #767676;
}
