/*
Theme Name: Alborz Martyrs Congress
Description: قالب سامانه کنگره شهدای استان البرز - WordPress Theme for Alborz Martyrs Congress System
Author: Alborz Congress Development Team
Version: 1.0.0
Text Domain: alborz-martyrs
*/

/* ========== CSS Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'IRANYekan', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========== Custom Color Variables ========== */
:root {
    --primary-green: #2E7D32;
    --secondary-red: #D32F2F;
    --accent-gold: #FFC107;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --white: #ffffff;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'IRANYekan', 'Tahoma', sans-serif;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.text-primary-custom {
    color: var(--primary-green) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-primary-custom {
    background-color: var(--primary-green) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.btn-primary-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.btn-primary-custom:hover {
    background-color: #1B5E20;
    border-color: #1B5E20;
    color: var(--white);
}

/* ========== Header Styles ========== */
.site-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.btn-login {
    background-color: var(--accent-gold);
    color: var(--dark-gray);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login:hover {
    background-color: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--dark-gray);
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(46, 125, 50, 0.7), rgba(46, 125, 50, 0.7)),
                url('https://images.pexels.com/photos/6077326/pexels-photo-6077326.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-hero {
    background-color: var(--accent-gold);
    color: var(--dark-gray);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background-color: #FFB300;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: var(--dark-gray);
}

/* ========== Search Section ========== */
.search-section {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.btn-search {
    background-color: var(--primary-green);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    color: var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    color: var(--white);
}

/* ========== Quick Access Cards ========== */
.quick-access {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.access-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.access-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.access-card .icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.access-card:hover .icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.access-card h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.access-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ========== Content Sections ========== */
.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-gold));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ========== News Cards ========== */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card h5 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: bold;
}

/* ========== Martyr Cards ========== */
.martyr-card {
    transition: all 0.3s ease;
}

.martyr-card:hover {
    transform: translateY(-8px);
}

.martyr-card .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.martyr-card:hover .card {
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}

.martyr-card .card-img-top {
    position: relative;
    overflow: hidden;
}

.martyr-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.martyr-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* ========== Statistics Section ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ========== Video Section ========== */
.video-section {
    background: var(--white);
    padding: 4rem 0;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* ========== Footer ========== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.flag-bar {
    background: linear-gradient(to right, var(--primary-green) 33%, var(--white) 33%, var(--white) 66%, var(--secondary-red) 66%);
    height: 5px;
    margin-bottom: 2rem;
}

.footer-content {
    text-align: center;
}

.quran-verse {
    font-family: 'Shabnam', 'Vazirmatn', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    font-style: italic;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.candle-section {
    margin: 2rem 0;
}

.virtual-candle {
    display: inline-block;
    width: 40px;
    height: 60px;
    background: linear-gradient(to top, #8B4513 0%, #D2691E 30%, var(--accent-gold) 100%);
    border-radius: 5px 5px 20px 20px;
    position: relative;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.virtual-candle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 15px;
    background: radial-gradient(circle, #FF6B35, #FF4500);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.virtual-candle.lit::before {
    opacity: 1;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
    50% { transform: translateX(-50%) scale(1.1) rotate(1deg); }
    100% { transform: translateX(-50%) scale(1) rotate(-1deg); }
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* ========== Object Fit Support ========== */
.object-fit-cover {
    object-fit: cover !important;
    object-position: center !important;
}

/* ========== Card Image Left ========== */
.card-img-left {
    border-radius: 0.375rem 0 0 0.375rem;
}

[dir="rtl"] .card-img-left {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .access-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-form {
        padding: 0 1rem;
    }

    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.3);
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.search-input:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ========== Print Styles ========== */
@media print {
    .site-header,
    .site-footer,
    .search-section,
    .btn,
    .virtual-candle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
}