﻿/* ============================================
   متغیرهای رنگی - تم خاکی و گل
   ============================================ */

:root {
    /* رنگ‌های اصلی براساس لوگو */
    --primary-color: #8B4513; /* قهوه‌ای خاکی */
    --primary-dark: #6B3410; /* قهوه‌ای تیره */
    --secondary-color: #2F5233; /* سبز یشمی */
    --accent-color: #C19A6B; /* بژ طلایی */
    --success-color: #2F5233; /* سبز */
    --warning-color: #D2691E; /* نارنجی خاکی */
    --danger-color: #A0522D; /* قهوه‌ای سیِنا */

    --text-dark: #3E2723;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #FFF8DC; /* کرم روشن */
    --bg-gray: #F5DEB3; /* گندمی */
    --border-color: #DEB887; /* بژ کمرنگ */

    --shadow-sm: 0 1px 3px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 6px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 10px 25px rgba(139, 69, 19, 0.2);
    --shadow-xl: 0 20px 40px rgba(139, 69, 19, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.calendar-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 50%, #DEB887 100%);
    padding-bottom: 60px;
    direction: rtl;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* ============================================
   دکمه بازگشت
   ============================================ */
.back-nav {
    padding: 20px 40px;
    background: rgba(255, 248, 220, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

    .back-link:hover {
        background: var(--bg-light);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .back-link svg {
        transform: scaleX(-1);
    }

/* ============================================
   هدر صفحه - مرکز کامل
   ============================================ */
.page-hero {
    position: relative;
    padding: 60px 40px 80px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.logo-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
    border: 4px solid var(--accent-color);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-logo {
    width: 85%;
    height: auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-icon {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    text-align: center;
}

/* دکوراسیون پس‌زمینه - رنگ‌های خاکی */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -150px;
    left: -50px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 10%;
}

/* ============================================
   کانتینر اصلی
   ============================================ */
.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   نوار فیلتر - رنگ‌های خاکی
   ============================================ */
.filters-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border: 2px solid var(--border-color);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

    .filter-label svg {
        color: var(--primary-color);
    }

.filter-options {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.custom-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .custom-select:hover {
        border-color: var(--primary-color);
    }

    .custom-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
    }

.apply-filter-btn,
.reset-filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.apply-filter-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

    .apply-filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.reset-filter-btn {
    background: var(--bg-gray);
    color: var(--text-dark);
}

    .reset-filter-btn:hover {
        background: var(--border-color);
    }

/* ============================================
   Grid تقویم
   ============================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.day-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .day-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-color);
    }

    .day-card.weekend {
        background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
    }

/* بج روز */
.day-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-gray);
}

.day-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.day-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ============================================
   لیست کارگاه‌ها
   ============================================ */
.workshops-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workshop-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .workshop-card.morning {
        border-right-color: #D2691E;
    }

    .workshop-card.afternoon {
        border-right-color: #2F5233;
    }

    .workshop-card:hover {
        background: white;
        box-shadow: var(--shadow-md);
    }

.workshop-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.workshop-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.workshop-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-level {
    background: rgba(139, 69, 19, 0.15);
    color: var(--primary-color);
}

.badge-seats {
    background: rgba(47, 82, 51, 0.15);
    color: var(--secondary-color);
}

.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .book-btn:hover {
        transform: translateX(-4px);
        box-shadow: var(--shadow-md);
    }

    .book-btn svg {
        transform: scaleX(-1);
    }

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .back-nav,
    .calendar-container {
        padding: 0 20px;
    }

    .page-hero {
        padding: 40px 20px 60px;
        min-height: 350px;
    }

    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }

    .title-icon {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .logo-badge {
        width: 100px;
        height: 100px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-options {
        flex-direction: column;
        width: 100%;
    }

    .filter-item {
        width: 100%;
    }

    .apply-filter-btn,
    .reset-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .day-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .workshop-name {
        font-size: 1rem;
    }

    .logo-badge {
        width: 80px;
        height: 80px;
    }
}
