/*
Theme Name: Almamoon Cards
Author: Almamoon Network
Description: Marketing Card Designer for Almamoon Network
Version: 1.1 PRO
Text Domain: almamoon
*/

/* ==================================================
   🎨 ROOT VARIABLES
================================================== */
:root{
  --primary:#0B2C8A;
  --secondary:#1CA7EC;
  --accent:#F4C430;
  --dark:#081f5c;
  --bg:#f5f7fb;
  --text:#222;
}

/* ==================================================
   🧱 GLOBAL BASE
================================================== */
*,
*::before,
*::after{box-sizing:border-box;}

body{
  margin:0;
  font-family:'Cairo',sans-serif;
  direction:rtl;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ==================================================
   🧭 HEADER (Merged + Optimized)
================================================== */
.site-header{
  background:var(--primary);
  height:60px;
  padding:12px 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.header-inner{
  max-width:1200px;
  width:100%;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.site-logo img{
  width:45px;
  height:45px;
  object-fit:contain;
  border-radius:8px;
}

.site-title{
  margin:0;
  font-size:22px;
  font-weight:700;
}

.site-title a{
  color:#fff;
  text-decoration:none;
}

/* ==================================================
   🎯 HERO
================================================== */
.hero{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  padding:40px 20px;
  text-align:center;
}

.hero h2{margin:0 0 10px;font-size:22px;}
.hero p{margin:0;font-size:15px;opacity:.95;}

/* ==================================================
   🔘 CTA
================================================== */
.home-cta{text-align:center;margin:30px 0;}

.home-cta a{
  display:inline-block;
  background:var(--accent);
  color:#000;
  padding:14px 30px;
  border-radius:12px;
  font-size:18px;
  font-weight:bold;
  text-decoration:none;
  box-shadow:0 6px 15px rgba(0,0,0,0.15);
}

/* ==================================================
   📦 CONTAINERS
================================================== */
.info-section,
.designer-wrapper{
  padding:30px 15px;
  max-width:1100px;
  margin:auto;
}

/* ==================================================
   🧩 CARDS GRID
================================================== */
.info-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:15px;
}

.info-card{
  background:#fff;
  border-radius:14px;
  padding:20px;
  text-align:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.info-card h3{
  margin:0 0 10px;
  font-size:16px;
  color:var(--primary);
}

.info-card p{
  margin:0 0 12px;
  font-size:14px;
  color:#555;
}

.info-card a{
  display:block;
  width:100%;
  margin:8px auto 0;
  padding:12px 14px;
  background:var(--accent);
  color:#000;
  border-radius:8px;
  font-weight:bold;
  font-size:14px;
  text-decoration:none;
}

/* ==================================================
   🎨 TEMPLATES STRIP (Unified)
================================================== */
.templates-strip{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin:15px auto 25px;
  max-width:360px;
  overflow-x:auto;
}

.template-thumb{
  min-width:90px;
  height:90px;
  border-radius:10px;
  overflow:hidden;
  border:3px solid transparent;
  cursor:pointer;
  background:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
  transition:.2s;
}

.template-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.template-thumb.active{
  border-color:var(--primary);
  background:#eef4ff;
}

/* ==================================================
   🧾 DESIGNER INPUTS
================================================== */
.designer-inputs{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:20px;
}

.input-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  box-shadow:0 4px 15px rgba(0,0,0,0.06);
}

.input-card label{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  font-weight:bold;
  color:var(--primary);
}

.input-card input{
  width:100%;
  padding:14px;
  font-size:17px;
  border-radius:10px;
  border:2px solid #ddd;
  font-family:'Cairo',sans-serif;
}

.input-card input:focus{
  outline:none;
  border-color:var(--primary);
  background:#fafbff;
}

/* ==================================================
   🎨 CANVAS BOX
================================================== */
.designer-box{
  background:#fff;
  border-radius:14px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* ==================================================
   🔘 ACTION BUTTONS
================================================== */
.designer-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-top:25px;
}

.designer-btn{
  width:320px;
  max-width:90%;
  padding:14px 30px;
  font-size:18px;
  font-weight:bold;
  border:none;
  border-radius:12px;
  cursor:pointer;
  color:#fff;
  box-shadow:0 6px 15px rgba(0,0,0,0.2);
  transition:.2s;
}

.designer-btn:hover{transform:translateY(-2px);}
.download-btn{background:#0B2C8A;}
.whatsapp-btn{background:#25D366;}


/* ==================================================
   📚 DAILY ULTRA GALLERY (PRO)
================================================== */

.daily-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:25px;
}

.daily-card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  transition:.35s ease;
  background:#fff;
}

.daily-card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.daily-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.daily-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.65),transparent);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  transition:.35s ease;
}

