/* Jendela Library - Additional Frontend Styles */

/* ===== NAV BUTTONS ===== */
.nav-btn {
    padding: 7px 18px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.08);
}
.nav-btn:hover {
    background: var(--white);
    color: var(--heading);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
nav.nav-scrolled .nav-btn {
    border-color: rgba(61,51,38,0.2);
    color: var(--body);
    background: transparent;
}
nav.nav-scrolled .nav-btn:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(200,135,42,0.06);
}
.nav-btn.active {
    background: var(--white);
    color: var(--heading);
}
nav.nav-scrolled .nav-btn.active {
    background: linear-gradient(135deg, var(--amber), var(--amber-lt));
    color: var(--white);
    border-color: transparent;
}
.nav-btn-reg {
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--amber), #d4963a);
    color: var(--white);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    border: none;
}
.nav-btn-reg:hover {
    background: linear-gradient(135deg, var(--amber-lt), var(--amber));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,135,42,0.35);
}
.nav-btn-logout {
    padding: 7px 14px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
}
.nav-btn-logout:hover {
    background: rgba(239,68,68,0.2);
    color: #fff;
}
nav.nav-scrolled .nav-btn-logout {
    background: rgba(61,51,38,0.06);
    color: #999;
}
nav.nav-scrolled .nav-btn-logout:hover {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}

/* ===== INFO SLIDER ===== */
.info-slider-section {
    padding: 0 20px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}
.info-slider {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}
.info-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-slide {
    min-width: 100%;
    padding: 0 4px;
}
.info-card {
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    border: none;
}
.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.info-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

/* Card Colors */
.info-card-amber {
    background: linear-gradient(135deg, #C8872A 0%, #d4a04a 50%, #e8b86a 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(200,135,42,0.35);
}
.info-card-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(13,148,136,0.35);
}
.info-card-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}

