/* assets/css/index.css - استایل‌های صفحه اصلی سالن زیبایی (آفلاین) */

/* بارگذاری فونت محلی */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* پالت رنگی لوکس سالن زیبایی (هماهنگ با پنل مدیریت) */
    --color-primary: #ff69b4;      /* صورتی اصلی سیستم شما */
    --color-primary-dark: #e05c9e;
    --color-secondary: #8a2be2;    /* بنفش آبی */
    --color-accent: #ffd700;       /* طلایی برای تاکیدها */
    
    --color-bg-main: #0f0e17;      /* پس زمینه بسیار تیره و لوکس */
    --color-bg-secondary: #1a1a2e;
    --color-text-main: #fffffe;
    --color-text-muted: #a7a9be;
    
    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur-amount: 12px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Ambient Background (پس زمینه متحرک) --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--color-secondary);
    top: -100px;
    right: -100px;
    animation: moveOrb1 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--color-primary);
    bottom: 5%;
    left: -50px;
    animation: moveOrb2 25s infinite alternate ease-in-out;
}

@keyframes moveOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 200px) scale(1.2); }
}
@keyframes moveOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, -100px) scale(0.9); }
}

/* --- Typography & Utilities --- */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(255, 105, 180, 0.5);
}

.glow-effect {
    box-shadow: 0 0 20px -5px var(--color-primary);
}

.btn-text {
    color: var(--color-text-main);
    background: transparent;
}

.btn-text:hover {
    background: var(--glass-bg);
}

/* --- Floating Nav --- */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    background: rgba(15, 14, 23, 0.7);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.8rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
}

.logo-icon {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- Main Layout --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    background: rgba(138, 43, 226, 0.2);
    color: #e5b3ff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.avatars {
    display: flex;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-bg-main);
    margin-left: -12px;
    object-fit: cover;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Glass Mockup in Hero */
.glass-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.dots { display: flex; gap: 6px; }
.dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
}

.app-title { font-size: 0.9rem; color: var(--color-text-muted); font-weight: bold;}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-placeholder {
    height: 120px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    gap: 0.5rem;
}

.appointment-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    padding: 0.8rem;
    border-radius: 12px;
}
.avatar-sm { width: 35px; height: 35px; background: var(--gradient-main); border-radius: 50%; }

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-radius: 12px;
}
.status-badge.pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; }

/* --- Features Bento Grid --- */
.features-section {
    padding: 8rem 0;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Bento Variations */
.large-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, var(--color-bg-secondary), #2a163a);
}

.wide-card {
    grid-column: span 2;
}

.standard-card {
    grid-column: span 1;
}

.card-content {
    z-index: 2;
}

.bento-card h3 { font-size: 1.6rem; margin: 1rem 0; color: #fff;}
.bento-card h4 { font-size: 1.2rem; margin: 1rem 0; color: #fff;}
.bento-card p { color: var(--color-text-muted); font-size: 0.95rem; }

.feature-icon-lg {
    font-size: 3.5rem;
    color: var(--color-primary);
    background: rgba(255, 105, 180, 0.1);
    padding: 1rem;
    border-radius: 20px;
    display: inline-block;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.color-1 { color: #00f2fe; }
.color-2 { color: #ffd700; }
.color-3 { color: #ff69b4; }
.color-4 { color: #8a2be2; }

/* Visual Elements inside Bento Cards */
.booking-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 14, 23, 0) 0%, rgba(255, 105, 180, 0.05) 100%);
    opacity: 0.5;
}

.card-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}
.text-part { flex: 1; }
.visual-part { flex: 1; display: flex; justify-content: center; }

.notif-bubble {
    background: white;
    color: var(--color-bg-main);
    padding: 1rem;
    border-radius: 16px 16px 0 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: pulse 3s infinite ease-in-out;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- CTA Section --- */
.cta-section {
    padding: 3rem 0 6rem;
}

.cta-glass {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 105, 180, 0.15));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-glass h2 {
    font-size: 2.5rem;
}
.cta-glass p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .large-card, .wide-card, .standard-card {
        grid-column: span 1;
        grid-row: span 1;
    }
    .large-card { grid-column: span 2; } 
    .wide-card { grid-column: span 2; }
}

@media (max-width: 768px) {
    .floating-nav {
        top: auto; bottom: 20px; 
        padding: 1rem;
    }
    .logo-text { font-size: 1.2rem; }
    .nav-container { justify-content: space-between; }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        gap: 3rem;
    }
    .hero-content { align-items: center; }
    .hero-actions { align-items: center; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .large-card { grid-column: span 1; }
    .wide-card { grid-column: span 1; }
    
    .card-content-row { flex-direction: column; text-align: center; }
    
    .hero-title { font-size: 2.5rem; }
}