/* ==========================================================================
   FJS PSU Paper Selector Suite Styles
   ========================================================================== */

/* --- 1. Single Product Bonus Card --- */
.fjs-10-papers-bonus-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #eff6ff 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0 20px 0;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.fjs-10-papers-bonus-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #10b981;
}
.fjs-bonus-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.fjs-bonus-badge {
    background: #059669;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fjs-bonus-headline {
    font-size: 17px;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.35;
    margin-bottom: 6px;
}
.fjs-bonus-headline span {
    color: #059669;
}
.fjs-bonus-subtext {
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 12px 0;
}
.fjs-bonus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fjs-bonus-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* --- 2. Thank You Page Selection Module --- */
.fjs-selector-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0 32px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    position: relative;
}
.fjs-selector-header {
    margin-bottom: 20px;
}
.fjs-selector-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fjs-selector-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Sticky Progress Bar */
.fjs-sticky-bar {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    border: 1px solid #334155;
}
.fjs-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fjs-counter-badge {
    background: #2563eb;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.fjs-counter-badge.ready {
    background: #10b981;
}
.fjs-sticky-text {
    font-size: 13px;
    color: #cbd5e1;
}
.fjs-confirm-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fjs-confirm-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}
.fjs-confirm-btn:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Filters & Search */
.fjs-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.fjs-search-input {
    flex: 1 1 280px;
    padding: 10px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.fjs-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.fjs-cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
}
.fjs-cat-tab {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.fjs-cat-tab:hover, .fjs-cat-tab.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Papers Grid */
.fjs-papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    max-height: 580px;
    overflow-y: auto;
    padding-right: 6px;
}
.fjs-paper-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.fjs-paper-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.fjs-paper-card.selected {
    background: #f0fdf4;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
.fjs-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.fjs-card-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: #10b981;
    cursor: pointer;
    margin-top: 2px;
}
.fjs-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    flex: 1;
}
.fjs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.fjs-card-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.fjs-badge-psu {
    background: #e0f2fe;
    color: #0369a1;
}
.fjs-badge-qs {
    background: #fef3c7;
    color: #92400e;
}
.fjs-badge-cbt {
    background: #dcfce7;
    color: #15803d;
}

/* --- 3. Unlocked Papers List (Dashboard & Thank You) --- */
.fjs-unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.fjs-unlocked-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-top: 4px solid #2563eb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fjs-unlocked-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.35;
}
.fjs-unlocked-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.fjs-action-cbt {
    flex: 1;
    background: #2563eb;
    color: #ffffff;
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.fjs-action-cbt:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .fjs-selector-container {
        padding: 16px;
    }
    .fjs-sticky-bar {
        top: auto;
        bottom: 12px;
        position: fixed;
        left: 12px;
        right: 12px;
        z-index: 999;
        margin-bottom: 0;
        border-radius: 12px;
        padding: 12px 14px;
    }
    .fjs-papers-grid {
        grid-template-columns: 1fr;
        max-height: 480px;
        padding-bottom: 70px;
    }
}
