/*
Theme Name: بهار (Bahar)
Author: توسعه‌دهنده
Version: 1.0
Description: قالبی زیبا با رنگ‌بندی فیروزه‌ای و طلایی.
*/

@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary-color: #0e6e78; /* فیروزه‌ای تیره */
    --secondary-color: #c5a059; /* طلایی */
    --dark-gold: #b08d4b;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-gray: #555;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 13px;
    direction: rtl;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 15px;
}

/* --- دکمه‌ها --- */
.btn {
    background: var(--primary-color); color: var(--white);
    padding: 9px 22px; border-radius: var(--border-radius);
    font-size: 12px; font-weight: 500; border: none; cursor: pointer;
    display: inline-block; box-shadow: 0 2px 5px rgba(14, 110, 120, 0.3);
}
.btn:hover { background-color: #094b52; transform: translateY(-2px); }

.btn-gold { background: var(--secondary-color); color: #fff; box-shadow: 0 2px 5px rgba(197, 160, 89, 0.4); }
.btn-gold:hover { background: var(--dark-gold); }

.btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); box-shadow: none; }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* --- سکشن‌ها --- */
section { padding: 70px 0; }
.section-title {
    text-align: center; font-size: 19px; font-weight: 800; margin-bottom: 45px;
    color: var(--primary-color); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: var(--secondary-color); margin: 12px auto 0; border-radius: 10px;
}

/* --- هدر --- */
header {
    background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; padding: 12px 0; backdrop-filter: blur(10px);
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 18px; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.logo img { height: 40px; }

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-dark); position: relative; }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; right: 0;
    background: var(--secondary-color); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* --- موبایل منو --- */
.hamburger-menu { display: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1002; }
.hamburger-menu span {
    display: block; width: 100%; height: 2px; background-color: var(--primary-color);
    position: absolute; transition: var(--transition); border-radius: 2px;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }
.hamburger-menu.active span:nth-child(1) { top: 9px; transform: rotate(45deg); background-color: #fff; }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); background-color: #fff; }

.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--primary-color); z-index: 1001; padding: 80px 20px 20px;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.mobile-sidebar.active { right: 0; }
.mobile-links li { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.mobile-links a { color: #fff; font-size: 14px; display: block; }

/* --- هیرو --- */
.hero {
    padding: 80px 0; background: linear-gradient(120deg, #fdfbf7 0%, #fff 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 300px; height: 300px;
    background: var(--secondary-color); opacity: 0.05; border-radius: 50%; z-index: 0;
}
.hero-content { display: flex; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-text { flex: 1.2; }
.hero-title { font-size: 26px; font-weight: 900; color: var(--primary-color); margin-bottom: 20px; line-height: 1.5; }
.hero-desc { font-size: 14px; color: var(--text-gray); margin-bottom: 30px; text-align: justify; }
.hero-poster { flex: 0.8; display: flex; justify-content: center; }
.poster-frame {
    background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: rotate(-2deg); transition: var(--transition); border: 1px solid #eee;
}
.poster-frame:hover { transform: rotate(0) scale(1.02); }
.poster-frame img { border-radius: 6px; max-height: 380px; object-fit: cover; }

/* --- تایم‌لاین --- */
.timeline-section { background: #fff; }
.timeline-container { position: relative; margin-top: 40px; }
.timeline-line { position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: #e0e0e0; z-index: 1; }
.timeline-items { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.t-item { text-align: center; width: 18%; position: relative; }
.t-dot {
    width: 40px; height: 40px; background: var(--primary-color); border-radius: 50%;
    margin: 0 auto 15px; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--primary-color); transition: var(--transition);
}
.t-item:hover .t-dot { background: var(--secondary-color); box-shadow: 0 0 0 2px var(--secondary-color); transform: scale(1.1); }
.t-date { font-weight: 700; color: var(--text-dark); margin-bottom: 5px; font-size: 14px; }
.t-desc { font-size: 12px; color: var(--text-gray); }

/* --- جوایز --- */
.prizes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.prize-card {
    background: #fff; padding: 35px 25px; border-radius: 15px; box-shadow: var(--shadow);
    text-align: center; border-bottom: 4px solid transparent; transition: var(--transition);
}
.prize-card:hover { transform: translateY(-7px); border-bottom-color: var(--secondary-color); }
.prize-icon { font-size: 35px; margin-bottom: 15px; display: inline-block; background: #fdfbf7; width: 70px; height: 70px; line-height: 70px; border-radius: 50%; }
.prize-title { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.prize-amount { color: var(--secondary-color); font-weight: 800; font-size: 16px; display: block; margin-top: 5px; }

/* --- داوران --- */
.jury-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
.jury-card { text-align: center; background: #fff; padding: 20px; border-radius: 12px; box-shadow: var(--shadow); }
.jury-img-box { width: 100px; height: 100px; margin: 0 auto 15px; position: relative; }
.jury-img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--secondary-color); padding: 3px; background: #fff;
}
.jury-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--primary-color); }
.jury-role { font-size: 11px; color: #888; }

/* --- اخبار (گالری) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
    background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition); display: flex; flex-direction: column;
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-img { height: 180px; width: 100%; object-fit: cover; }
.gallery-info { padding: 20px; }
.art-name { font-weight: 700; font-size: 14px; display: block; margin-bottom: 10px; }
.artist-name { font-size: 12px; opacity: 0.8; }

/* --- حامیان --- */
.sponsors-wrapper { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.sponsor-logo { 
    width: 100px; height: 80px; background: #fff; border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    border: 1px solid #eee; padding: 10px; transition: 0.3s;
}
.sponsor-logo:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- فوتر --- */
footer { background: #1a252f; color: #ecf0f1; padding: 50px 0 20px; font-size: 12px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 14px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--secondary-color); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #bdc3c7; }
.footer-col a:hover { color: var(--secondary-color); padding-right: 5px; }
.copyright { text-align: center; border-top: 1px solid #34495e; padding-top: 20px; color: #7f8c8d; }

/* --- ثبت اثر --- */
.submit-box { background: #fff; padding: 40px; border-radius: 15px; box-shadow: var(--shadow); max-width: 700px; margin: -50px auto 50px; position: relative; z-index: 10; border-top: 5px solid var(--secondary-color); }
.form-group { margin-bottom: 20px; }
.label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary-color); }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.form-control:focus { border-color: var(--primary-color); }

/* --- سینگل --- */
.single-container { padding: 40px 0; max-width: 900px; margin: 0 auto; }
.single-card { background: #fff; padding: 40px; border-radius: 15px; box-shadow: var(--shadow); }
.single-title { font-size: 24px; color: var(--primary-color); margin-bottom: 20px; }
.single-meta { font-size: 12px; color: #777; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; display: flex; gap: 20px; }
.single-content { line-height: 2; font-size: 14px; text-align: justify; }
.single-content img { border-radius: 10px; margin: 20px 0; }

/* --- رسپانسیو --- */
@media (max-width: 992px) {
    .hero-content { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .hero-poster { width: 100%; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; }
    .timeline-line { display: none; }
    .timeline-items { flex-direction: column; gap: 0; }
    .t-item { width: 100%; text-align: right; display: flex; align-items: center; gap: 15px; padding-bottom: 30px; border-right: 2px solid #eee; margin-right: 15px; }
    .t-item:last-child { border: none; padding-bottom: 0; }
    .t-dot { margin: 0; width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; transform: translateX(50%); }
    .submit-box { margin-top: 20px; padding: 20px; }
}