/* فونت Vazir */
@font-face {
    font-family: 'Vazir';
    src: url('/content/fonts/Vazir-Black.woff2');
    font-display: swap;
}

/* متغیرهای CSS */
:root {
    --primary-color: #0072ff;
    --secondary-color: #00c6ff;
    --accent-color: #6a11cb;
    --dark-color: #0a0e17;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 114, 255, 0.15);
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --success-color: #00ff88;
    --warning-color: #ffcc00;
    --info-color: #00c6ff;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 198, 255, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        #00c6ff, 
        #0072ff);
    border-radius: 6px;
    border: 2px solid rgba(10, 14, 23, 0.9);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        #00d2ff, 
        #0088ff);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
}
* {
    scrollbar-width: thin;
    scrollbar-color: #0072ff rgba(10, 14, 23, 0.8);
}
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
}

/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
    font-weight: 100;
      outline: none;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 114, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(106, 17, 203, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(0, 198, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}


.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(1px);
}


.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 247, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;

}



.particles {
    position: absolute;
    width: 100%;
    height: 100%;

}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #00f7ff;
    box-shadow:
        0 0 10px #00f7ff,
        0 0 20px #00f7ff,
        0 0 30px #0066ff;
}



@media (max-width: 768px) {
    .content {
        padding: 25px;
        margin: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .gradient-bg {
        width: 200vw;
        height: 200vh;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* دکمه بازگشت به صفحه اصلی */
.back-to-home {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.back-btn:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.back-btn .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* هیروی صفحه دوره‌ها */
.courses-hero {
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
        background: linear-gradient(rgb(0, 0, 0), rgba(31, 36, 45, 0.699)),
      url('../content/images/hidden_base_in_the_winter_mountains-wallpaper-2560x1080.jpg') no-repeat center center/cover;
}

.courses-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.courses-hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 114, 255, 0.3);
}

.gradient-text {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.courses-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* باکس جستجو */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: rgba(0, 0, 0, 0.539);
    border: 1px solid var(--glass-border);
           border-radius: 80px;
    corner-shape: squircle;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.1);
}

.search-box input::placeholder {
    color: white;
    opacity: 0.7;
}

.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--secondary-color);
}

.search-btn .icon {
    width: 20px;
    height: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.hero-stat .stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

/* دسته‌بندی دوره‌ها */
.categories-section {
    padding: 30px 0;
    background: rgba(10, 14, 23, 0.5);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
            border-radius: 80px;
    corner-shape: squircle;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--secondary-color);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
}

/* فیلتر دوره‌ها */
.filter-section {
    padding: 20px 0;
    background: rgba(10, 14, 23, 0.3);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.filter-select {
    padding: 8px 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
            border-radius: 80px;
    corner-shape: squircle;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
           border-radius: 80px;
    corner-shape: squircle;
    color: var(--text-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--secondary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
}

/* لیست دوره‌ها */
.courses-list-section {
    padding: 40px 0;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.course-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
           border-radius: 80px;
    corner-shape: squircle;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.2);
    transform: translateY(-3px);
}

.course-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.course-image {
    width: 120px;
    height: 80px;
    background: rgba(0, 114, 255, 0.1);
          border-radius: 80px;
    corner-shape: squircle;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-image svg {
    width: 50px;
    height: 50px;
    fill: rgba(255, 255, 255, 0.3);
}

.course-info {
    flex: 1;
}

.course-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
    flex: 1;
}

.course-badge {
    padding: 4px 12px;
              border-radius: 80px;
    corner-shape: squircle;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.badge-free {
    background: var(--success-color);
    color: var(--dark-color);
}

.badge-paid {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.badge-new {
    background: var(--warning-color);
    color: var(--dark-color);
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.level-badge {
    padding: 3px 10px;
          border-radius: 80px;
    corner-shape: squircle;
    font-size: 11px;
    font-weight: 500;
}

.level-beginner {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.level-intermediate {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.level-advanced {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.stats-left {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-item .icon {
    width: 16px;
    height: 16px;
}

.rating {
    color: var(--warning-color);
    font-weight: 600;
}

.stats-right {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
           border-radius: 80px;
    corner-shape: squircle;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--secondary-color);
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* بارگذاری بیشتر */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* مزایای دوره‌ها */
.benefits-section {
    padding: 60px 0;
    background: rgba(10, 14, 23, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
             border-radius: 80px;
    corner-shape: squircle;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(0, 198, 255, 0.1);
           border-radius: 80px;
    corner-shape: squircle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--secondary-color);
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* CTA پایانی */
.courses-cta {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(rgb(0, 15, 34), rgb(0, 15, 19));
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}



/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.course-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
             border-radius: 80px;
    corner-shape: squircle;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow: hidden;
}

.course-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-color);
    flex: 1;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.close-modal .icon {
    width: 20px;
    height: 20px;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* ریسپانسیو */

/* تبلت */
@media (max-width: 992px) {
    .course-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .course-image {
        width: 100%;
        height: 150px;
    }
    
    .course-stats {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .stats-left {
        justify-content: space-between;
    }
    
    .stats-right {
        width: 100%;
    }
    
    .stats-right .btn {
        flex: 1;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
        max-width: 200px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .courses-hero-title {
        font-size: 2rem;
    }
    
    .courses-hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .course-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .stat-item {
        font-size: 12px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .back-to-home {
        top: 15px;
        right: 15px;
    }
    
    .back-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .course-title-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .course-badge {
        align-self: flex-start;
    }
    
    .stats-left {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-box input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}
