/* استایل‌های صفحه مقالات فنی */
/* #6c00ef; */
/* بخش معرفی */
.technical-hero {
    background: linear-gradient(135deg, rgba(124, 1, 255, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.technical-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.technical-hero .hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* بخش جستجو */
.technical-hero .search-box {
    max-width: 600px;
    margin: 0 auto;
}

.technical-hero .search-box form {
    display: flex;
    gap: 1rem;
}

.technical-hero .search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.technical-hero .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.technical-hero .search-box button {
    padding: 1rem 2rem;
    border: solid 1px;
    border-radius: 8px;
    /* background: #fff; */
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.technical-hero .search-box button:hover {
    background: var(--accent-color);
    color: #fff;
}

/* بخش فیلترها */
.technical-filters {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 600;
    color: light-dark(#000, #fff);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid light-dark(#000, #fff);
    border-radius: 6px;
    background: light-dark(#fff, #000);
    color: light-dark(#000, #fff);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
    font-family: 'vazirmatn';
}

/* بخش مقالات */
.technical-articles {
    padding: 2rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background-color: light-dark(#fff, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

.pagination-ellipsis {
    background: none !important;
}

/* بخش خبرنامه */
.newsletter-section {
    /* background: var(--bg-secondary); */
    background: linear-gradient(135deg, rgba(124, 1, 255, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: light-dark(#fff, #fff);
}

.newsletter-section p {
    color: light-dark(#fff, #fff);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid light-dark(#fff, #2a2a2a);
    border-radius: 8px;
    font-size: 1rem;
    /* background: var(--bg-primary); */
    color: light-dark(#fff, #fff);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: light-dark(#fff, #2a2a2a);
    color: light-dark(#2a2a2a, #fff);;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    /* background: var(--accent-color); */
    border: 1px light-dark(#fff, #2a2a2a);
}


/* حالت تاریک
@media (prefers-color-scheme: dark) {
    .technical-hero {
        background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--secondary-color-dark) 100%);
    }

    .technical-hero .search-box input {
        background: rgba(0, 0, 0, 0.2);
    }

    .technical-hero .search-box button {
        background: var(--bg-primary-dark);
        color: #fff;
    }

    .technical-hero .search-box button:hover {
        background: var(--accent-color-dark);
    }

    .filter-group select {
        background: var(--bg-primary-dark);
        border-color: var(--border-color-dark);
        color: var(--text-primary-dark);
    }

    .article-card {
        background: var(--bg-primary-dark);
    }

    .article-content h3 {
        color: var(--text-primary-dark);
    }

    .article-content p {
        color: var(--text-secondary-dark);
    }

    .article-meta {
        color: var(--text-tertiary-dark);
    }

    .pagination a,
    .pagination span {
        background: var(--bg-primary-dark);
        color: var(--text-primary-dark);
    }

    .newsletter-section {
        background: var(--bg-secondary-dark);
    }

    .newsletter-section h2 {
        color: var(--text-primary-dark);
    }

    .newsletter-section p {
        color: var(--text-secondary-dark);
    }

    .newsletter-form input {
        background: var(--bg-primary-dark);
        border-color: var(--border-color-dark);
        color: var(--text-primary-dark);
    }
} */

/* رسپانسیو */
@media (max-width: 768px) {
    .technical-hero h1 {
        font-size: 2rem;
    }

    .technical-hero .hero-description {
        font-size: 1.1rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-group select {
        min-width: 200px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .technical-hero {
        padding: 3rem 0;
    }

    .technical-hero h1 {
        font-size: 1.75rem;
    }

    .technical-hero .search-box form {
        flex-direction: column;
    }

    .technical-hero .search-box button {
        width: 100%;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group select {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }
} 