 :root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --accent-color: #4895ef;
            --dark-color: #1a1a2e;
            --light-color: #f8f9fa;
            --success-color: #4cc9f0;
            --warning-color: #f72585;
            --gray-color: #6c757d;
            --border-radius: 12px;
            --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: #f5f7ff;
            color: var(--dark-color);
            line-height: 1.8;
            overflow-x: hidden;
        }
/* استایل‌های آیکون‌های SVG */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    margin-left: 0.3em;
}

/* هدر جدید با گرادیان */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s both;
}

.site-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInDown 1s both 0.2s;
}

/* دکمه جستجوی جدید */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 1s both 0.4s;
}

#search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

    #search-input:focus {
        outline: none;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
    }

#search-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

    #search-button:hover {
        color: var(--secondary-color);
        transform: translateY(-50%) scale(1.1);
    }

/* موج هدر با انیمیشن */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    animation: waveMove 10s linear infinite;
}

    .header-wave svg {
        width: 100%;
        height: 100%;
    }

    .header-wave path {
        fill: rgba(255, 255, 255, 0.2);
    }

/* دکمه بازگشت جدید */
.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 2rem 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    animation: fadeInLeft 1s both 0.6s;
}

    .back-to-articles:hover {
        background: var(--secondary-color);
        transform: translateX(-5px);
        box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    }

/* کارت مقاله اصلی */
.article-detail {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

.article-detail-header {
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, #f5f7ff, #e6ebff);
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(67, 97, 238, 0.2);
}

.article-detail-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-color);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

    .article-detail-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* تصویر مقاله با hover effect */
.article-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transform: scale(0.95);
}

    .article-detail-image:hover {
        transform: scale(0.98);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

/* محتوای مقاله */
.article-detail-content {
    padding: 2rem;
    font-size: 1.1rem;
    color: #444;
}

    .article-detail-content p {
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .article-detail-content h2 {
        font-size: 1.8rem;
        color: var(--dark-color);
        margin: 2.5rem 0 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
        position: relative;
    }

        .article-detail-content h2::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 100px;
            height: 2px;
            background: var(--primary-color);
        }

    .article-detail-content h3 {
        font-size: 1.5rem;
        color: var(--secondary-color);
        margin: 2rem 0 1rem;
    }

    .article-detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        margin: 2rem auto;
        display: block;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

        .article-detail-content img:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

    /* استایل کدها */
    .article-detail-content pre {
        background: #1e1e2e;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        overflow-x: auto;
        margin: 2rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-left: 4px solid var(--accent-color);
    }

    .article-detail-content code {
        font-family: 'Courier New', monospace;
        color: #f8f8f2;
        font-size: 0.9rem;
        line-height: 1.6;
    }

/* مقالات مرتبط */
.related-articles {
    margin-top: 4rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

    .related-articles h3 {
        font-size: 1.8rem;
        color: var(--dark-color);
        margin-bottom: 2rem;
        position: relative;
        padding-bottom: 1rem;
    }

        .related-articles h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
            border-radius: 3px;
        }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* کارت مقاله مرتبط */
.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    transform: translateY(0);
}

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.article-image {
    height: 200px;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: var(--accent-color);
    margin-bottom: 0.8rem;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

    .article-title a {
        color: var(--dark-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .article-title a:hover {
            color: var(--primary-color);
        }

.article-excerpt {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-top: 1rem;
}

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* انیمیشن‌های سفارشی */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2rem;
    }

    .article-detail-title {
        font-size: 1.8rem;
    }

    .article-detail-image {
        height: 300px;
    }

    .article-detail-content {
        padding: 1.5rem;
    }

        .article-detail-content h2 {
            font-size: 1.5rem;
        }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* اسکرول نرم */
html {
    scroll-behavior: smooth;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--secondary-color);
        transform: translateY(-5px);
    }




/* هدر جدید با افکت ابر و باد و مه */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s both;
}

.site-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInDown 1s both 0.2s;
}

/* افکت‌های ابر و باد و مه */
.weather-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(15px);
    animation: float linear infinite;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-duration: 40s;
    animation-delay: 0s;
}

.cloud-2 {
    width: 300px;
    height: 90px;
    top: 30%;
    right: -100px;
    animation-duration: 50s;
    animation-delay: 5s;
}

.cloud-3 {
    width: 250px;
    height: 75px;
    bottom: 20%;
    left: 20%;
    animation-duration: 45s;
    animation-delay: 10s;
}

.wind {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10,50 Q25,40 40,50 T70,50 T100,50' stroke='rgba(255,255,255,0.1)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation: wind 20s linear infinite;
}

.fog {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    animation: fog 30s linear infinite;
}

/* انیمیشن‌های سفارشی */
@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(50px) translateY(-10px);
    }

    50% {
        transform: translateX(100px) translateY(0);
    }

    75% {
        transform: translateX(50px) translateY(10px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes wind {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes fog {
    0% {
        opacity: 0.1;
        background-position: 0 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.1;
        background-position: 100% 100%;
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes float-element {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* دکمه جستجوی جدید */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 1s both 0.4s;
    z-index: 10;
}

#search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

    #search-input:focus {
        outline: none;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        background: white;
    }

#search-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

    #search-button:hover {
        color: var(--secondary-color);
        transform: translateY(-50%) scale(1.1);
    }

/* موج هدر با انیمیشن */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    animation: waveMove 10s linear infinite;
    z-index: 5;
}

    .header-wave svg {
        width: 100%;
        height: 100%;
    }

    .header-wave path {
        fill: rgba(255, 255, 255, 0.2);
    }
