/* ════════════════════════════════════════════════════════════════
   PARIMONI BET — MY PROMOTIONS SECTION & DETAIL POP-UP MODAL STYLES
   File: promotions.css
   ════════════════════════════════════════════════════════════════ */

/* ── Section Container ── */
.my-promotions-section {
    margin-top: 24px;
    margin-bottom: 28px;
    position: relative;
}

/* ── Header with Orange Bar & Arrows ── */
.my-promotions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.my-promotions-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-promotions-bar {
    width: 4px;
    height: 22px;
    background: #ff7a00;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.6);
}

.my-promotions-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
    text-transform: capitalize;
}

.my-promotions-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-promo-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #1e2329;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9aa4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.my-promo-nav-btn:hover {
    background: #2b313a;
    color: #ffffff;
    border-color: rgba(255, 122, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.2);
}

.my-promo-nav-btn:active {
    transform: scale(0.94);
}

/* ── Card Track / Scroll Container ── */
.my-promotions-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.my-promotions-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ── Promotion Card ── */
.my-promo-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 320px;
    max-width: 440px;
    scroll-snap-align: start;
    background: #181c23;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
}

.my-promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 0, 0.4);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 122, 0, 0.15);
}

/* ── Card Banner Image ── */
.my-promo-card-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #0d1015;
}

.my-promo-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.my-promo-card:hover .my-promo-card-banner img {
    transform: scale(1.03);
}

.my-promo-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* ── Card Footer with Title & CTA ── */
.my-promo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #14171d;
    gap: 12px;
}

.my-promo-card-link {
    font-size: 14px;
    font-weight: 700;
    color: #e1e7f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-promo-card-link .chevron {
    color: #ff7a00;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.my-promo-card:hover .my-promo-card-link {
    color: #ffffff;
}

.my-promo-card:hover .my-promo-card-link .chevron {
    transform: translateX(3px);
}

.my-promo-deposit-btn {
    background: linear-gradient(135deg, #ff8c00, #ff6200);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 122, 0, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.my-promo-deposit-btn:hover {
    background: linear-gradient(135deg, #ffa022, #ff7300);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.5);
    transform: translateY(-1px);
}

.my-promo-deposit-btn:active {
    transform: scale(0.96);
}

/* ── View All Center Button ── */
.my-promotions-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.my-promotions-view-all-btn {
    background: #1e2329;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bac9;
    padding: 7px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-promotions-view-all-btn:hover {
    background: #282f38;
    color: #ffffff;
    border-color: rgba(255, 122, 0, 0.4);
}


/* ════════════════════════════════════════════════════════════════
   PROMOTION DETAIL POP-UP MODAL (Matching Reference Image 2)
   ════════════════════════════════════════════════════════════════ */

.promo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.promo-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.promo-modal-dialog {
    background: #13171d;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 122, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-modal-backdrop.is-active .promo-modal-dialog {
    transform: scale(1) translateY(0);
}

/* ── Modal Header Bar (Clean, details only) ── */
.promo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #181d25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}

.promo-modal-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-modal-bar {
    width: 4px;
    height: 20px;
    background: #ff7a00;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

.promo-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

/* ── Close Button ── */
.promo-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9aa4bf;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.promo-modal-close-btn:hover {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
    transform: rotate(90deg);
}

/* ── Modal Scrollable Body ── */
.promo-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.65;
    flex: 1 1 auto;
}

.promo-modal-body::-webkit-scrollbar {
    width: 6px;
}

.promo-modal-body::-webkit-scrollbar-thumb {
    background: #2b313a;
    border-radius: 3px;
}

/* ── Category Tag & Timestamp ── */
.promo-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.promo-modal-category-pill {
    background: #222730;
    color: #ffaa33;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 170, 51, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.promo-modal-time {
    color: #8b949e;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Ambassador Trust Badge ── */
.promo-modal-ambassador-badge {
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.12), transparent);
    border-left: 3px solid #ff7a00;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #f0f6fc;
}

.promo-modal-ambassador-badge strong {
    color: #ffaa33;
}

/* ── Main Description ── */
.promo-modal-desc {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.7;
}

/* ── Section Subheadings ── */
.promo-modal-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── How to Participate Box ── */
.promo-participate-box {
    background: #171b22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.promo-auto-credit-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(0, 230, 118, 0.09));
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.promo-auto-credit-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 122, 0, 0.2);
    border: 1px solid rgba(255, 122, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(255, 122, 0, 0.3);
}

.promo-auto-credit-title {
    color: #ffd700;
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-auto-credit-sub {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.55;
}

.promo-steps-list {
    margin: 0;
    padding-left: 20px;
    color: #abb5c2;
    font-size: 13.5px;
    line-height: 1.7;
}

.promo-steps-list li {
    margin-bottom: 6px;
}

/* ── Promotion Details Table (Reference 2 Match) ── */
.promo-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.promo-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: center;
}

.promo-details-table th {
    background: #191d24;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-details-table td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    background: #111419;
}

.promo-details-table tr:nth-child(even) td {
    background: #14181f;
}

.promo-highlight-val {
    color: #ffd700;
    font-weight: 700;
}

/* ── Terms and Conditions ── */
.promo-terms-list {
    margin: 0;
    padding-left: 20px;
    color: #9aa4bf;
    font-size: 13px;
    line-height: 1.7;
}

.promo-terms-list li {
    margin-bottom: 8px;
}

/* ── Modal Bottom Action Bar ── */
.promo-modal-footer {
    padding: 16px 28px;
    background: #0f1217;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.promo-modal-footer-info {
    font-size: 12.5px;
    color: #8b949e;
}

.promo-modal-deposit-btn {
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.promo-modal-deposit-btn:hover {
    background: linear-gradient(135deg, #ffa022, #ff7300);
    box-shadow: 0 6px 22px rgba(255, 122, 0, 0.6);
    transform: translateY(-2px);
}

.promo-modal-deposit-btn:active {
    transform: scale(0.97);
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1024px) {
    .my-promo-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .my-promo-card {
        flex: 0 0 85%;
        min-width: 260px;
    }
    .my-promotions-title {
        font-size: 18px;
    }
    .promo-modal-dialog {
        max-height: 94vh;
        border-radius: 12px;
    }
    .promo-modal-body {
        padding: 16px 18px;
    }
    .promo-modal-footer {
        padding: 12px 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .promo-modal-deposit-btn {
        width: 100%;
        justify-content: center;
    }
}
