/* ===== استودیو نووا — استایل اصلی ===== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;900&display=swap');

:root{
  --bg: #050b18;
  --bg-elevated: #0b1626;
  --surface: #101f36;
  --surface-alt: #16304f;
  --border: rgba(160, 190, 230, 0.14);
  --border-strong: rgba(160, 190, 230, 0.28);
  --primary: #2e6bff;
  --primary-light: #5aa9ff;
  --primary-deep: #123a8f;
  --text: #eaf2ff;
  --text-muted: #93a8c9;
  --text-faint: #5d7196;
  --radius-sm: 6px;
  --radius-md: 10px;
  --edge: clamp(14px, 3.2vw, 48px);
  --max-width: 1280px;
  --shadow-soft: 0 18px 40px -20px rgba(0,0,0,0.55);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(46,107,255,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(90,169,255,0.10), transparent 55%);
  color: var(--text);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--edge);
}

:focus-visible{
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== هدر ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 11, 24, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{ width: 40px; height: 40px; }
.brand .brand-name{
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap: 18px;
}
.header-link{
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.header-link:hover, .header-link.active{
  color: var(--text);
  border-color: var(--primary-light);
}
.back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.back-btn:hover{ background: var(--surface-alt); }
.back-btn:active{ transform: translateY(1px); }
.back-btn svg{ width: 16px; height: 16px; }

/* ===== اسلایدر ===== */
.hero-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.4;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-top: 22px;
  border: 1px solid var(--border);
}
.hero-slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slider .slide.active{ opacity: 1; }
.hero-slider .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(5,11,24,0.85), transparent 42%);
  pointer-events:none;
}
.slider-dots{
  position: absolute;
  bottom: 22px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-light);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.slider-dots button.active{
  background: var(--primary-light);
  width: 26px;
  border-radius: 6px;
}

