/* ScholarUnlock Main Stylesheet */

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

:root {
    /* Sunset Educational Color Palette */
    --primary-sunset: #ff6b6b;
    --secondary-sunset: #ffd93d;
    --tertiary-sunset: #74b9ff;
    --quaternary-sunset: #a29bfe;
    --discord-primary: #5865F2;
    --discord-hover: #4752C4;
    --success-green: #00b894;
    --text-primary: #ffffff;
    --text-secondary: #e0e6ed;
    --text-muted: #b8c5d1;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-middle: #16213e;
    --bg-gradient-end: #0f3460;
    --bg-card: rgba(26, 26, 46, 0.85);
    --border-primary: rgba(255, 107, 107, 0.3);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 107, 107, 0.3);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --animation-duration: 0.3s;
    --animation-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(
        45deg,
        var(--bg-gradient-start) 0%,
        var(--bg-gradient-middle) 35%,
        var(--bg-gradient-end) 70%,
        var(--bg-gradient-start) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--primary-sunset) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-sunset) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--tertiary-sunset) 0%, transparent 50%);
    opacity: 0.08;
    animation: floatingGradients 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingGradients {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    33% { 
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% { 
        transform: translate(20px, -10px) scale(0.9);
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Frame Styles */
#scholar-header-frame {
    width: 100%;
    height: 80px;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
}

body {
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    #scholar-header-frame {
        height: 60px;
    }
    body {
        padding-top: 60px !important;
    }
}

#scholar-header-frame.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#scholar-header-frame.loaded {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-sunset), var(--secondary-sunset), var(--tertiary-sunset));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s;
    z-index: 1;
}

.cta-button:hover .button-shine {
    left: 100%;
}

.button-text {
    position: relative;
    z-index: 2;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-sunset), var(--secondary-sunset));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(255, 107, 107, 0.3),
        0 6px 12px rgba(255, 107, 107, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--border-primary);
    color: var(--text-secondary);
}

.cta-button.secondary:hover {
    border-color: var(--primary-sunset);
    color: var(--text-primary);
    background: rgba(255, 107, 107, 0.1);
}

/* Focus states for accessibility */
.cta-button:focus,
.cta-button:focus-visible {
    outline: 2px solid var(--primary-sunset);
    outline-offset: 2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.875rem;
        --font-size-5xl: 2.25rem;
        --font-size-6xl: 2.75rem;
        --space-16: 2rem;
    }
}