/* ===== BASE ===== */

*{
box-sizing:border-box;
}

body{
font-family:'Segoe UI', Tahoma, sans-serif;
background:#f5f7fa;
margin:0;
color:#333;
}

/* ===== HEADER ===== */

header{
background:#556B00;
color:white;
text-align:center;
padding:40px 20px;
}

header h1{
font-size:30px;
margin:0 0 10px;
}

header p{
max-width:700px;
margin:auto;
font-size:16px;
}

/* ===== CONTAINER ===== */

.container{
max-width:1100px;
margin:auto;
padding:20px;
}

/* ===== TABS ===== */

.tabs{
display:flex;
justify-content:center;
gap:10px;
margin:25px auto;
border-bottom:1px solid #eee;
}

.tabs a{
padding:10px 18px;
text-decoration:none;
color:#556B00;
font-weight:600;
}

.tabs a.active{
border-bottom:2px solid #556B00;
}

/* ===== NEXT PRAYER ===== */

.next-prayer-box{
background:#556B00;
color:white;
padding:25px;
border-radius:10px;
text-align:center;
margin:20px 0;
}

#nextPrayerName{
font-size:26px;
font-weight:bold;
}

#countdown{
font-size:36px;
font-weight:bold;
margin-top:5px;
}

/* ===== INFO CARDS ===== */

.info-cards{
display:flex;
gap:15px;
flex-wrap:wrap;
margin-top:20px;
}

.info-card{
background:white;
padding:15px;
border-radius:8px;
flex:1;
min-width:140px;
text-align:center;
}

.info-card span{
font-size:12px;
color:#777;
}

.info-card strong{
display:block;
margin-top:5px;
font-size:18px;
}

/* ===== PRAYER GRID ===== */

.prayer-grid{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:15px;
margin-top:20px;
}

.prayer-card{
background:white;
padding:18px;
border-radius:10px;
text-align:center;
}

.prayer-name{
font-size:14px;
color:#666;
}

.prayer-time{
font-size:20px;
font-weight:bold;
}

/* highlight */

.next{
background:#556B00;
color:white;
}

/* ===== TABLE ===== */

.table-wrapper{
width:100%;
overflow-x:auto;
-webkit-overflow-scrolling:touch;
}


table{
width:100%;
border-collapse:collapse;
margin-top:20px;
background:white;
}

th{
background:#556B00;
color:white;
padding:10px;
}

td{
padding:10px;
text-align:center;
border-bottom:1px solid #eee;
}

/* ===== LINKS ===== */

.cities{
display:flex;
flex-wrap:wrap;
gap:10px;
}

.cities a{
background:#f1f1f1;
padding:8px 12px;
border-radius:6px;
text-decoration:none;
color:#333;
}

.cities a:hover{
background:#556B00;
color:white;
}

/* ===== BREADCRUMB ===== */

.breadcrumb{
margin:15px auto;
max-width:1100px;
font-size:14px;
}

.breadcrumb a{
color:#556B00;
text-decoration:none;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

.prayer-grid{
grid-template-columns:repeat(2,1fr);
}

.info-cards{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:10px;
}

header h1{
font-size:24px;
}

#countdown{
font-size:28px;
}


table{
font-size:12px;
}

th, td{
padding:6px;
}

.info-card{
padding:12px;
border-radius:8px;
font-size:14px;
}

body{
background:#eef1f4;
}

}

/* ===== COUNTRIES GRID ===== */

.countries-grid-new{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
margin-top:30px;
}

.countries-grid-new a{
background:#fff;
padding:25px;
border-radius:16px;
text-align:center;
text-decoration:none;
color:#333;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:0.25s;
display:block;
}

.countries-grid-new a:hover{
transform:translateY(-5px);
background:#556B00;
color:#fff;
}

/* ===== MODERN HEADER ===== */

.main-header{
background:#556B00;
padding:12px 0;
}

.nav-container{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 15px;
}

.logo a{
color:#fff;
font-size:18px;
font-weight:bold;
text-decoration:none;
}

