/* فونت فارسی */
:root {
    --primary-color: #8a2be2;
    --secondary-color: #da70d6;
    --dark-color: #1a1a2e;
    --darker-color: #0f0f1a;
    --light-color: #f8f9fa;
    --accent-color: #ffd700;
    --danger-color: #ff4757;
    --success-color: #2ed573;
    --info-color: #1e90ff;
    --premium-gold: linear-gradient(135deg, #ffd700, #daa520, #b8860b);
    --premium-silver: linear-gradient(135deg, #c0c0c0, #a9a9a9, #808080);
    --premium-bronze: linear-gradient(135deg, #cd7f32, #b87333, #a0522d);
}

@font-face {
    font-family: vazirmant;
    src: url(/resources/fonts/VAZIRMATN-REGULAR.TTF), url(/resources/fonts/VAZIRMATN-SEMIBOLD.TTF);
}

@font-face {
    font-family: vazircode;
    src: url(/resources/fonts/VAZIR-CODE.TTF);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: vazircode, vazirmant, sans-serif;
}

body {
    background-color: var(--darker-color);
    color: var(--light-color);
    background-image: radial-gradient( circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 20% ), radial-gradient( circle at 90% 80%, rgba(218, 112, 214, 0.1) 0%, transparent 20% );
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر و نویگیشن */
header {
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

    .logo i {
        color: var(--secondary-color);
        font-size: 1.8rem;
    }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

    nav ul li a {
        color: var(--light-color);
        text-decoration: none;
        font-weight: 500;
        padding: 8px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        nav ul li a:hover,
        nav ul li a.active {
            background-color: rgba(138, 43, 226, 0.2);
            color: var(--secondary-color);
        }

        nav ul li a::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--secondary-color);
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after,
        nav ul li a.active::after {
            width: 100%;
        }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* بخش اصلی */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بخش پلن‌های حمایت مالی */
.donate-plans {
    margin-top: 50px;
}

.donate-hero {
    text-align: center;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    background: linear-gradient( 135deg, rgba(138, 43, 226, 0.15), rgba(218, 112, 214, 0.1) );
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
}

    .donate-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient( circle at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50% ), radial-gradient( circle at 80% 20%, rgba(218, 112, 214, 0.05) 0%, transparent 50% );
        z-index: -1;
    }

    .donate-hero h1 {
        font-size: 3rem;
        margin-bottom: 15px;
        background: linear-gradient( to right, var(--accent-color), var(--secondary-color) );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 20px rgba(218, 112, 214, 0.3);
    }

    .donate-hero p {
        font-size: 1.3rem;
        max-width: 800px;
        margin: 0 auto 30px;
        color: #ccc;
    }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient( to right, var(--accent-color), var(--secondary-color) );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 5px;
}

.hero-stat-label {
    color: #aaa;
    font-size: 1rem;
}

/* */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    background: linear-gradient( 135deg, rgba(138, 43, 226, 0.1), rgba(218, 112, 214, 0.05) );
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient( circle, rgba(255, 215, 0, 0.05) 0%, transparent 70% );
        z-index: -1;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
        background: linear-gradient( to right, var(--accent-color), var(--secondary-color) );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 15px rgba(218, 112, 214, 0.3);
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 25px;
        color: #ccc;
    }

.server-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.info-card {
    background-color: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    padding: 20px;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-color: var(--secondary-color);
    }

    .info-card i {
        font-size: 2rem;
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

    .info-card h3 {
        color: var(--accent-color);
        margin-bottom: 10px;
    }

/* استایل بخش‌های مختلف */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: linear-gradient( to right, var(--primary-color), var(--secondary-color) );
        border-radius: 3px;
    }

.server-link {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.3rem;
    color: var(--accent-color);
    direction: ltr;
    cursor: pointer;
}

/* صفحه اخبار */
.news-container {
    margin-top: 30px;
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .filter-btn:hover,
    .filter-btn.active {
        background-color: rgba(138, 43, 226, 0.3);
        color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-color: var(--secondary-color);
    }

    .news-card.featured {
        grid-column: span 2;
        flex-direction: row;
    }

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: auto;
    flex: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.news-category {
    background-color: rgba(138, 43, 226, 0.2);
    padding: 3px 12px;
    border-radius: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    line-height: 1.4;
}

.news-excerpt {
    color: #ccc;
    margin-bottom: 20px;
    flex: 1;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.news-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient( to right, var(--primary-color), var(--secondary-color) );
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

    .read-more:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    }

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.sidebar-widget {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.widget-title {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}

.news-post {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.post-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    display: flex;
    justify-content: space-between;
}

.post-widget {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.post-date {
    color: var(--secondary-color);
    padding: 2px 6px;
    border: 1px solid var(--secondary-color);
    cursor: default;
    user-select: none;
}

    .post-date:hover {
        color: white;
        padding: 2px 6px;
        background-color: var(--secondary-color);
    }

.popular-news-list,
.news-archive-list {
    list-style: none;
}

.popular-news-item,
.archive-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .popular-news-item:last-child,
    .archive-item:last-child {
        border-bottom: none;
    }

    .popular-news-item a {
        color: var(--light-color);
        text-decoration: none;
        transition: color 0.3s ease;
        display: block;
    }

        .popular-news-item a:hover {
            color: var(--secondary-color);
        }

    .archive-item a {
        color: #aaa;
        text-decoration: none;
        transition: color 0.3s ease;
        display: flex;
        justify-content: space-between;
    }

        .archive-item a:hover {
            color: var(--secondary-color);
        }

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    background-color: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .pagination-btn:hover,
    .pagination-btn.active {
        background-color: rgba(138, 43, 226, 0.3);
        color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

/* بخش قوانین */
.term-section {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

    .term-section p,
    .term-section ul {
        margin-bottom: 1rem;
    }

    .term-section code {
        padding: 0.2em 0.4em;
        margin: 0;
        font-size: 85%;
        white-space: break-spaces;
        background-color: #33333370;
        border-radius: 6px;
        direction: ltr;
    }

.term-widget {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    text-align: center;
}

.term-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.rule-card {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid var(--danger-color);
    transition: transform 0.3s ease;
}

    .rule-card:nth-child(2n) {
        border-left-color: var(--success-color);
    }

    .rule-card:nth-child(3n) {
        border-left-color: var(--accent-color);
    }

    .rule-card:hover {
        transform: translateX(5px);
    }

    .rule-card h3 {
        color: var(--secondary-color);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rule-card i {
        color: var(--accent-color);
    }

/* بخش حمایت مالی */
.content-section {
    flex: 9;
}

.sidebar-section {
    flex: 3;
}

.sidebar-hero {
    padding: 10px 20px;
    background: linear-gradient( 135deg, rgba(138, 43, 226, 0.15), rgba(218, 112, 214, 0.1) );
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    overflow: hidden;
}

    .sidebar-hero h2 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        ;
    }

/* بخش انجمن */
.forum-container {
    margin-top: 30px;
}

/* بخش درباره ما */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

/* بخش حمایت مالی */
.donate-content {
    text-align: center;
    margin-top: 30px;
}

/* فوتر */
footer {
    background-color: rgba(15, 15, 26, 0.95);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

    .footer-section h3 {
        color: var(--accent-color);
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    .footer-section p {
        color: #ccc;
        margin-bottom: 20px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(138, 43, 226, 0.2);
        border-radius: 50%;
        color: var(--light-color);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--secondary-color);
            padding-right: 5px;
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .donate-hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .server-info {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .donate-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .header-container {
        flex-direction: row;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

        nav.active {
            display: block;
        }

        nav ul {
            flex-direction: column;
            gap: 5px;
        }

            nav ul li a {
                display: block;
                text-align: center;
                padding: 12px;
            }

    .hero {
        padding: 30px 15px;
    }

        .hero h1 {
            font-size: 1.6rem;
        }

    .section-title {
        font-size: 1.6rem;
    }

    .news-filter {
        flex-direction: column;
        align-items: center;
    }

    .donate-hero {
        padding: 40px 20px;
    }

        .donate-hero h1 {
            font-size: 1.8rem;
        }
}
