/* static/css/base.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #4F2BA8;
    --secondary: #EC4899;
    --accent: #06B6D4;
    --gold: #F59E0B;
    --success: #10B981;
    --bg-main: #050510;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-main: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: rgba(108, 60, 225, 0.15);
}

[data-theme="light"] {
    --bg-main: #F0F0F5;
    --text-main: #1A1A2E;
    --text-secondary: #4A4A6A;
    --bg-card: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: rgba(108, 60, 225, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title .label {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(108, 60, 225, 0.04);
    padding: 0.15rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(108, 60, 225, 0.03);
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-title p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.section-title .line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    margin: 1rem auto 0;
    animation: lineGrow 2s ease-in-out infinite alternate;
}

@keyframes lineGrow {
    0% { width: 50px; }
    100% { width: 80px; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:not(.visible) {
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 30px var(--shadow);
    animation: btnGlow 3s infinite alternate;
}

@keyframes btnGlow {
    0% { box-shadow: 0 4px 20px var(--shadow); }
    100% { box-shadow: 0 4px 40px rgba(108, 60, 225, 0.2); }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 50px rgba(108, 60, 225, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.08);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

@keyframes rippleAnim {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(6, 6, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 1.8rem;
    border-radius: 60px;
    border: 1px solid rgba(139, 92, 246, 0.06);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.06);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--success);
}

/* ===== اسکرول بار ===== */
::-webkit-scrollbar {
    width: 3px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}