/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a1a;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(41, 21, 107, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 21, 75, 0.2) 0%, transparent 40%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

.highlight {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #6a11cb;
    border: 2px solid #6a11cb;
}

.btn-secondary:hover {
    background: rgba(106, 17, 203, 0.1);
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
}

.logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.nav-list a:hover, .nav-list a.active {
    background: rgba(106, 17, 203, 0.2);
    color: #6a11cb;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 150px 0 80px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffd700, #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b0b0d0;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.astronaut-icon {
    font-size: 15rem;
    color: rgba(106, 17, 203, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections Common */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #b0b0d0;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(30, 30, 60, 0.7);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #6a11cb;
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #6a11cb;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #b0b0d0;
}

/* Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.course-card {
    background: rgba(30, 30, 60, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.course-header {
    padding: 25px;
    background: rgba(20, 20, 40, 0.8);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.course-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-badge.free {
    background: rgba(0, 200, 0, 0.2);
    color: #00ff00;
}

.course-badge.paid {
    background: rgba(106, 17, 203, 0.2);
    color: #a855f7;
}

.course-card h3 {
    font-size: 1.5rem;
    color: #fff;
}

.course-body {
    padding: 25px;
}

.course-body p {
    color: #b0b0d0;
    margin-bottom: 20px;
}

.course-details {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.course-details i {
    margin-right: 5px;
}

.course-footer {
    padding: 0 25px 25px;
}

/* Blog Preview */
.blog-preview {
    background: rgba(10, 10, 20, 0.8);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.blog-card {
    background: rgba(30, 30, 60, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.blog-image {
    height: 150px;
    background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #6a11cb;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.blog-content h3 a:hover {
    color: #6a11cb;
}

.blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content p {
    color: #b0b0d0;
}

/* Footer */
.footer {
    background: rgba(5, 5, 15, 0.95);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffd700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #6a11cb;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-about {
    color: #b0b0d0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6a11cb;
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0d0;
}

.footer-links a:hover {
    color: #6a11cb;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #b0b0d0;
}

.footer-contact i {
    color: #6a11cb;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .astronaut-icon {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .courses-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading & No Data */
.loading {
    text-align: center;
    padding: 40px;
    color: #6a11cb;
    font-size: 1.2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #6a11cb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive for auth buttons */
@media (max-width: 992px) {
    .auth-buttons {
        margin-right: 10px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .auth-buttons {
        display: none; /* در موبایل در منو نمایش داده شود */
    }
    
    .nav.active .auth-buttons {
        display: flex;
        flex-direction: column;
        margin: 20px 0;
    }
}

/* Course Details in Cards */
.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    color: #888;
    font-size: 0.9rem;
}

.course-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-details i {
    color: #6a11cb;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta i {
    margin-left: 5px;
    color: #6a11cb;
}