.daily-card:hover .daily-overlay{
  opacity:1;
}

.daily-download{
  margin-bottom:14px;
  background:linear-gradient(135deg,#0B2C8A,#1CA7EC);
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:10px;
  cursor:pointer;
  font-family:Cairo;
  font-weight:bold;
}



/* ==================================================
   🦶 FOOTER PRO
================================================== */
.almamoon-footer-pro{
  background:#0B2C8A;
  color:#fff;
  margin-top:40px;
}

.almamoon-footer-pro .footer-inner{
  max-width:1100px;
  margin:auto;
  padding:30px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-links a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  position:relative;
}

.footer-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:#fff;
  transition:.3s;
}

.footer-links a:hover::after{width:100%;}

.footer-bottom{
  text-align:center;
  padding:15px;
  background:#081f60;
  font-size:13px;
  opacity:.9;
}

/* ==================================================
   💻 DESKTOP ENHANCEMENTS
================================================== */
@media(min-width:768px){
  .hub-grid{grid-template-columns:repeat(3,1fr);}
}

@media(min-width:992px){

  .hero{padding:60px 20px;}
  .hero h2{font-size:28px;}
  .hero p{font-size:17px;}

  .info-grid{grid-template-columns:repeat(3,1fr);}
  .designer-wrapper{max-width:1200px;}

  .templates-strip{
    justify-content:center;
    overflow-x:visible;
  }

  .template-thumb{
    min-width:110px;
    height:110px;
  }

  .designer-box{
    margin-top:30px;
    min-height:300px;
  }

  .designer-inputs{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }
}

@media(max-width:768px){
  .site-logo img{width:34px;height:34px;}
  .site-title{font-size:18px;}
}
/* ===============================
   🌙 DAILY CLEAN MODE
================================= */

.daily-gallery{
  margin-top:0;
}

/* اخفاء شريط القوالب في daily */
body.daily .templates-strip{
  display:none !important;
}

/* اخفاء صندوق المعاينة الفارغ */
body.daily .designer-box{
  display:none !important;
}
.daily-gallery{
max-width:1100px;
margin:auto;
background:#fff;
padding:25px;
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,0.08);
}
/* ===============================
   🎬 DAILY SLIDER PRO
================================= */

.daily-viewer{
  max-width:750px;
  margin:20px auto;
  text-align:center;
}

.daily-main{
  position:relative;
  background:#fff;
  border-radius:16px;
  padding:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.daily-main img{
  width:100%;
  border-radius:12px;
  user-select:none;
}

.daily-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#0B2C8A;
  color:#fff;
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:18px;
}

.daily-prev{ right:10px; }
.daily-next{ left:10px; }

.daily-thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
  padding-bottom:6px;
}

.daily-thumbs img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
  opacity:.6;
  border:2px solid transparent;
}

.daily-thumbs img.active{
  opacity:1;
  border-color:#0B2C8A;
}
/* ==================================================
   🚀 CARDS PAGE — ULTRA PREMIUM LOOK
================================================== */

/* خلفية ناعمة جداً */
body.page-template-cards{
  background:
  radial-gradient(circle at 20% 10%, rgba(28,167,236,.08), transparent 40%),
  radial-gradient(circle at 80% 20%, rgba(11,44,138,.08), transparent 40%),
  var(--bg);
}


/* ===============================
   ✨ HERO تحسين
================================= */
.hero{
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.15),transparent);
  pointer-events:none;
}


/* ===============================
   🧩 GRID — شكل حديث
================================= */
.info-grid{
  gap:22px;
}


/* ===============================
   📦 CARD ULTRA STYLE
================================= */
.info-card{
  position:relative;
  transition:.35s cubic-bezier(.2,.7,.2,1);
  border:1px solid rgba(0,0,0,.04);
}

