/* app/static/css/main.css */

/* استایل‌های صفحه اصلی - بهینه‌سازی شده */
.logo-section {
    padding: 3rem 0 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.main-logo {
    max-width: 400px;
    height: auto;
    margin: 20px 0;    
}

.page-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.main-cards-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.main-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.main-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.main-card:hover {
    background: rgba(0, 255, 130, 0.1);
    border-color: #00ff82;
    color: inherit;
    text-decoration: none;
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;    
    color: #ffffff;
    transition: all 0.3s ease;
}

.main-card:hover .card-icon {    
    color: #00ff82;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-card:hover .card-title {
    color: #00ff82;
}

.card-description {
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.education-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.education-content {
    max-width: 1100px;
    margin: 0 auto;
}

.education-category {
    margin-bottom: 2.5rem;
}

.education-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-item:hover {
    background: rgba(0, 255, 130, 0.1);
    border-color: #00ff82;
    color: #ffffff;
    text-decoration: none;
}

.guide-text {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.guide-item:hover .guide-text {
    color: #00ff82;
}

.guide-arrow {
    color: #ffffff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.guide-item:hover .guide-arrow {
    transform: translateX(-5px);
    color: #00ff82;
}

/* سیستم تب‌ها - بهینه‌سازی شده */
.tabs-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    min-width: 160px;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    white-space: nowrap;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.tab-button.active {
    background: rgba(0, 255, 130, 0.1);
    color: #00ff82;
    border-bottom: 2px solid #00ff82;
}

.tab-button i {
    font-size: 1.1rem;
}

.tabs-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane .guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسپانسیو - بهینه‌سازی شده */
@media (max-width: 1024px) {
    .main-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .main-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .logo-section {
        padding: 2rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .main-logo {
        max-width: 250px;
    }
    
    .main-cards-section {
        padding: 1.5rem 0;
    }
    
    .main-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-card {
        padding: 1.5rem;
    }
    
    .education-section {
        padding: 2rem 0;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .guide-item {
        padding: 1rem 1.2rem;
    }
    
    .card-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: 100%;
        padding: 1rem 1.2rem;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-button.active {
        border-bottom: 2px solid #00ff82;
    }
    
    .tab-pane {
        padding: 1.5rem;
    }
    
    .tab-pane .guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-card {
        padding: 1.2rem 1rem;
    }
    
    .guide-item {
        padding: 0.8rem 1rem;
    }
    
    .guide-text {
        font-size: 0.9rem;
    }
    
    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-button i {
        font-size: 1rem;
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    .guide-item {
        padding: 0.8rem;
    }
    
    .guide-text {
        font-size: 0.9rem;
    }
}