/* ==========================================================
   حسین نامی - استایل اصلی
   ========================================================== */

:root{
  --navy-900:#0a1730;
  --navy-800:#0d1d3f;
  --navy-700:#132a5c;
  --navy-card:#0f2148;
  --gold:#f0b429;
  --gold-light:#f6c752;
  --red:#c62828;
  --red-dark:#a81f1f;
  --white:#ffffff;
  --text-muted:#c7cede;
  --border-soft:rgba(240,180,41,.25);
  --radius-lg:16px;
  --radius-pill:50px;
  --container:1280px;
}

*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:'Vazirmatn', Tahoma, sans-serif;
  background:linear-gradient(160deg,#0a1730 0%,#0d1f45 55%,#0a1730 100%);
  color:var(--white);
  direction:rtl;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit;}
button{font-family:inherit;border:none;background:none;cursor:pointer;}
ul{list-style:none;}
img{max-width:100%;display:block;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* ==================== HEADER ==================== */
.site-header{
  padding:22px 0;
  position:relative;
  z-index:100;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo-block{line-height:1.5;}
.logo-signature{
  font-family:'Dancing Script', cursive;
  color:var(--gold);
  font-size:22px;
  font-weight:700;
  margin-bottom:-4px;
}
.logo-name{
  font-size:20px;
  font-weight:800;
  color:var(--white);
}
.logo-title{
  font-size:11px;
  color:var(--text-muted);
  white-space:nowrap;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.main-nav > a, .nav-dropdown > a{
  padding:10px 16px;
  font-size:14.5px;
  font-weight:500;
  color:var(--white);
  border-radius:var(--radius-pill);
  transition:.2s;
  display:flex;
  align-items:center;
  gap:4px;
}
.main-nav > a:hover, .nav-dropdown > a:hover{
  background:rgba(255,255,255,.06);
}
.chev{font-size:11px;}

.nav-btn-red{
  background:var(--red);
  font-weight:600;
}
.nav-btn-red:hover{background:var(--red-dark);}

.nav-btn-outline{
  border:1.5px solid rgba(255,255,255,.25);
}

.nav-btn-gold{
  background:var(--gold);
  color:var(--navy-900);
  font-weight:700;
}
.nav-btn-gold:hover{background:var(--gold-light);}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  padding:8px;
}
.hamburger span{
  width:24px;height:2.5px;background:var(--white);border-radius:2px;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  position:fixed;
  top:0; right:-100%;
  width:78%;
  max-width:320px;
  height:100vh;
  background:var(--navy-800);
  padding:90px 28px 28px;
  z-index:200;
  transition:right .3s ease;
  box-shadow:-10px 0 40px rgba(0,0,0,.4);
}
.mobile-menu.open{right:0;}
.mobile-menu a{
  padding:14px 4px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:16px;
  font-weight:500;
}

/* ==================== HERO ==================== */
.hero{
  padding:20px 0 60px;
  position:relative;
}

.rank-badges{
  display:flex;
  justify-content:flex-end;
  gap:14px;
  margin-bottom:40px;
}
.badge-btn{
  border:1.5px solid var(--border-soft);
  color:var(--gold-light);
  font-size:13.5px;
  font-weight:600;
  padding:10px 20px;
  border-radius:var(--radius-pill);
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  transition:.2s;
}
.badge-btn:hover{background:rgba(240,180,41,.08);}
.trophy{font-size:14px;}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
}

.hero-text{max-width:560px;}
.hero-text h1{
  font-size:64px;
  font-weight:900;
  color:var(--gold);
  line-height:1.15;
  margin-bottom:14px;
}
.hero-text h2{
  font-size:24px;
  font-weight:700;
  color:var(--white);
  margin-bottom:22px;
  line-height:1.5;
}
.hero-desc{
  font-size:16px;
  line-height:2;
  color:var(--text-muted);
  margin-bottom:26px;
}
.signature{
  font-family:'Dancing Script', cursive;
  color:var(--gold);
  font-size:26px;
  border-bottom:2px solid var(--gold);
  display:inline-block;
  padding-bottom:6px;
  margin-bottom:34px;
  opacity:.9;
}

.hero-buttons{
  display:flex;
  gap:14px;
}
.btn{
  padding:15px 30px;
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  display:inline-block;
  transition:.2s;
}
.btn-red{background:var(--red);color:var(--white);}
.btn-red:hover{background:var(--red-dark);}
.btn-outline{
  border:1.5px solid rgba(255,255,255,.3);
  color:var(--white);
  background:rgba(255,255,255,.03);
}
.btn-outline:hover{background:rgba(255,255,255,.08);}

/* Hero image - اصلاح جایگاه دایره زرد و عکس در دسکتاپ */
.hero-image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:520px;
}
.image-glow{
  position:absolute;
  width:420px;
  height:420px;
  background:radial-gradient(circle, var(--gold) 0%, rgba(240,180,41,.15) 70%, transparent 70%);
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  filter:blur(2px);
  opacity:.9;
  z-index:1;
}
.dot-pattern{
  position:absolute;
  top:10%;
  left:10%;
  width:160px;
  height:160px;
  background-image:radial-gradient(var(--gold) 1.6px, transparent 1.6px);
  background-size:16px 16px;
  opacity:.6;
  z-index:1;
}
.profile-photo{
  position:relative;
  z-index:2;
  width:100%;
  max-width:400px;
  aspect-ratio:1/1.05;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.profile-photo.no-photo{
  background:linear-gradient(160deg,#16255094,#0d1d3f);
  border:2px dashed var(--border-soft);
}
.profile-photo.no-photo::after{
  content:"عکس پروفایل را در images/profile.png قرار دهید";
  color:var(--text-muted);
  font-size:13px;
  text-align:center;
  padding:20px;
  display:block;
  margin:auto;
}

/* Stats bar */
.stats-bar{
  margin-top:60px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-lg);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:30px 10px;
}
.stat-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:0 10px;
  border-left:1px solid rgba(255,255,255,.08);
}
.stat-item:last-child{border-left:none;}
.stat-icon{font-size:30px;color:var(--gold);}
.stat-number{
  font-size:24px;
  font-weight:800;
  color:var(--white);
}
.stat-label{
  font-size:13px;
  color:var(--text-muted);
  white-space:nowrap;
}

