/* css/style.css */
/* استایل کامل سایت ایران آموزش یک */
/* نسخه: 3.0 | تاریخ: ۲۰۲۴ */

/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazir, Tahoma, Arial, sans-serif;
    line-height: 1.8;
    color: #333333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.main-header {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logo span {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* بخش قهرمان */
.hero {
    background: linear-gradient(135deg, #FFD60A, #FFC300);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ffffff" fill-opacity="0.1"><circle cx="50" cy="50" r="2"/></svg>') repeat;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #555;
    font-weight: 500;
}

.streak-counter {
    background: rgba(255,255,255,0.95);
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #FFD60A;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,180,216,0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, #0096C7, #0077B6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,180,216,0.5);
}

.mascot {
    font-size: 10rem;
    text-align: center;
    animation: bounce 2s infinite;
}

/* ویژگی‌ها */
.features {
    padding: 5rem 0;
    background: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00B4D8, #FFD60A);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00B4D8;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: #00B4D8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* فوتر */
.main-footer {
    background: linear-gradient(135deg, #333333, #222222);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: #00B4D8;
    transform: scale(1.1);
}

/* صفحه درس */
.lesson-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.lesson-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #00B4D8;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    margin: -2rem -2rem 3rem -2rem;
}

.lesson-title {
    color: #00B4D8;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lesson-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-right: 5px solid #00B4D8;
    transition: all 0.3s ease;
}

.lesson-section:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    color: #FF8C00;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.dialogue {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #90EE90;
    margin: 1rem 0;
}

.dialogue p {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.dialogue p:hover {
    background: #f8f9fa;
}

.dialogue strong {
    color: #00B4D8;
}

.audio-player {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
    border: 2px dashed #00B4D8;
}

.play-btn {
    background: linear-gradient(135deg, #90EE90, #7ED957);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 4px 15px rgba(144,238,144,0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, #7ED957, #5CB85C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144,238,144,0.4);
}

.play-btn.active {
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
}

/* واژه‌ها */
.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.vocab-item {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #00B4D8;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.vocab-item:hover {
    background: #00B4D8;
    color: white;
    transform: scale(1.05);
}

/* تمرین‌ها */
.exercise {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #e9ecef;
}

.exercise input, .exercise textarea, .exercise select {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Vazir, sans-serif;
    transition: all 0.3s ease;
}

.exercise input:focus, .exercise textarea:focus, .exercise select:focus {
    border-color: #00B4D8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}

/* سوالات چهارگزینه‌ای */
.quiz-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quiz-option {
    padding: 1.2rem;
    background: #e9ecef;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: #00B4D8;
    background: #f8f9fa;
    transform: translateX(-5px);
}

.quiz-option.selected {
    background: #00B4D8;
    color: white;
}

.quiz-option.correct-answer {
    background: #90EE90;
    color: #333;
    border-color: #5CB85C;
}

.quiz-option.wrong-answer {
    background: #FF6B6B;
    color: white;
    border-color: #D9534F;
}

/* نکته روز */
.tip-box {
    background: linear-gradient(135deg, #FFD60A, #FFC300);
    padding: 2rem;
    border-radius: 15px;
    border-right: 5px solid #FF8C00;
    position: relative;
    overflow: hidden;
}

.tip-box::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

.tip-box p {
    margin: 0;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
}

/* ناوبری درس */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.nav-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,180,216,0.3);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #0096C7, #0077B6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,180,216,0.4);
}

/* صفحه پیشرفت */
.progress-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.progress-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.progress-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(#00B4D8 0% 25%, #f0f0f0 25% 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,180,216,0.3);
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    z-index: 1;
}

.streak-badge {
    background: linear-gradient(135deg, #FFD60A, #FF8C00);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255,140,0,0.3);
}

/* استایل‌های بخش رنگ‌ها */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.color-item {
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.matching-pairs {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pair:hover {
    background: #e9ecef;
    border-color: #00B4D8;
}

.item {
    font-weight: bold;
    font-size: 1.2rem;
}

.color-select {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 140px;
    transition: all 0.3s ease;
    font-family: Vazir, sans-serif;
    font-size: 1rem;
}

.color-select:focus {
    border-color: #00B4D8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}

/* انیمیشن‌ها */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .main-footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .mascot {
        font-size: 6rem;
    }
    
    .lesson-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .lesson-title {
        font-size: 2rem;
    }
    
    .vocabulary-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .pair {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    
    .progress-circle::before {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .lesson-section {
        padding: 1.5rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .progress-card {
        padding: 1.5rem;
    }
}

/* استایل‌های ویژه برای حالت‌های مختلف */
.correct-feedback {
    background: #90EE90;
    color: #2d5016;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-right: 4px solid #5CB85C;
}

.wrong-feedback {
    background: #FF6B6B;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-right: 4px solid #D9534F;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.hidden {
    display: none;
}

/* اسکرول بار زیبا */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #00B4D8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0096C7;
}

/* انتخاب متن */
::selection {
    background: #00B4D8;
    color: white;
}

::-moz-selection {
    background: #00B4D8;
    color: white;
}