/* ========================= */
/* BASE STYLES */
/* ========================= */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #4c1d95;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ========================= */
/* NAVIGATION BAR */
/* ========================= */

.navbar {
    background-color: #310c6b;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #e9d5ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.2s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.highlight-link {
    color: #f59e0b !important;
    border: 1px solid #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.gold-link {
    color: #ffd700 !important;
    font-weight: 800 !important;
}

/* ========================= */
/* DROPDOWNS */
/* ========================= */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: #e9d5ff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    padding: 10px 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 40px;
}

.dropdown-content a {
    color: #4c1d95;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ========================= */
/* MOBILE NAVIGATION */
/* ========================= */

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #310c6b;
        padding: 20px 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .dropbtn {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        display: block;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        background-color: #27065a;
    }

    .dropdown-content a {
        color: #e9d5ff;
        padding-left: 0;
    }

    .hamburger {
        display: block;
    }
}

/* ========================= */
/* PAGE CONTENT */
/* ========================= */

.container {
    max-width: 800px;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    margin: 20px 0 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #e9d5ff;
}

h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #a78bfa;
    margin-top: 40px;
    border-bottom: 1px solid #a78bfa;
    display: inline-block;
    padding-bottom: 5px;
}

.trust-badge {
    background-color: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #ddd6fe;
    display: inline-block;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
}

/* GCSE Buttons */

.btn-number { background-color: #00e30b; color: white; border: 2px solid #00e30b; }
.btn-algebra { background-color: #0404e0; color: white; border: 2px solid #0404e0; }
.btn-geometry { background-color: #dee019; color: #575739; border: 2px solid #dee019; }
.btn-prob-and-stats { background-color: #00FFFF; color: #575739; border: 2px solid #00FFFF; }
.btn-complete { background-color: #000000; color: #ffd700; border: 2px solid #ffd700; }

.btn-exam-a { background-color: #ffffff; color: #4c1d95; border: 2px solid #4c1d95; }
.btn-exam-b { background-color: #e9d5ff; color: #4c1d95; border: 2px solid #4c1d95; }
.btn-exam-c { background-color: #4c1d95; color: #ffffff; border: 2px solid #ffffff; }
.btn-exam-bundle { background-color: #ffd700; color: #000000; border: 2px solid #000000; font-size: 1.1rem; }

/* IGCSE Buttons */

.btn-primary { background-color: #f59e0b; color: white; border: 2px solid #f59e0b; }
.btn-free { background-color: transparent; color: white; border: 2px solid #ffffff; width: 280px; font-size: 0.9rem; }
.btn-shop { background-color: #ffffff; color: #4c1d95; }
.btn-youtube { background-color: #cc0000; color: white; }

/* ========================= */
/* WIDGET */
/* ========================= */

.daily-widget {
    background-color: white;
    color: #1e1e1e;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: left;
    min-height: 200px;
}

.widget-header {
    color: #4c1d95;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.question-box {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.question-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.step-container {
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

.step {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: none;
}

.step-text {
    font-weight: bold;
    color: #4c1d95;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.reveal-btn {
    background: #4c1d95;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.reveal-btn:hover {
    background: #3b82f6;
}
