/* static/css/home_new_style.css */

/* ================= استایل های عمومی برای home_new.html ================= */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
    padding: 0 1rem;
}
.main-header h1 {
    font-size: 2.5rem;
    font-family: 'Estedad', sans-serif;
    color: #22a745;
    margin-bottom: 10px;
}
.main-header p {
    font-size: 1.3rem;
    color: #555;
    font-family: 'Vazirmatn', sans-serif;
}

.main-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    padding: 0 1rem;
}

.e-card {
    margin: 0;
    background: transparent;
    box-shadow: 0px 8px 28px -9px rgba(0,0,0,0.45);
    position: relative;
    width: 240px;
    height: 330px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.e-card:hover {
    transform: translateY(-10px);
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wave {
    position: absolute;
    width: 540px;
    height: 700px;
    opacity: 0.6;
    left: 0;
    top: 0;
    margin-left: -50%;
    margin-top: -70%;
    z-index: 1;
}

/* === بخش جدید: استایل‌های رنگی مجزا برای هر کارت === */

/* کارت ۱: تمرین گرامر (استایل اصلی) */
#practice-card .wave {
    background: linear-gradient(744deg,#af40ff,#5b42f3 60%,#00ddeb);
}

/* کارت ۲: آموزش گرامر (گرادیان بنفش به صورتی) */
#lessons-card .wave {
    background: linear-gradient(744deg, #d23cbe, #ff6a88 60%, #ff9a8b);
}

/* کارت ۳: ویدیوهای آموزشی (گرادیان سبز اقیانوسی به لیمویی) */
#videos-card .wave {
    background: linear-gradient(744deg, #00b09b, #96c93d);
}

.icon {
    width: 3em;
    margin-top: 0;
    padding-bottom: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.infotop {
    text-align: center;
    font-size: 20px;
    position: absolute;
    top: 5.6em;
    left: 0;
    right: 0;
    color: rgb(255, 255, 255);
    font-weight: 600;
    z-index: 2;
    font-family: 'Estedad', sans-serif;
}

.infotop-text {
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.name {
    font-size: 14px;
    font-weight: 100;
    position: relative;
    top: 1em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Vazirmatn', sans-serif;
}

.wave:nth-child(2),
.wave:nth-child(3) {
    top: 210px;
}

.playing .wave {
    border-radius: 40%;
    animation: wave 3000ms infinite linear;
}

.wave {
    border-radius: 40%;
    animation: wave 55s infinite linear;
}

.playing .wave:nth-child(2) {
    animation-duration: 4000ms;
}

.wave:nth-child(2) {
    animation-duration: 50s;
}

.playing .wave:nth-child(3) {
    animation-duration: 5000ms;
}

.wave:nth-child(3) {
    animation-duration: 45s;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === استایل های مودال === */
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);display:flex;justify-content:center;align-items:center;z-index:1000;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.modal{background-color:#fff;padding:30px 40px;border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,.2);text-align:center;max-width:400px;width:90%}.modal h2{margin-top:0;font-size:2rem}.modal form{display:flex;flex-direction:column;gap:15px;margin-top:20px}.modal input[type=text]{padding:12px;border:1px solid #ccc;border-radius:8px;font-size:1rem}.modal-button{padding:12px;font-size:1.1rem;font-weight:700;color:#fff;background-color:#007bff;border:none;border-radius:8px;cursor:pointer;transition:background-color .2s}.modal-button:hover{background-color:#0056b3}.hidden{display:none}

/* Add IDs for language switching */
#main-title { }
#main-desc { }

@media (max-width: 600px) {
    body {
        padding: 0 !important;
    }
    .main-header {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0 !important;
    }
    .main-header h1 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    .main-header p {
        font-size: 0.9rem;
    }
    .main-card-container {
        margin-top: -1.2rem !important;
        padding-top: 0 !important;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 0;
        max-width: 100vw;
    }
    .e-card {
        width: 90vw;
        max-width: 340px;
        aspect-ratio: 1/1;
        height: auto;
        min-width: 120px;
        min-height: 120px;
        padding: 12px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        margin-bottom: 18px;
    }
    .e-card:last-child {
        margin-bottom: 0;
    }
    .icon {
        width: 3.2em; /* کمی کوچکتر از قبل */
        padding-bottom: 0.5em;
    }
    .infotop, .infotop-text {
        font-size: 1rem;
        margin-top: 6px;
    }
    .name {
        font-size: 0.7rem;
        top: 0.7em;
    }
} 