/* style.css - Custom stylesheet for PhyMarks landing page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #00236f;
    --primary-container: #1e3a8a;
    --secondary: #6b38d4;
    --secondary-container: #8455ef;
    --background: #faf8ff;
    --on-surface: #1a1b21;
    --on-surface-variant: #444651;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 35, 111, 0.08);
    box-shadow: 0 12px 30px -10px rgba(0, 35, 111, 0.04),
                0 4px 12px -5px rgba(0, 35, 111, 0.02);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 35, 111, 0.1),
                0 8px 20px -6px rgba(0, 35, 111, 0.05);
    border-color: rgba(0, 35, 111, 0.2);
}

/* Dark Mode Overrides */
html.dark {
    --background: #0f1015;
    --on-surface: #f1f0f7;
    --on-surface-variant: #c5c5d3;
}

html.dark body {
    background-color: #0f1015;
    color: #f1f0f7;
}

html.dark .glass-card {
    background: rgba(26, 27, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.3);
}

html.dark .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    background: rgba(32, 33, 40, 0.7);
}

/* Background blob animations for that rich premium feel */
.radial-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

html.dark .radial-blob {
    opacity: 0.08;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 35, 111, 0.1);
    border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 35, 111, 0.25);
}

/* Accuracy progress bar glow */
.progress-glow {
    box-shadow: 0 0 12px rgba(107, 56, 212, 0.4);
}

html.dark .progress-glow {
    box-shadow: 0 0 12px rgba(107, 56, 212, 0.6);
}

/* Hero gradient text */
.gradient-text {
    background: linear-gradient(135deg, #00236f 0%, #6b38d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark .gradient-text {
    background: linear-gradient(135deg, #b6c4ff 0%, #d0bcff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Wizard Custom Styles */
.pref-difficulty-card.active-card {
    border-color: var(--primary) !important;
    background-color: rgba(0, 35, 111, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 35, 111, 0.08);
    border-width: 2px !important;
}

html.dark .pref-difficulty-card.active-card {
    border-color: #b6c4ff !important;
    background-color: rgba(182, 196, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-width: 2px !important;
}

.pref-mode-card.active-card {
    border-color: var(--primary) !important;
    background-color: rgba(0, 35, 111, 0.05) !important;
    border-width: 2px !important;
}

html.dark .pref-mode-card.active-card {
    border-color: #b6c4ff !important;
    background-color: rgba(182, 196, 255, 0.1) !important;
    border-width: 2px !important;
}

.exam-card-active {
    border-color: var(--primary) !important;
    background-color: rgba(0, 35, 111, 0.05) !important;
    box-shadow: 0 8px 24px rgba(0, 35, 111, 0.1);
    border-width: 2px !important;
}

html.dark .exam-card-active {
    border-color: #b6c4ff !important;
    background-color: rgba(182, 196, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-width: 2px !important;
}

.step-panel-view {
    animation: slide-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slide-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Active Nav State Overrides */
.active-nav {
    background-color: rgba(0, 35, 111, 0.08) !important;
    color: #00236f !important;
    border-left-width: 4px !important;
    border-color: #00236f !important;
    font-weight: 700 !important;
}

html.dark .active-nav {
    background-color: rgba(182, 196, 255, 0.12) !important;
    color: #b6c4ff !important;
    border-color: #b6c4ff !important;
}

.panel-view-item {
    animation: slide-fade-in 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Thin custom scrollbars */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.3);
    border-radius: 20px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.5);
}
#detail-questions-scroll-list {
    transition: opacity 0.2s ease-in-out;
}

/* Global Font Size Enhancements - Medium text size scaling */
body, button, input, select, textarea {
    font-size: 15px;
}

.text-\[9px\] { font-size: 13px !important; }
.text-\[10px\] { font-size: 14px !important; }
.text-\[11px\] { font-size: 14.5px !important; }
.text-xs { font-size: 15px !important; }
.text-sm { font-size: 16px !important; }
.text-base { font-size: 18px !important; }
.text-lg { font-size: 20px !important; }
.text-xl { font-size: 22px !important; }
.text-2xl { font-size: 26px !important; }
.text-3xl { font-size: 32px !important; }
.text-4xl { font-size: 40px !important; }

/* Custom theme font tokens overrides */
.text-body-sm { font-size: 14.5px !important; }
.text-body-md { font-size: 16px !important; }
.text-body-lg { font-size: 18px !important; }
.text-label-sm { font-size: 13px !important; }
.text-label-md { font-size: 14.5px !important; }
.text-label-lg { font-size: 16px !important; }
.text-title-sm { font-size: 18px !important; }
.text-title-md { font-size: 20px !important; }
.text-title-lg { font-size: 24px !important; }

/* Question & Option Specific Font Scale Enhancements */
#practice-q-statement {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
}

.practice-opt-btn span {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

#detail-questions-scroll-list p {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

#practice-hint-text {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
}

/* Math symbols styling rules */
.math-frac {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    text-align: center;
    padding: 0 4px;
    line-height: 1.1;
}
.math-frac-num {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    font-size: 0.9em;
}
.math-frac-den {
    padding-top: 2px;
    font-size: 0.9em;
}
.math-sqrt {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.math-sqrt-symbol {
    font-size: 1.3em;
    margin-right: -1px;
    transform: translateY(1px);
}
.math-sqrt-content {
    border-top: 1.5px solid currentColor;
    padding: 2px 3px 0 3px;
    transform: translateY(-0.5px);
}

#practice-solution-text {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif !important;
    font-size: 1.15rem !important;
    line-height: 2.2 !important;
    color: #f1f5f9 !important;
    letter-spacing: 0.02em !important;
}
