/* style.css - تصميم موحد لكل الصفحات */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root { --primary: #0F1F3E; --accent: #FFD700; --light: #F8F9FA; --white: #FFFFFF; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { background-color: var(--light); color: var(--primary); min-height: 100vh; direction: rtl; }

/* الهيدر */
header {
    background: var(--primary); padding: 0.8rem 5%; color: white;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); position: sticky; top: 0; z-index: 100;
}
.brand { font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 45px; width: auto; filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)); }

/* الحاويات والعناوين */
.container { padding: 2rem 5%; max-width: 1400px; margin: 0 auto; animation: fadeIn 0.5s; }
.page-title { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: var(--primary); }
.back-btn {
    display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--primary);
    padding: 10px 25px; border-radius: 30px; text-decoration: none;
    font-weight: bold; margin-bottom: 2rem; border: none; font-size: 1rem; cursor: pointer;
}
.back-btn:hover { background: #e6c200; }

/* الشبكات والبطاقات (للقوائم) */
.grid-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; width: 100%; }
.menu-card {
    background: var(--white); border-radius: 20px; padding: 2rem 1.5rem;
    text-align: center; cursor: pointer; transition: 0.4s; text-decoration: none; color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 2px solid transparent;
    display: flex; flex-direction: column; align-items: center; height: 100%;
}
.menu-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.menu-icon {
    width: 80px; height: 80px; background: #f4f6f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
    font-size: 2.2rem; color: var(--primary); transition: 0.4s;
}
.menu-card:hover .menu-icon { background: var(--primary); color: var(--accent); transform: rotate(10deg); }
.menu-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 5px; }
.menu-card p { font-size: 0.9rem; color: #777; }

/* ستايلات العناصر الفرعية (الأقسام المخفية التي تظهر بالجافاسكريبت) */
.sub-section { display: none; animation: fadeIn 0.5s; }

/* ستايلات حاسبة المعدل */
.gpa-box { max-width: 800px; margin: 0 auto; background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid var(--accent); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.main-input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 10px; font-family: 'Cairo'; font-size: 1rem; }
.course-row { display: grid; grid-template-columns: 2fr 1fr 1fr 40px; gap: 10px; margin-bottom: 10px; align-items: center; }
.action-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; margin-top: 10px; font-size: 1rem; }
.btn-calc { background: var(--primary); color: var(--accent); }
.btn-add { background: #f1f2f6; color: var(--primary); }
.result-box { margin-top: 2rem; padding: 1.5rem; background: #f8f9fa; border-radius: 15px; text-align: center; display: none; border: 2px solid var(--accent); }

/* ستايلات الأذكار */
.zikr-card { background: white; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-right: 5px solid var(--accent); margin-bottom: 20px; line-height: 1.8; position: relative; }
.quran-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
.quran-btn { background: white; border: 1px solid #eee; padding: 15px; border-radius: 10px; text-align: center; text-decoration: none; color: var(--primary); font-weight: bold; display: block; transition: 0.3s; }
.quran-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .input-row { grid-template-columns: 1fr; } .course-row { grid-template-columns: 1fr 1fr 40px; } .col-name { display: none; } }
