@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Dual Theme Colors */
    --health-primary: #10b981;
    --health-secondary: #059669;
    --health-glow: rgba(16, 185, 129, 0.25);
    
    --tech-primary: #0ea5e9;
    --tech-secondary: #0284c7;
    --tech-glow: rgba(14, 165, 233, 0.25);
    
    --accent-purple: #8b5cf6;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --health-primary: #059669;
    --health-secondary: #047857;
    --health-glow: rgba(5, 150, 105, 0.15);
    
    --tech-primary: #0284c7;
    --tech-secondary: #0369a1;
    --tech-glow: rgba(2, 132, 199, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 1.25rem;
}

/* Navbar */
.navbar-sticky {
    position: sticky;
    top: 1rem;
    z-index: 50;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
}

/* Dual Badges */
.badge-health {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--health-primary);
}

.badge-tech {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(2, 132, 199, 0.05));
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--tech-primary);
}

.badge-synergy {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
}

/* Hero Split Cards */
.hero-card-health {
    border-top: 4px solid var(--health-primary);
    box-shadow: 0 10px 30px -10px var(--health-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-tech {
    border-top: 4px solid var(--tech-primary);
    box-shadow: 0 10px 30px -10px var(--tech-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-health:hover, .hero-card-tech:hover {
    transform: translateY(-4px);
}

/* Interactive Buttons */
.btn-health {
    background: linear-gradient(135deg, var(--health-primary), var(--health-secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px var(--health-glow);
    transition: all 0.2s ease;
}
.btn-health:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-tech {
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px var(--tech-glow);
    transition: all 0.2s ease;
}
.btn-tech:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Toast styling */
#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
