/*
Theme Name: باشگاه ورزشی مارون
Theme URI: https://fc.zichi.ir
Author: Maron FC Dev Team
Description: پوسته اختصاصی باشگاه مارون - کدنویسی شده با CSS خالص و استاندارد (بدون فریم‌ورک)
Version: 1.3.0
Text Domain: maronfc
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root {
    --club-red: #e10600;
    --club-dark-red: #9e0000;
    --bg-dark: #0b0e14;
    --bg-card: #131722;
    --bg-card-alt: #161b26;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #f3f4f6;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==================== 1. هدر سایت ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.top-bar {
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    max-height: 42px;
    overflow: hidden;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    font-size: 12px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-links a {
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-links a:hover {
    color: var(--club-red);
}

.live-link {
    color: #ef4444 !important;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.main-nav-wrapper {
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.nav-container {
    height: 80px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
}

.nav-menu a:hover {
    color: #facc15;
}

.badge-base {
    background: #facc15;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 900;
}

.club-logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.logo-badge {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--club-red), var(--club-dark-red));
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
}

.logo-badge:hover {
    transform: scale(1.05);
}

.logo-badge img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.site-header.is-scrolled .top-bar {
    max-height: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    opacity: 0;
}

.site-header.is-scrolled .main-nav-wrapper {
    background-color: var(--club-red) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--club-dark-red);
}

.site-header.is-scrolled .nav-container {
    height: 64px;
}

.site-header.is-scrolled .logo-badge {
    width: 60px;
    height: 60px;
}

/* ==================== 2. بنر هیرو ==================== */
.hero-section {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11, 14, 20, 0.35), rgba(11, 14, 20, 0.95));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-tag {
    display: inline-block;
    background: rgba(225, 6, 0, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 18px;
    color: #d1d5db;
    font-weight: 300;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--club-red);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.4);
}

.btn-primary:hover {
    background-color: #b80500;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 3. نوار اخبار فوری ==================== */
.ticker-bar {
    background-color: var(--club-dark-red);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
}

.ticker-label {
    background: var(--club-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ticker-content {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 13px;
}

.ticker-content::-webkit-scrollbar { display: none; }

.ticker-item {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item:hover { color: #facc15; }

.yellow-dot {
    width: 6px;
    height: 6px;
    background: #facc15;
    border-radius: 50%;
}

/* ==================== 4. مچ سنتر ==================== */
.match-section {
    padding: 48px 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.match-card {
    background: linear-gradient(135deg, var(--bg-card-alt), #0e121a);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.match-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.match-status-title {
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-status-green { color: #22c55e; }

.match-tournament {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.match-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 16px 0;
}

.team-box { flex: 1; }

.team-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.15);
    border: 1px solid rgba(225, 6, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--club-red);
    font-size: 22px;
}

.team-icon-gray {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

.team-name {
    font-size: 14px;
    font-weight: 700;
}

.vs-box { padding: 0 16px; }

.vs-text {
    font-size: 24px;
    font-weight: 900;
    color: #6b7280;
}

.score-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: 900;
    font-family: monospace;
}

.match-time {
    color: #facc15;
    font-size: 12px;
    margin-top: 4px;
    font-family: monospace;
}

.match-card-foot {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
}

.btn-ticket {
    background: var(--club-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-ticket:hover { background: #b80500; }

/* ==================== 5. بخش رشته‌های ورزشی ==================== */
.sports-hub-section {
    padding: 20px 0 40px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sport-card {
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sport-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 6, 0, 0.6);
}

.sport-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(225, 6, 0, 0.15);
    border: 1px solid rgba(225, 6, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--club-red);
    margin-bottom: 16px;
}

.sport-card-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.sport-card-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.sport-card-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ==================== 6. اسکواد بازیکنان ==================== */
.squad-section {
    padding: 48px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.section-tag {
    color: var(--club-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    margin-top: 4px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.player-card {
    background: linear-gradient(180deg, var(--bg-card-alt), #0c0f17);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.player-card:hover {
    border-color: rgba(225, 6, 0, 0.6);
}

.player-bg-number {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 56px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: monospace;
    transition: var(--transition);
    user-select: none;
}

.player-thumb {
    aspect-ratio: 3/4;
    border-radius: 12px;
    background: linear-gradient(0deg, #000, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.player-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-badge-num {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--club-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.player-name {
    font-size: 16px;
    font-weight: 700;
}

.player-pos {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ==================== 7. تالار افتخارات ==================== */
.honors-bar-section {
    background: linear-gradient(135deg, #180303, #080a0f);
    border-top: 1px solid rgba(225, 6, 0, 0.3);
    border-bottom: 1px solid rgba(225, 6, 0, 0.3);
    padding: 40px 0;
    margin: 40px 0;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.honor-stat-item {
    padding: 15px;
}

.honor-stat-icon {
    font-size: 32px;
    color: #facc15;
    margin-bottom: 10px;
}

.honor-stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
}

.honor-stat-label {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ==================== 8. تلویزیون مارون تی‌وی ==================== */
.maron-tv-section {
    padding: 20px 0 50px;
}

.tv-box {
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tv-content {
    max-width: 650px;
}

.tv-badge {
    background: var(--club-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.tv-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 24px;
}

.tv-play-btn {
    background: #fff;
    color: #0b0e14;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tv-play-btn:hover {
    background: var(--club-red);
    color: #fff;
}

/* ==================== 9. گرید اخبار ==================== */
.news-section {
    padding: 48px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: rgba(225, 6, 0, 0.5);
}

.news-thumb {
    aspect-ratio: 16/9;
    position: relative;
    background: #0f131a;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--club-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news-title a:hover {
    color: var(--club-red);
}

.news-excerpt {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
}

/* ==================== 10. فوتر و اسپانسرها ==================== */
.sponsors-bar {
    background: #080b11;
    border-top: 1px solid var(--border-color);
    padding: 36px 0;
    text-align: center;
}

.sponsors-title {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.sponsors-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsor-item {
    font-size: 16px;
    font-weight: 900;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item img {
    max-height: 44px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.sponsor-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.site-footer {
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 32px;
    font-size: 13px;
    color: var(--text-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--club-red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.footer-club-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.footer-menu-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-right: 2px solid var(--club-red);
    padding-right: 8px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--club-red);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-btn:hover {
    background: var(--club-red);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .matches-grid, .footer-grid, .honors-grid, .sports-grid { grid-template-columns: 1fr; }
    .players-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 34px; }
    .nav-menu { display: none; }
}