/* ============================================
   COMPONENTS - Reusable UI Elements
   ============================================ */

/* === Navigation Bar (Glassmorphism) === */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.navbar-logo {
    width: 35px;
    height: 35px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: white;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    line-height: normal;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: white;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* === Cards (Glass) === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -20px black;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* === Hero Section === */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    /* Reset background to avoid conflicting with main.css base styles or index.html overrides */
    background: transparent; 
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.2;
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem; /* Match main site roughly, or adjust */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* === App CTA === */
.app-cta {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: white;
    padding: 60px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.app-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.app-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    margin: 0 5px;
}

.app-store-badge:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: white;
}

/* === MCQ Preview Component === */
.mcq-preview {
    background-color: var(--bg-card); /* Dark glass */
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
}

.mcq-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mcq-preview-title {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.mcq-preview-badge {
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mcq-question {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.mcq-question-number {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 10px;
}

.mcq-question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    display: inline;
}

.mcq-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcq-option {
    background-color: rgba(255, 255, 255, 0.05); /* Slight white tint for options */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.mcq-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mcq-option-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mcq-option.correct {
    background-color: rgba(34, 197, 94, 0.1); /* Green tint */
    border-color: #22c55e;
}

.mcq-option.correct .mcq-option-letter {
    background-color: #22c55e;
    color: white;
}

.mcq-option.correct::after {
    content: '✓ Correct';
    margin-left: auto;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}

.mcq-explanation {
    background-color: rgba(99, 102, 241, 0.1); /* Indigo tint */
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.mcq-explanation-title {
    font-weight: 600;
    color: var(--primary); /* Use primary color instead of info */
    margin-bottom: 5px;
    font-size: 0.95rem;
    display: block;
}

.mcq-explanation-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Breadcrumb Navigation === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-main); /* White for links */
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* === Feature Highlight === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: left; /* Changed to left align like main site? Or keep center? Main site has mixed. Keeping left for features */
    padding: 25px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* === AdSense Ad Zone === */
.ad-zone {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-zone-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}