/* ==================== BOTTOM NAV (mobile only) ==================== */
.bottom-nav{
  display:none;
}
@media (max-width:968px){

  .container{padding:0 16px;}

  .main-nav{display:none;}
  .hamburger{display:flex;}
  .mobile-menu{display:flex;}

  .header-inner{
    flex-direction:row-reverse;
    justify-content:space-between;
  }
  .logo-block{
    text-align:center;
    margin:0 auto;
  }
  .site-header{padding:10px 0;}

  .rank-badges{
    display:grid;
    grid-template-columns:1fr 1fr;
    justify-content:stretch;
    margin-bottom:12px;
    gap:8px;
  }
  .badge-btn{
    justify-content:center;
    text-align:center;
    font-size:12px;
    padding:10px 8px;
    white-space:normal;
    line-height:1.3;
  }

  .hero{padding:5px 0 70px;}

  .hero-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:10px;
  }

  .hero-image{
    order:-1;
    min-height:auto;
    margin-bottom:4px;
  }
  
  /* کوچک‌تر کردن عکس و هاله زرد در موبایل برای جا شدن در یک صفحه */
  .profile-photo{
    max-width:160px;
    aspect-ratio:1/1;
    border-radius:50%;
    margin:0 auto;
  }
  .image-glow{
    width:180px;
    height:180px;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
  }
  .dot-pattern{display:none;}

  .hero-text{
    max-width:100%;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .hero-text h1{font-size:30px; margin-bottom:4px;}
  .hero-text h2{font-size:13px; font-weight:600; max-width:300px; margin-bottom:0;}
  .hero-desc{display:none;}
  .signature{display:none;}

  .hero-buttons{
    flex-direction:column;
    width:100%;
    max-width:300px;
    gap:8px;
    margin-top:10px;
  }
  .btn{width:100%; text-align:center; padding:10px; font-size:14px;}

  .stats-bar{display:none;}

  .bottom-nav{
    display:flex;
    position:fixed;
    bottom:0; left:0; right:0;
    background:var(--navy-800);
    border-top:1px solid rgba(255,255,255,.08);
    z-index:150;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-item{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    font-size:10px;
    color:var(--text-muted);
    padding:4px 2px;
    border-radius:8px;
  }
  .bn-icon{font-size:16px;}
  .bn-item.active{
    background:var(--red);
    color:var(--white);
  }
}

@media (max-width:400px){
  .hero-text h1{font-size:32px;}
  .rank-badges{gap:10px;}
}

/* Overlay when mobile menu open */
.menu-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  z-index:190;
}
.menu-overlay.open{display:block;}

