/* FILE: tryout/assets/css/style.css */
/* =================================================================
   Main Stylesheet -lulusin
   ================================================================= */

/* 1. ROOT & GENERAL STYLES */
:root {
    --gold-primary: #D4AF37;
    --gold-dark: #B8941F;
    --cream-light: #FFFEF7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --success: #27ae60;
    --danger: #e74c3c;
    --info: #3498db;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-color: #ecf0f1;
    --shadow-color: rgba(44, 62, 80, 0.1);
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    line-height: 1.7;
    background: var(--cream-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 2. NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 1rem;
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-color);
    display: flex;
    align-items: center;
}

.options-container {
    margin-top: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo img {
    height: 45px;
    width: auto;
}

.navbar .logo span {
    font-size: 1.7rem;
    font-weight: 700;
    color: #b8863b;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:not(.btn):hover {
    color: var(--gold-primary);
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* 3. BUTTONS */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}
.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--white);
}
.btn-success {
    background-color: var(--success);
    color: var(--white);
}
.btn-success:hover { background-color: #229954; }
.btn-disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-buy {
    background: var(--success);
    color: white;
}
.btn-buy:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

/* 4. MAIN CONTENT & PAGE STYLES */
main, .page-container {
    padding-top: var(--header-height);
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--white) 100%);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.page-header {
    padding: 4rem 0;
    text-align: center;
    background: var(--cream-light);
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: 2.8rem;
    color: var(--gold-dark);
}

.page-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}
.page-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 0.8rem;
    margin: 2rem 0 1.5rem;
}
.page-content p, .page-content li {
    font-size: 1rem;
    color: var(--text-light);
}
.page-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.page-content h2:first-of-type {
    margin-top: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* 5. CARDS */
.test-grid {
    display: flex;           /* Mengaktifkan layout flexbox */
    flex-wrap: wrap;         /* Memastikan item bisa turun ke baris baru jika tidak muat */
    justify-content: center; /* KUNCI UTAMA: Menyusun semua item ke tengah secara horizontal */
    gap: 1.5rem;             /* Memberi jarak antar kartu (sesuaikan jika perlu) */
}

.test-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.15);
}
.test-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.test-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.test-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.test-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.test-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}
.test-price.paid {
    color: var(--gold-dark);
}

/* 6. FOOTER */
.footer {
    background: var(--text-dark);
    color: #bdc3c7;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-section h3 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-section p, .footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}
.footer-section ul { list-style-type: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 7. AUTH & FORMS */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--cream-light), var(--cream));
}
.auth-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    width: 100%;
    max-width: 450px;
    text-align: center;
}
.auth-container h1 {
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}
.auth-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
}
.auth-container .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 1rem;
}
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    text-align: center;
    font-size: 0.9rem;
}
.message.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border-color: rgba(231, 76, 60, 0.3);
}
.message.success-message {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border-color: rgba(39, 174, 96, 0.3);
}
.success-message a {
    color: var(--success);
    font-weight: bold;
}
.auth-link {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}
.auth-link a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
}
.auth-link a:hover { text-decoration: underline; }
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.form-group-agree {
    font-size: 0.85rem;
    text-align: left;
    color: var(--text-light);
}
.form-group-agree input {
    margin-right: 8px;
    vertical-align: middle;
}
.form-group-agree a {
    color: var(--gold-dark);
    text-decoration: none;
}
.form-group-agree a:hover { text-decoration: underline; }

/* 8. DASHBOARD */
.dashboard-header {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    margin-bottom: 2.5rem;
}
.dashboard-header h2 {
    margin-top: 0;
    font-size: 1.8rem;
}
.dashboard-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* 9. RESULT & DISCUSSION PAGES */
.result-header, .discussion-header-main {
    text-align: center;
    margin-bottom: 2rem;
}
.result-header h2, .discussion-header-main h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
}
.result-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}
.main-result-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.main-result-card .status {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.status.lulus {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
}
.status.gagal {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}
.main-result-card .score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.score-label {
    font-weight: 500;
    color: var(--text-light);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.detail-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    padding: 2rem;
    text-align: center;
    border-top: 5px solid;
    transition: all 0.3s ease;
}
.detail-card:hover {
    transform: translateY(-5px);
}
.detail-card.lulus { border-color: var(--success); }
.detail-card.gagal { border-color: var(--danger); }
.detail-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.detail-card .user-score { font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.detail-card .passing-grade { color: var(--text-light); font-size: 0.9rem; }

.ranking-card {
    background: linear-gradient(135deg, var(--text-dark), #34495e);
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.ranking-card h3 { color: var(--gold-primary); font-size: 1.2rem; }
.ranking-card .rank-value { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.ranking-card .rank-label { color: #bdc3c7; }

.action-buttons {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.discussion-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    padding: 2rem;
}
.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.discussion-q-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}
.discussion-q-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.discussion-q-img, .explanation-image-container, .option-image {
    margin: 1rem 0; text-align: center;
}
.discussion-q-img img, .explanation-image-container img, .option-image img {
    max-width: 100%; max-height: 400px; border-radius: 8px;
}
.discussion-options {
    display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem;
}
.discussion-option {
    display: flex; align-items: flex-start; padding: 1rem; border: 2px solid var(--border-color); border-radius: 8px; position: relative;
}
.discussion-option-indicator {
    margin-right: 1rem; font-weight: bold; font-size: 1.1rem;
}
.discussion-option.correct {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: var(--success);
}
.discussion-option.incorrect {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--danger);
}
.user-choice-badge {
    font-size: 0.75rem; font-weight: bold; color: var(--white); background-color: var(--info); padding: 3px 10px; border-radius: 10px; position: absolute; right: 1rem; top: 1rem;
}
.explanation-box {
    background-color: var(--light-gray); border-left: 5px solid var(--gold-primary); border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem;
}
.explanation-box h3 {
    margin-top: 0; color: var(--gold-dark);
}
.discussion-controls {
    display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border-color); margin-top: 2rem;
}
.discussion-controls .btn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    color: var(--text-light);
}


/* 10. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px var(--shadow-color);
        transition: right 0.4s ease-in-out;
        gap: 1rem;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .detail-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .page-content {
        padding: 1.5rem;
    }
}

/* Styles for Test/Discussion Navigation Toggle Button */
.nav-toggle-panel {
    display: none; /* Hidden by default on desktop */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .nav-toggle-panel {
        display: block; /* Visible on smaller screens */
    }
}