﻿/* تعریف فونت‌ها */
@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل سایت */
body {
    font-family: "Vazirmatn", sans-serif;
    -webkit-font-smoothing: antialiased; /* برای نرم‌تر شدن لبه فونت‌ها */
    -moz-osx-font-smoothing: grayscale;
}

/* برای اینکه عناوین هم از همین فونت و وزن درست استفاده کنند */
h1, h2, h3, h4, h5, h6 {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 700; /* وزن بولد برای عناوین */
}



/* Variables */
:root {
    --primary: #6c5ce7;
    --bg: #ffffff;
    --text: #2d3436;
    --glass: rgba(255, 255, 255, 0.8);
    --footer-bg: #f1f2f6;
}

body.dark-mode {
    --bg: #1e1e2f;
    --text: #dfe6e9;
    --glass: rgba(45, 52, 54, 0.8);
    --footer-bg: #121212;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
}

/* Navbar */
.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    width: 100%;
    background: url('https://images.unsplash.com/photo-1457369804613-52c61a468e7d?q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-top: 70px;*/ /* برای اینکه زیر منو نرود */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Footer */
.footer-professional {
    background: var(--footer-bg);
    padding-top: 60px;
    color: var(--text);
}

.footer-logo {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        text-decoration: none;
        color: var(--text);
        opacity: 0.7;
        transition: 0.3s;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--primary);
        }

.social-links a {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--text);
    transition: 0.3s;
}

    .social-links a:hover {
        color: var(--primary);
    }


/* Card Styles for Event List */
.event-card {
    background: #fff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .event-card:hover {
        transform: translateY(-5px);
    }

    .event-card img {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        object-fit: cover;
        height: 200px;
    }

.event-card-body {
    padding: 20px;
    flex-grow: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.event-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-details {
    background-color: #f4f4f4;
    color: #333;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

    .btn-details:hover {
        background-color: #e0e0e0;
    }

.event-price {
    font-weight: bold;
    color: #314032;
    font-size: 0.9rem;
}


/* Event Description Rich Text Styling */
.event-description p {
    margin-bottom: 1.2rem;
    line-height: 2;
}

.event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
}

.event-description ul, .event-description ol {
    padding-right: 1.5rem;
    margin-bottom: 1.2rem;
}

/********/
/* استایل اصلی تصویر برای جلوگیری از کشیدگی */
.event-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* این خط باعث می‌شود تصویر بدون تغییر نسبت، فضای کانتینر را پر کند */
    object-position: center; /* تمرکز روی مرکز تصویر */
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1); /* افکت زوم ملایم هنگام هاور */
}


/****/
/* برای اینکه ویدیوها داخل کارت‌ها تمیز و گرد باشند */
.ratio {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

/* کارت‌ها هم اندازه باشند */
/*.event-card {
    border: none;
    border-radius: 15px;
    background-color: #fff;
    transition: transform 0.3s ease;
}
*/
.event-card:hover {
    transform: translateY(-5px);
}