/* Glow داخلي خفيف */
.info-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(140deg,rgba(28,167,236,.08),transparent 40%);
  opacity:0;
  transition:.35s;
}

/* Hover احترافي */
.info-card:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 25px 50px rgba(11,44,138,.12);
}

.info-card:hover::before{
  opacity:1;
}


/* ===============================
   🔘 أزرار داخل الكارد
================================= */
.info-card a{
  transition:.25s;
  position:relative;
  overflow:hidden;
}

/* shimmer effect */
.info-card a::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:120%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent);
  transition:.6s;
}

.info-card a:hover::after{
  left:120%;
}

.info-card a:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,0,0,.18);
}


/* ===============================
   🧠 CTA زر رئيسي
================================= */
.home-cta a{
  position:relative;
  overflow:hidden;
}

.home-cta a::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.25),transparent);
  opacity:0;
  transition:.3s;
}

.home-cta a:hover::before{
  opacity:1;
}


/* ===============================
   🌊 دخول ناعم للبطاقات
================================= */
.info-card{
  animation:cardFade .6s ease forwards;
  opacity:0;
  transform:translateY(25px);
}

.info-card:nth-child(2){animation-delay:.08s;}
.info-card:nth-child(3){animation-delay:.16s;}
.info-card:nth-child(4){animation-delay:.24s;}
.info-card:nth-child(5){animation-delay:.32s;}

@keyframes cardFade{
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* ==================================================
   🚀 HUB ULTRA PRO — /cards/ PAGE
================================================== */

body.page-cards{
  background:linear-gradient(180deg,#f5f7fb,#eef2f9);
}

/* ===============================
   🧭 HUB HERO
================================= */

.hub-hero{
  background:linear-gradient(135deg,#0B2C8A,#1CA7EC);
  color:#fff;
  padding:50px 20px;
  border-radius:0 0 30px 30px;
  text-align:center;
  box-shadow:0 20px 50px rgba(11,44,138,.25);
}

.hub-hero h1{
  margin:0;
  font-size:26px;
  font-weight:800;
}

.hub-hero p{
  margin-top:10px;
  opacity:.9;
  font-size:15px;
}

/* ===============================
   📦 HUB GRID ULTRA
================================= */

.hub-grid{
  max-width:1100px;
  margin:25px auto 30px; /* ✅ بدون قيمة سالبة */
  padding:0 15px;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}


/* ===============================
   🧩 HUB CARD ULTRA
================================= */

.hub-card{
  position:relative;
  background:#fff;
  border-radius:22px;
  padding:24px 20px;
  text-align:center;
  overflow:hidden;
  cursor:pointer;
  transition:.35s ease;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.hub-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#0B2C8A22,#1CA7EC22);
  opacity:0;
  transition:.35s;
}

.hub-card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 20px 45px rgba(0,0,0,.18);
}

.hub-card:hover::before{
  opacity:1;
}

/* ===============================
   🎨 ICON AREA
================================= */

.hub-icon{
  width:70px;
  height:70px;
  margin:auto;
  border-radius:18px;
  background:linear-gradient(135deg,#0B2C8A,#1CA7EC);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  margin-bottom:14px;
}

/* ===============================
   📝 TEXTS
================================= */

.hub-card h3{
  margin:0 0 8px;
  color:#0B2C8A;
  font-size:18px;
  font-weight:800;
}

.hub-card p{
  margin:0;
  font-size:14px;
  color:#666;
}

/* ===============================
   🔘 BUTTON STYLE
================================= */

.hub-card a{
  display:inline-block;
  margin-top:16px;
  padding:10px 18px;
  border-radius:12px;
  background:linear-gradient(135deg,#0B2C8A,#1CA7EC);
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  font-size:14px;
  transition:.25s;
}

.hub-card a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* ===============================
   ✨ GLASS EFFECT (OPTIONAL)
================================= */

.hub-card.glass{
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.75);
}

/* ===============================
   💻 DESKTOP GRID
================================= */

@media(min-width:768px){
  .hub-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(min-width:1024px){
  .hub-grid{
    grid-template-columns:repeat(3,1fr);
    gap:22px;
  }

  .hub-card{
    padding:30px 24px;
  }

  .hub-icon{
    width:78px;
    height:78px;
    font-size:32px;
  }
}
.cards-hub a{
  text-decoration:none !important;
}