/* ===== بخش معرفی استودیو ===== */
.about-section{
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-logo{
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 26px rgba(46,107,255,0.35));
}
.bio-card{
  max-width: 880px;
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px clamp(20px, 4vw, 42px);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.bio-card::before{
  content:"";
  position:absolute;
  top:-1px; right: 40px;
  width: 60px; height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}
.bio-card h1{
  font-size: 1.5rem;
  margin: 0 0 14px;
  font-weight: 700;
}
.bio-card p{
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ===== بخش عناوین با دکمه مشاهده همه ===== */
.section-heading{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}
.section-heading h2{
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-inline-start: 14px;
}
.section-heading h2::before{
  content:"";
  position:absolute;
  right: 0; top: 3px; bottom: 3px;
  width: 4px;
  background: var(--primary);
  border-radius: 3px;
}
.see-all{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 0.9rem;
  color: var(--primary-light);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s ease;
}
.see-all:hover{ background: rgba(90,169,255,0.1); }

.content-block{ padding: 40px 0; }

/* ===== کارت‌های محصول ===== */
.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card{
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, border-color .22s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.product-card .cover{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}
.product-card .cover img{ width:100%; height:100%; object-fit: cover; }
.product-card .card-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}
.card-kind{
  display:inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  color: var(--primary-light);
  background: rgba(46,107,255,0.14);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.product-card h3{
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
  line-height: 1.5;
}
.product-card .card-date{
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.card-view-btn{
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}
.card-view-btn:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* کارت مقاله - چیدمان افقی برای تمایز از کارت بازی/اپ */
.article-card{
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.article-card:hover{ border-color: var(--border-strong); transform: translateY(-3px); }
.article-card .cover{
  flex: 0 0 150px;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
}
.article-card .cover img{ width:100%; height:100%; object-fit:cover; }
.article-card .card-body{ padding: 16px 18px 16px 4px; flex:1; min-width:0; display:flex; flex-direction:column; }
.article-card h3{
  font-size: 1.02rem;
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.6;
}
.article-card .card-date{ font-size: 0.82rem; color: var(--text-faint); margin-bottom: 12px; display:block; }
.article-card .card-view-btn{ margin-top: auto; align-self: flex-start; padding: 8px 22px; }
.article-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== دکمه همکاری تمام‌عرض ===== */
.cta-block{ padding: 20px 0 8px; }
.cta-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  width: 100%;
  padding: 22px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary), var(--primary-light));
  background-size: 200% 100%;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-position .5s ease;
}
.cta-button:hover{ background-position: 100% 0; }
.cta-button svg{ width: 20px; height: 20px; }

.social-row{
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 8px;
}
.social-btn{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-btn:hover{
  background: var(--surface-alt);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.social-btn svg{ width: 20px; height: 20px; }

/* ===== فوتر ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 40px;
}
.site-footer .wrap{
  text-align:center;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* ===== صفحه مقالات ===== */
.page-title-row{
  padding: 44px 0 8px;
}
.page-title-row h1{
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.page-title-row p{
  color: var(--text-muted);
  margin:0;
  font-size:0.95rem;
}
.search-box{
  margin: 24px 0 36px;
  position: relative;
}
.search-box input{
  width: 100%;
  padding: 15px 48px 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}
.search-box input::placeholder{ color: var(--text-faint); }
.search-box svg{
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height:20px;
  color: var(--text-faint);
  pointer-events:none;
}
.scroll-area{
  max-height: 74vh;
  overflow-y: auto;
  padding-inline-end: 8px;
  padding-bottom: 8px;
}
/* اسکرول سفارشی دسکتاپ */
.scroll-area::-webkit-scrollbar{ width: 8px; }
.scroll-area::-webkit-scrollbar-track{ background: transparent; }
.scroll-area::-webkit-scrollbar-thumb{
  background: var(--surface-alt);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.scroll-area::-webkit-scrollbar-thumb:hover{ background: var(--primary-deep); background-clip: content-box; }
.scroll-area{ scrollbar-width: thin; scrollbar-color: var(--surface-alt) transparent; }
@media (max-width: 720px){
  .scroll-area{ -webkit-overflow-scrolling: touch; max-height: none; overflow: visible; }
}
.empty-state{
  text-align:center;
  color: var(--text-faint);
  padding: 60px 0;
}

/* ===== صفحه نمایش محصول ===== */
.product-hero{
  padding: 32px 0 0;
}
.product-hero-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding: 10px 0 12px;
}
.product-hero-center .poster{
  width: 230px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.product-hero-center .poster img{ width:100%; height:100%; object-fit:cover; }
.product-hero-center h1{
  margin: 20px 0 10px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  max-width: 720px;
}
.product-hero-center .meta-line{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.meta-line .dot-sep{ width:4px; height:4px; border-radius:50%; background: var(--text-faint); }

.section-label{
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 18px;
  padding-inline-start: 12px;
  position: relative;
}
.section-label::before{
  content:"";
  position:absolute;
  right:0; top:2px; bottom:2px;
  width:3px;
  background: var(--primary);
  border-radius:3px;
}

.gallery-strip{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.gallery-item{
  position: relative;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.gallery-item:hover{ border-color: var(--primary-light); transform: translateY(-2px); }
.gallery-item img{
  height: 230px;
  width: auto;
  display: block;
}
.gallery-item .play-badge{
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(5,11,24,0.28);
}
.gallery-item .play-badge span{
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(46,107,255,0.9);
  display:flex; align-items:center; justify-content:center;
}
.gallery-item .play-badge svg{ width: 18px; height: 18px; color: #fff; margin-inline-start: 2px; }
.gallery-strip::-webkit-scrollbar{ height: 8px; }
.gallery-strip::-webkit-scrollbar-track{ background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb{ background: var(--surface-alt); border-radius: 8px; }

/* ===== لایت‌باکس (نمایش تمام‌صفحه گالری/ویدئو) ===== */
.lightbox-overlay{
  position: fixed; inset: 0;
  background: rgba(5,11,24,0.92);
  z-index: 300;
  display:flex; align-items:center; justify-content:center;
  padding: 30px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox-overlay.open{ opacity: 1; pointer-events: auto; }
.lightbox-content{ max-width: min(920px, 92vw); max-height: 88vh; width: 100%; }
.lightbox-content img{
  width: 100%; height: auto; max-height: 88vh; object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-content .video-wrap{
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius-md); overflow: hidden;
}
.lightbox-content .video-wrap iframe{ width:100%; height:100%; border:0; }
.lightbox-close{
  position: fixed; top: 22px; inset-inline-end: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
}
.lightbox-close svg{ width: 18px; height: 18px; }

.description-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2.1;
}
.description-card h1, .description-card h2, .description-card h3{ color: var(--text); }
.description-card img{ max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.description-card a{ color: var(--primary-light); text-decoration: underline; }

.links-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.links-row{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}
.link-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: background .2s ease, border-color .2s ease;
}
.link-btn:hover{ background: var(--primary-deep); border-color: var(--primary); }
.link-btn svg{ width:16px; height:16px; }

.product-section{ padding: 30px 0; }
.product-section:first-of-type{ padding-top: 30px; }

/* ===== واکنش‌گرا: تبلت ===== */
@media (max-width: 1024px){

  .card-grid{ grid-template-columns: repeat(3, 1fr); }
  .article-list{ grid-template-columns: 1fr; }
}

/* ===== واکنش‌گرا: موبایل ===== */
@media (max-width: 720px){
  .site-header .wrap{ height: 64px; }
  .brand img{ width: 34px; height:34px; }
  .brand .brand-name{ font-size: 1rem; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-section{ padding: 48px 0 40px; }
  .bio-card{ padding: 22px 18px; }
  .section-heading h2{ font-size: 1.15rem; }
  .see-all{ padding: 7px 12px; font-size: 0.82rem; }
  .article-card{ flex-direction: column; }
  .article-card .cover{ flex-basis: auto; aspect-ratio: 16/9; }
  .product-hero-center h1{ font-size: 1.4rem; }
  .cta-button{ font-size: 0.96rem; padding: 18px; }
  .gallery-item img{ height: 170px; }
}