.nav-right{
display:flex;
align-items:center;
gap:15px;
}

.nav-right a{
color:#fff;
text-decoration:none;
font-size:14px;
}

.menu-btn{
background:none;
border:none;
color:#fff;
font-size:20px;
cursor:pointer;
display:none;
}

/* MOBILE */

@media(max-width:768px){

.nav-right a{
display:none;
}

.menu-btn{
display:block;
}

}

/* ===== HEADER PRO ===== */

.main-header{
background:linear-gradient(135deg,#556B00,#6b8400);
position:sticky;
top:0;
z-index:1000;
box-shadow:0 4px 15px rgba(0,0,0,0.15);
}

.nav-container{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
padding:12px 20px;
}

.logo a{
color:#fff;
font-weight:bold;
font-size:20px;
text-decoration:none;
}

.nav-links{
display:flex;
gap:20px;
}

.nav-links a{
color:#fff;
text-decoration:none;
font-size:14px;
transition:0.2s;
}

.nav-links a:hover{
opacity:0.8;
}

/* MENU BUTTON */

.menu-toggle{
display:none;
background:none;
border:none;
color:#fff;
font-size:22px;
cursor:pointer;
}

/* MOBILE */

@media(max-width:768px){

.nav-links{
display:none;
position:absolute;
top:60px;
left:0;
width:100%;
background:#556B00;
flex-direction:column;
padding:15px;
}

.nav-links a{
padding:10px 0;
border-bottom:1px solid rgba(255,255,255,0.1);
}

.menu-toggle{
display:block;
}

.nav-links.active{
display:flex;
}

}

.nav-links a.active{
border-bottom:2px solid #fff;
padding-bottom:3px;
}

.hero-prayer{
background:linear-gradient(135deg,#556B00,#6b8400);
color:white;
padding:25px;
border-radius:16px;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin:20px 0;
flex-wrap:wrap;
}

.hero-left{
flex:1;
}

.hero-name{
font-size:26px;
font-weight:bold;
}

.hero-time{
font-size:34px;
font-weight:bold;
}

.hero-right{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.mini-card{
background:rgba(255,255,255,0.15);
padding:10px 14px;
border-radius:10px;
text-align:center;
min-width:70px;
}

.mini-card span{
font-size:12px;
opacity:0.8;
display:block;
}

.mini-card strong{
font-size:14px;
}

@media(max-width:768px){

.hero-prayer{
flex-direction:column;
text-align:center;
}

.hero-right{
justify-content:center;
}

}

/* ===== NEXT PRAYER HERO UPGRADE ===== */

.next-prayer-box{
background:linear-gradient(135deg,#556B00,#6b8400);
color:white;
padding:30px;
border-radius:20px;
margin:25px 0;
box-shadow:0 20px 50px rgba(0,0,0,0.25);
position:relative;
overflow:hidden;
}

/* glow effect */
.next-prayer-box::before{
content:"";
position:absolute;
top:-50%;
left:-50%;
width:200%;
height:200%;
background:radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
animation:rotateGlow 10s linear infinite;
}

@keyframes rotateGlow{
0%{ transform:rotate(0deg); }
100%{ transform:rotate(360deg); }
}

/* top */
.next-top{
display:flex;
justify-content:space-between;
font-size:14px;
opacity:0.9;
margin-bottom:10px;
z-index:2;
position:relative;
}

/* center */
.next-center{
text-align:center;
position:relative;
z-index:2;
}

.next-name{
font-size:30px;
font-weight:bold;
}

.next-count{
font-size:44px;
font-weight:800;
margin-top:8px;
letter-spacing:2px;
animation:softPulse 2s infinite;
}

@keyframes softPulse{
0%{ transform:scale(1); }
50%{ transform:scale(1.03); }
100%{ transform:scale(1); }
}

/* bottom */
.next-bottom{
text-align:center;
font-size:13px;
opacity:0.85;
margin-top:10px;
position:relative;
z-index:2;
}

/* mobile */
@media(max-width:768px){
.next-count{ font-size:32px; }
.next-name{ font-size:22px; }
}

.next-count{
font-size:32px;
}

.next-name{
font-size:22px;
}

}

/* ===== PRAYER CARDS CLEAN PRO ===== */

.prayer-grid{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:15px;
margin-top:25px;
}

/* الكارت */
.prayer-card{
background:#fff;
padding:18px;
border-radius:16px;
text-align:center;
transition:0.25s;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
border:1px solid #f0f0f0;
}

/* hover احترافي */
.prayer-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

/* الاسم */
.prayer-name{
font-size:13px;
color:#777;
margin-bottom:6px;
}

/* الوقت */
.prayer-time{
font-size:22px;
font-weight:700;
color:#222;
}

/* ===== NEXT PRAYER (هادئ ومحترف) ===== */

.prayer-card.next{
background:#f6fbe9;
border:2px solid #556B00;
}

/* خط فوق */
.prayer-card.next::before{
content:"";
display:block;
width:50px;
height:5px;
background:#556B00;
margin:0 auto 10px;
border-radius:10px;
}

/* الاسم */
.prayer-card.next .prayer-name{
color:#556B00;
font-weight:600;
}

/* الوقت */
.prayer-card.next .prayer-time{
color:#556B00;
font-size:26px;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

.prayer-grid{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.prayer-card{
padding:14px;
}

.prayer-time{
font-size:18px;
}

}

.prayer-card img,
.prayer-card i{
font-size:26px;
margin-bottom:8px;
display:block;
}

/* ده المربع الخفيف الل حوالين كروت الصلاة لو احتاجنا نشيله بعد كده */

.prayer-grid{
background:#f9fafb;
padding:20px;
border-radius:20px;
}

.prayer-icon{
margin-bottom:10px;
display:flex;
justify-content:center;
}

.prayer-icon i{
font-size:26px;
color:#556B00;
transition:0.2s;
}

/* hover */
.prayer-card:hover .prayer-icon i{
transform:scale(1.1);
}

/* next */
.prayer-card.next .prayer-icon i{
color:#556B00;
transform:scale(1.15);
}

.prayer-card.next{
box-shadow:0 15px 35px rgba(85,107,0,0.25);
}

#card-Fajr i{ color:#4b7bec; }      /* أزرق فجر */
#card-Sunrise i{ color:#f59e0b; }   /* أصفر */
#card-Dhuhr i{ color:#fbbf24; }     /* ذهبي */
#card-Asr i{ color:#38bdf8; }       /* سماوي */
#card-Maghrib i{ color:#fb923c; }   /* برتقالي */
#card-Isha i{ color:#6366f1; }      /* بنفسجي */

.prayer-card.next{
animation:pulse 2s infinite;
}

@keyframes pulse{
0%{ transform:scale(1); }
50%{ transform:scale(1.03); }
100%{ transform:scale(1); }
}

.prayer-card.next i{
color:#556B00;
filter:brightness(0.9);
}

.prayer-card.next{
background:linear-gradient(135deg,#f6fbe9,#eef5d8);
}

.prayer-card{
transition:all 0.25s ease;
}

.prayer-card:hover{
transform:translateY(-6px) scale(1.02);
}

/* ===== STICKY NEXT RESPONSIVE ===== */

.sticky-next{
position:fixed;
left:0;
width:100%;
background:#1f2937;
color:#fff;
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 20px;
font-size:15px;
z-index:9999;
box-shadow:0 8px 20px rgba(0,0,0,0.3);
transition:0.3s ease;
}

/* ===== DESKTOP (تحت الهيدر) ===== */

@media(min-width:769px){

.sticky-next{
top:60px;
transform:translateY(-120%);
opacity:0;
}

.sticky-next.show{
transform:translateY(0);
opacity:1;
}

}

/* ===== MOBILE (تحت الشاشة) ===== */

@media(max-width:768px){

.sticky-next{
bottom:0;
transform:translateY(100%);
border-radius:12px 12px 0 0;
}

.sticky-next.show{
transform:translateY(0);
}

}

.sticky-next{
opacity:0;
pointer-events:none;
}

.sticky-next.show{
opacity:1;
pointer-events:auto;
}

/* ألوان حسب الصلاة */
.sticky-fajr{ background:#4b7bec; }
.sticky-sunrise{ background:#f59e0b; }
.sticky-dhuhr{ background:#fbbf24; color:#000; }
.sticky-asr{ background:#38bdf8; }
.sticky-maghrib{ background:#fb923c; }
.sticky-isha{ background:#6366f1; }

/* ===== DYNAMIC THEME ===== */

.theme-fajr{
background:#eef4ff;
}

.theme-dhuhr{
background:#fefce8;
}

.theme-asr{
background:#f0f9ff;
}

.theme-maghrib{
background:#fff7ed;
}

.theme-isha{
background:#0f172a;
color:#fff;
}

/* Dark adjustments */
.theme-isha .prayer-card{
background:#1e293b;
color:#fff;
}

.theme-isha .sticky-next{
background:#020617;
}

.prayer-grid{
background:#fefce8;
}

/* ===== NEXT BOX DYNAMIC ===== */

.theme-fajr .next-prayer-box{
background:linear-gradient(135deg,#4b7bec,#6fa8ff);
}

.theme-dhuhr .next-prayer-box{
background:linear-gradient(135deg,#fbbf24,#f59e0b);
}

.theme-asr .next-prayer-box{
background:linear-gradient(135deg,#38bdf8,#0ea5e9);
}

.theme-maghrib .next-prayer-box{
background:linear-gradient(135deg,#fb923c,#f97316);
}

.theme-isha .next-prayer-box{
background:linear-gradient(135deg,#1e293b,#020617);
}

.faq{
margin-top:30px;
}

.faq-item{
background:#ffffffcc; /* أبيض شفاف */
backdrop-filter: blur(4px);
padding:15px;
border-radius:14px;
margin-bottom:12px;
border:1px solid rgba(0,0,0,0.05);
box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.faq-item h3{
font-size:16px;
margin-bottom:5px;
}

.nearby-cities{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:15px;
}

.city-chip{
padding:8px 14px;
background:#f1f5f9;
border-radius:12px;
text-decoration:none;
color:#333;
font-size:14px;
transition:0.2s;
border:1px solid transparent;
}

.city-chip:hover{
background:#e2e8f0;
transform:translateY(-2px);
}

.city-chip:active{
transform:scale(0.95);
}

.nav-container{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
}

/* البحث */
.header-search{
position:relative;
}

.header-search input{
padding:10px 14px;
border-radius:20px;
border:none;
outline:none;
width:200px;
font-size:14px;
background:#f1f5f9;
}

/* النتائج */
#searchResults{
position:absolute;
top:115%;
left:0;
width:260px;
background:white;
border-radius:15px;
box-shadow:0 15px 40px rgba(0,0,0,0.15);
display:none;
max-height:300px;
overflow-y:auto;
z-index:999;
}

/* كل نتيجة */
.search-item{
padding:12px 15px;
cursor:pointer;
font-size:14px;
transition:0.2s;
}

.search-item:hover{
background:#f1f5f9;
padding-left:20px;
}

@media(max-width:768px){
.header-search{
display:none;
}
}

.theme-fajr .prayer-grid{ background:rgba(75,123,236,0.08); }
.theme-dhuhr .prayer-grid{ background:rgba(251,191,36,0.08); }
.theme-asr .prayer-grid{ background:rgba(56,189,248,0.08); }
.theme-maghrib .prayer-grid{ background:rgba(251,146,60,0.08); }
.theme-isha .prayer-grid{ background:rgba(99,102,241,0.08); }

.azan-alert{
position:fixed;
bottom:20px;
right:20px;
background:#556B00;
color:#fff;
padding:15px 20px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
font-size:14px;
opacity:0;
transform:translateY(20px);
transition:0.3s;
z-index:9999;
}

.azan-alert.show{
opacity:1;
transform:translateY(0);
}

.header-right{
display:flex;
align-items:center;
gap:12px;
}

.notify-btn{
background:transparent;
border:none;
cursor:pointer;
font-size:20px;
color:#fff;
position:relative;
display:flex;
align-items:center;
justify-content:center;
padding:6px;
transition:0.3s;
}

/* hover */
.notify-btn:hover{
color:#FFD700;
transform:scale(1.1);
}

/* لما يتفعل */
.notify-btn.active{
color:#4CAF50;
}

/* النقطة الصغيرة */
.notify-dot{
position:absolute;
top:2px;
right:2px;
width:8px;
height:8px;
background:#ff3b3b;
border-radius:50%;
display:none;
}

/* لما يتفعل تظهر */
.notify-btn.active .notify-dot{
display:block;
}

/* animation خفيف */
.notify-btn.active{
animation:pulse 1.5s infinite;
}

@keyframes pulse{
0%{transform:scale(1);}
50%{transform:scale(1.15);}
100%{transform:scale(1);}
}

.seo-content {
font-size:13px;
color:#666;
margin:5px 0 10px;
line-height:1.5;
}

h2 {
font-size:18px;
margin-top:20px;
}

.container h2 {
margin-top:25px;
}

.fajr-link {
display:inline-block;
margin-top:5px;
font-size:13px;
color:#556B00;
text-decoration:none;
}

.fajr-link:hover {
text-decoration:underline;
}

.main-answer {
font-size:18px;
margin-bottom:15px;
}

.back-link {
display:inline-block;
margin-top:20px;
color:#556B00;
text-decoration:none;
font-size:14px;
}

.back-link:hover {
text-decoration:underline;
}

.zakat-box {
max-width:400px;
margin:20px auto;
display:flex;
flex-direction:column;
gap:10px;
}

.zakat-box input {
padding:10px;
border-radius:8px;
border:1px solid #ccc;
}

.zakat-box button {
padding:12px;
background:#556B00;
color:#fff;
border:none;
border-radius:8px;
cursor:pointer;
}

.zakat-box button:hover {
opacity:0.9;
}




/* Desktop */
.nav-links {
display:flex;
gap:15px;
}

/* Mobile */
@media (max-width:768px){

.nav-links{
display:none;
flex-direction:column;
background:#556B00;
position:absolute;
top:60px;
left:0;
width:100%;
z-index:999;
}

.nav-links.show{
display:flex;
}

.menu-toggle{
display:block;
font-size:24px;
background:none;
border:none;
color:#fff;
}

}

.menu-toggle{
font-size:26px;
}



.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.month-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.month-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  color: #556B00;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

/* Desktop */
.months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Tablet */
@media (max-width: 992px) {
  .months-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
.calendar-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

@media(max-width:900px){
.calendar-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.calendar-grid{
grid-template-columns:1fr;
}
}





.day-box{
background:#fafafa;
border-radius:10px;
padding:10px 5px;
text-align:center;
transition:0.2s;
border:1px solid #eee;
}

.day-box:hover{
background:#f0f0f0;
}

/* اليوم */
.day-name{
font-size:10px;
color:#999;
margin-bottom:3px;
}

/* الهجري (الكبير) */
.hijri-day{
font-size:22px;
font-weight:bold;
color:#222;
}

.gregorian-day{
font-size:10px;
color:#999;
margin-top:2px;
}

/* اليوم الحالي */
.today{
background:linear-gradient(135deg,#FFD700,#FFA500);
color:#000;
font-weight:bold;
border:2px solid #ffcc00;
transform:scale(1.05);
}

/* رمضان */
.ramadan{
border:2px solid #4CAF50;
background:#f8fff8;
}


.month-card.ramadan{
border:2px solid #4CAF50;
background:#f8fff8;
}

.month-card.hajj{
border:2px solid #FF9800;
background:#fff8f0;
}

.month-title{
text-align:center;
font-weight:bold;
margin-bottom:12px;
color:#556B00;
font-size:20px;
border-bottom:2px solid #eee;
padding-bottom:5px;
}

.today-row {
  background: #e6f4d7;
  font-weight: bold;
  border-left: 4px solid #556B00;
}