/* ==========================================================
   استایل بخش فروشگاه آموزشی (Shop Section)
   ========================================================== */
   
/* تنظیم گرید برای دسکتاپ: ۳ ستون در هر ردیف (کل ۶ کارت در ۲ ردیف ۳‌تایی) */
.dummy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* تبدیل کارت به لینک کلیک‌خور تمام‌صفحه */
.dummy-card {
  display: block;
  text-decoration: none;
  background: var(--navy-card);
  border: 1px solid rgba(240, 180, 41, 0.15);
  border-radius: var(--radius-lg);
  padding: 35px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.dummy-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.03);
  box-shadow: 0 15px 35px rgba(240, 180, 41, 0.1);
}

/* استایل دایره و عکس داخل آن */
.card-image {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(240, 180, 41, 0.08);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 0.3s;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* برای اینکه عکس کل دایره را به خوبی پر کند */
}

.dummy-card:hover .card-image {
  background: var(--gold);
}

.dummy-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.dummy-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================
   تنظیمات ریسپانسیو برای موبایل
   ========================================================== */
@media (max-width: 968px) {
  .dummy-grid {
    /* تغییر به ۲ ستون: در نتیجه ۶ کارت دقیقاً در ۳ ردیف ۲تایی چیده می‌شوند */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
  
  .dummy-card {
    padding: 24px 16px;
  }
  
  .card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
  
  .dummy-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .dummy-card p {
    font-size: 12.5px;
  }
}


/* ==========================================================
   استایل فوتر جذاب - حسین نامی
   ========================================================== */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(240, 180, 41, 0.2);
  padding: 60px 0 25px;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
/* مخفی کردن فوتر اصلی در نسخه موبایل */
@media screen and (max-width: 968px) {
  .site-footer {
    display: none !important;
  }
}
@media screen and (max-width: 968px) {
  .site-footer {
    display: none !important;
  }
}
.footer-col h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

/* بخش آخرین اخبار در فوتر */
.footer-news-item {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-news-title {
  display: block;
  font-size: 13.5px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.footer-news-title:hover {
  color: var(--gold);
}

.footer-news-date {
  font-size: 11.5px;
  color: var(--gold-light);
  opacity: 0.8;
}

/* بخش نماد اعتماد الکترونیک (Enamad) */
.enamad-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  display: inline-block;
  transition: 0.3s;
}

.enamad-box:hover {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.02);
}

.enamad-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

.enamad-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* خط زیرین فوتر و کپی‌رایت */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ==========================================================
   ریسپانسیو و مخفی‌سازی فوتر در موبایل (به دلیل وجود نوار پایین)
   ========================================================== */
@media (max-width: 400px) {
  /* مخفی کردن کامل فوتر در موبایل */
  .site-footer {
    display: none !important;
  }
}
