/* HAM Radio Beginner's Guide - Styles */

/* ========================================
   CSS VARIABLES & THEMES
   ======================================== */
:root {
    /* Base Colors */
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    
    /* Primary Gradient Colors */
    --primary-500: #0ea5e9;
    --primary-400: #38bdf8;
    --primary-300: #7dd3fc;
    --primary-600: #0284c7;
    
    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-sky: #0ea5e9;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Light Theme */
.light-theme {
    --color-bg: #f8fafc;
    --color-bg-elevated: #ffffff;
    --color-bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   AMBIENT BACKGROUND
   ======================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-500), transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ========================================
   HEADER
   ======================================== */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .glass-header {
    background: rgba(248, 250, 252, 0.8);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    gap: 2px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}

.pulse-dash {
    display: inline-block;
    width: 16px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 4px;
    animation: pulse-dash 1s infinite;
    animation-delay: 0.5s;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-dash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 1px;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--color-bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--color-bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

.light-theme .sun-icon {
    display: block;
}

.light-theme .moon-icon {
    display: none;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* ========================================
   GUIDE SECTIONS
   ======================================== */
.guide-section {
    margin-bottom: 2rem;
}

.guide-section h2 {
    color: var(--primary-400);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.guide-section h3 {
    color: var(--primary-400);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.guide-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.guide-section ol,
.guide-section ul {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

.guide-section strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.glass-footer {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
}

.light-theme .glass-footer {
    background: rgba(248, 250, 252, 0.8);
}

.glass-footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .home-btn span {
        display: none;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .guide-section {
        padding: 1.5rem;
    }
    
    .guide-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }
    
    .guide-section {
        padding: 1rem;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
}

/* ========================================
   FOCUS STYLES
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}