.info-card-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}
.info-card-body {
    flex: 1;
    position: relative;
    z-index: 1;
}
.info-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}
.info-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.info-card-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    z-index: 1;
}
.info-card-btn:hover {
    background: var(--white);
    color: var(--heading);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Slider Dots */
.info-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(200,135,42,0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.info-dot.active {
    background: var(--amber);
    width: 24px;
    border-radius: 4px;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0eb 100%);
}
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}
.dashboard-header {
    margin-bottom: 40px;
}
.dashboard-title {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--heading), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-subtitle {
    color: #999;
    font-size: 16px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.06);
}
.dashboard-card.full-width {
    grid-column: 1 / -1;
}
.dashboard-card-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--heading);
}
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.profile-row:last-child {
    border-bottom: none;
}
.profile-label {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}
.profile-value {
    font-size: 14px;
    color: var(--heading);
    font-weight: 600;
}
.product-access-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(200,135,42,0.04), rgba(200,135,42,0.08));
    border-radius: 12px;
    border: 1px solid rgba(200,135,42,0.1);
}
.product-access-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-access-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}
.product-access-date {
    font-size: 12px;
    color: #aaa;
}
.product-access-badge {
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-access-badge.active {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
.dashboard-empty {
    color: #bbb;
    font-size: 14px;
    text-align: center;
    padding: 32px;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}
.order-table-wrap {
    overflow-x: auto;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.order-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.order-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}
.order-table code {
    background: rgba(200,135,42,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--amber);
    font-weight: 600;
}
.order-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.order-badge.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
.order-badge.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.order-badge.failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}
.order-badge.expired {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #4b5563;
}
.dashboard-actions {
    text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .info-card-btn {
        width: 100%;
        text-align: center;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .nav-btn, .nav-btn-reg, .nav-btn-logout {
        display: none;
    }
}

/* ===== BRAND REFINEMENT (Agustus 2026) ===== */
:root {
    --amber: #D99B26;
    --amber-lt: #E5AC45;
}

/* Sub-heading semua blok halaman -> hijau tua lembut */
.section-sub,
.hero-desc {
    color: #2E5A44;
}
.hero .hero-desc {
    color: rgba(255,255,255,0.82);
}

/* Overlay foto hero -> hijau gelap 55% agar teks putih menonjol
   (.cta-banner .hero-overlay tetap memakai gradien warnanya sendiri) */
.hero-overlay {
    background: linear-gradient(rgba(27,77,62,0.55), rgba(27,77,62,0.55));
}

/* Tombol CTA utama -> hijau tua, hover Warm Amber */
.btn-amber {
    background: #1B4D3E;
    color: var(--white);
}
.btn-amber:hover {
    background: #D99B26;
    color: var(--white);
}

/* Widget pengumuman -> Warm Amber seragam */
.info-card-amber {
    background: linear-gradient(135deg, #C88F1F 0%, #D99B26 50%, #E5AC45 100%);
    box-shadow: 0 8px 32px rgba(217,155,38,0.35);
}

/* ===== PALET 60-30-10 (Agustus 2026) ===== */

/* 60% Base: latar halaman off-white lembut */
body {
    background: #FAFAFA;
}

/* Body text: Slate Dark agar nyaman dibaca */
body,
.section-sub {
    color: #2D3748;
}
.hero .hero-desc {
    color: rgba(255,255,255,0.82);
}

/* 30% Primary: heading hijau Forest Green */
h1, h2, h3, h4, h5, h6,
.section-title {
    color: #1B4D3E;
}
nav.nav-scrolled .nav-logo-text {
    color: #1B4D3E;
}

/* Footer: Forest Green dengan teks terang */
footer {
    background: #1B4D3E;
    color: rgba(255,255,255,0.85);
    border-top-color: #163D31;
}
.footer-icons a {
    color: rgba(255,255,255,0.8);
}
.footer-icons a:hover {
    color: var(--amber);
}

/* 10% Highlight: badge PENGUMUMAN amber tegas */
.info-card-amber .info-card-tag {
    background: #D99B26;
    border: 1px solid rgba(255,255,255,0.5);
}

/* CTA sekunder (Baca) -> amber konsisten */
.btn-read {
    background: #D99B26;
}
.btn-read:hover {
    background: #C88F1F;
    opacity: 1;
}

/* ===== NAV ICON BUTTONS (login/search/IG) ===== */
.nav-icon-btn {
    color: rgba(255,255,255,0.92);
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.nav-icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.14);
}
nav.nav-scrolled .nav-icon-btn {
    color: var(--body);
}
nav.nav-scrolled .nav-icon-btn:hover {
    color: var(--amber);
    background: rgba(217,155,38,0.12);
}

/* ===== INFO CARDS (modern minimal) ===== */
.info-cards {
    max-width: 960px;
    margin: -34px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}
.info-cards__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(27,77,62,0.08);
    max-width: 760px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.info-cards__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.info-cards__icon--amber {
    background: linear-gradient(135deg, #F0B429, #D99B26);
    box-shadow: 0 6px 16px rgba(217,155,38,0.35);
}
.info-cards__icon--teal {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    box-shadow: 0 6px 16px rgba(20,184,166,0.35);
}
.info-cards__body {
    min-width: 0;
    flex: 1;
}
.info-cards__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.info-cards__item.info-cards__item--amber .info-cards__tag {
    color: #B45309;
    background: #FEF3C7;
}
.info-cards__item.info-cards__item--teal .info-cards__tag {
    color: #0F766E;
    background: #CCFBF1;
}
.info-cards__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #1B4D3E;
    margin: 0;
}
.info-cards__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    background: #1B4D3E;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(27,77,62,0.22);
    transition: all .25s;
}
.info-cards__cta:hover {
    background: #D99B26;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(217,155,38,0.3);
}
@media (max-width: 720px) {
    .info-cards {
        margin-top: -20px;
    }
    .info-cards__item {
        padding: 18px 20px;
        gap: 12px;
    }
    .info-cards__cta {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

/* ===== NEWS MORE CTA ===== */
.news-more {
    text-align: center;
    margin-top: 34px;
}
.news-more-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 14px;
    background: #1B4D3E;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(27,77,62,0.25);
    transition: all 0.3s;
}
.news-more-btn:hover {
    background: #D99B26;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217,155,38,0.35);
}
/* ===== NAV ACCOUNT DROPDOWN ===== */
.nav-account { position: relative; display: inline-flex; }
.nav-account-btn {
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    appearance: none;
    outline: none;
    line-height: 0;
}
.nav-account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 170px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(27,77,62,0.14);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
    z-index: 150;
}
.nav-account.open .nav-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-account-menu a,
.nav-account-menu form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2D3748;
    font-family: inherit;
    text-decoration: none;
}
.nav-account-menu a:hover,
.nav-account-menu form button:hover {
    background: rgba(27,77,62,0.08);
    color: #1B4D3E;
}
.nav-account-menu a.active { color: #1B4D3E; background: rgba(27,77,62,0.1); }
.nav-scrolled .nav-account-menu a,
.nav-scrolled .nav-account-menu form button { color: #2D3748; }
@media (max-width: 900px) {
    .nav-account-menu { right: -8px; top: calc(100% + 10px); }
}

/* ===== PROGRAMS PLAIN CARDS (no photo, giant number watermark) ===== */
.prog-card--plain {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(27,77,62,0.08);
    justify-content: flex-end;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 26px;
    transition: transform .3s, box-shadow .3s;
}
.prog-card--plain:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(27,77,62,0.16);
}
.prog-card--plain .prog-card-ghost {
    position: absolute;
    right: -6px;
    top: -34px;
    font-family: 'Playfair Display', serif;
    font-size: 210px;
    font-weight: 800;
    line-height: 1;
    color: rgba(27,77,62,0.07);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.prog-card--plain .prog-card-content {
    position: relative;
    z-index: 1;
}
.prog-card--plain .prog-num {
    color: #D99B26;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.prog-card--plain .prog-title {
    color: #1B4D3E;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.prog-card--plain .prog-desc {
    color: #2D3748;
    line-height: 1.6;
    font-size: 14px;
}
