/* استاندارد */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* فونتها */

@font-face {
    font-family: q;
    src: url(./font/IranNastaliq.ttf);
}
@font-face {
    font-family: n;
    src: url(./font/B-NAZANIN.TTF);
}
@font-face {
    font-family: t;
    src: url(./font/Far_TitrBd.ttf);
}

/* خوش آمد گویی */

.hero {
  height: 100vh;
  background-image: url("./image/Welcome.png");
  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: flex-end;

  padding-bottom: 70px;
  box-sizing: border-box;
}

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

.hero-btn {
  position: relative;
  display: inline-block;

  padding: 18px 48px;
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #0b8f3a 0%,
    #ffffff 48%,
    #c1121f 100%
  );

  color: #151515;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;

  text-decoration: none;
  cursor: pointer;
  overflow: hidden;

  border: 2px solid rgba(255, 255, 255, 0.95);

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.42),
    0 4px 0 rgba(90, 0, 0, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.85),
    inset 0 -5px 10px rgba(0, 0, 0, 0.18);

  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.9),
    0 -1px 1px rgba(0, 0, 0, 0.1);

  transition: all 0.28s ease;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;

  width: 55%;
  height: 220%;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.15) 65%,
    transparent 100%
  );

  transform: rotate(25deg);
  transition: all 0.7s ease;
}

.hero-btn:hover {
  transform: translateY(-6px) scale(1.05);

  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.5),
    0 6px 0 rgba(90, 0, 0, 0.25),
    inset 0 5px 10px rgba(255, 255, 255, 0.9),
    inset 0 -6px 12px rgba(0, 0, 0, 0.2);

  filter: saturate(1.15) brightness(1.08);
}

.hero-btn:hover::before {
  left: 130%;
}

.hero-btn:active {
  transform: translateY(-1px) scale(0.98);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(90, 0, 0, 0.25),
    inset 0 3px 8px rgba(255, 255, 255, 0.8),
    inset 0 -4px 9px rgba(0, 0, 0, 0.22);
}

/* home-page */

body.home-page,body.about,body.movie,body.game {
     margin: 0;
      height: 100vh;
      background: linear-gradient(135deg, pink 50%, lightblue 50%);
}

.title{
    width: 100%;
    padding: 120px 20px;
}

.title-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* بخش متن */
.t-1{
    flex: 1;
    direction: rtl;
}

.ti-1{
    font-family: q;
    font-size:50px;
}

.ti-2{
    font-family: q;
    font-size:30px;

}

.ti-3{
    font-family: t;
    font-size:30px;
}

.ti-4{
    font-family: n;
    font-size:30px;
}

/* بخش تصویر */
.t-2{
    flex: 1;
    text-align: center;
}

.t-2 img{
    height: 500px;
    width: 540px;
    border-radius: 50%;
    padding: 30px
}

/* طراحی موبایل */
@media (max-width: 768px){

    .title-container {
        flex-direction: column;
        text-align: center;
    }

    .t-1{
        order: 2;
    }

    .t-2{
        order: 1;
    }

    .ti-1{
        font-size: 22px;
    }

    .ti-2{
        font-size: 20px;
    }

    .ti-3{
        font-size: 18px;
    }

    .ti-4{
        font-size: 15px;
    }

    .t-2 img{
        max-width: 300px;
        max-height: 250px;
    }
}

/* بخش فیلم‌ها */
.Movie {
    display: flex;
    flex-direction: row;
    justify-content: center; /* وسط چین کردن */
    align-items: center;
    gap: 50px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.2);
}

.Movie-one img {
    height: 350px; /* اندازه مناسب */
    width: 450px;
    border-radius: 15px;
    object-fit: cover;
}

.Movie-two { /* اضافه شده برای مدیریت متن و دکمه */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.p-four {
    font-family: n;
    font-size: 28px; /* کمی کوچکتر برای خوانایی بهتر */
    line-height: 1.6;
    text-align: center; /* وسط چین کردن متن */
    margin-bottom: 20px;
}

/* دکمه ویدیو */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif; /* فونت تاهوما برای دکمه */
    color: white;
    background: #2d3436;
    text-decoration: none;
    border-radius: 15px;
    border: 4px solid #fab1a0;
    box-shadow: 0 6px 0 #e17055;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.video-button:hover {
    background: #e17055;
    transform: translateY(2px);
    box-shadow: 0 3px 0 #c0392b;
}

.video-button:hover .icon {
    transform: scale(1.3) rotate(15deg);
}

.video-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #c0392b;
}

/* متن متحرک */
.one {
    padding: 20px;
    font-family: t;
    font-size: 20px;
    animation: one 16s infinite ease-in alternate;
    margin: 20px 0; /* اضافه کردن فاصله بالا و پایین */
}

@keyframes one {
    0% {
        transform: translateX(-700px);
    }
    100% {
        transform: translateX(700px);
    }
}

/* بخش V1 و V2 */
.V1 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px; /* اضافه کردن padding */
}
.V2 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px; /* اضافه کردن padding */
}
/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    
    /* ۱. تغییر چیدمان اصلی به حالت ستونی */
    .Movie {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    /* ۲. تنظیم سایز تصویر برای موبایل */
    .Movie-one img {
        width: 100%;
        max-width: 300px; /* سایز مناسب برای موبایل */
        height: auto;    /* جلوگیری از کشیدگی تصویر */
        border-radius: 15px;
    }

    /* ۳. تنظیمات متن (دقیقاً مشابه حالت قبلی که خواستید) */
    .Movie-two {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .p-four {
        font-size: 17px; /* سایز فونت مطابق با استایل قبلی شما برای موبایل */
        line-height: 1.8;
        text-align: center;
        margin-bottom: 20px;
    }

    /* ۴. تنظیم دکمه برای موبایل */
    .video-button {
        font-size: 1.1rem;
        padding: 10px 24px;
        width: fit-content; /* دکمه فقط به اندازه متن بزرگ شود */
    }

    /* ۵. اصلاح انیمیشن متن متحرک برای جلوگیری از اسکرول افقی در موبایل */
    .one {
        font-size: 16px;
        animation: one-mobile 10s infinite ease-in-alternate;
    }

    @keyframes one-mobile {
        0% { transform: translateX(-50%); }
        100% { transform: translateX(50%); }
    }

    /* ۶. تنظیم بخش‌های V1 و V2 */
    .V1, .V2 {
        flex-direction: column;
        gap: 15px;
    }
}
/* سربرگ */

div.header{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0; 
    z-index: 1000;
    width: 100%;
    height: 130px;
    background: linear-gradient(red, white, green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.h-1, img{
    height: 100px;
    width: 140px;
    border-radius: 50%;
}
p.h-2{
    font-family: q;
    font-size:40px;
}
.h-3 img{
    height: 100px;
    width: 140px;
    border-radius: 50%;
}

@media screen and (max-width:768px){
.heder2{
    display: none;
}
}
.ul-one {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;

  direction: rtl;
}

.ul-one li a {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 12px 22px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;

  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 700;

  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 4px rgba(255, 255, 255, 0.25);

  transition: all 0.3s ease;
}

.ul-one li a:hover {
  transform: translateY(-5px);

  background: linear-gradient(135deg, #0b8f3a, #ffffff, #c1121f);
  color: #1b1b1b;

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 5px rgba(255, 255, 255, 0.65);
}

.nav-icon {
  font-size: 10px;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  div.header {
    height: 85px;
    justify-content: space-between;
    padding: 0 10px;
  }

  .h-1 img,
  .h-3 img {
    width: 65px;
    height: 65px;
  }

  p.h-2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .ul-one {
    gap: 8px;
  }

  .ul-one li a {
    padding: 8px 12px;
    font-size: 12px;
    gap: 4px;
  }

  .nav-icon {
    font-size: 9px;
  }
}

@media screen and (max-width: 480px) {
  div.header {
    height: 75px;
    padding: 0 8px;
  }

  .h-1 img,
  .h-3 img {
    width: 52px;
    height: 52px;
  }

  p.h-2 {
    font-size: 18px;
  }

  .ul-one {
    gap: 5px;
  }

  .ul-one li a {
    padding: 6px 9px;
    font-size: 10px;
    gap: 3px;
  }

  .nav-icon {
    font-size: 8px;
  }
}

/* about */

.about {
  display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px; 
}
.about-1{
  direction: rtl;
    text-align: right;
}
.h-a{
  font-family: t;
    font-size:50px;
}
.a-1{
  font-family: q;
    font-size:50px;
}
.a-2{
  font-family: n;
    font-size:30px;
}
.about-2 img{
  height: 300px;
    width: 340px;
    border-radius: 50%;
    padding: 30px
}
/* تنظیمات مخصوص موبایل (صفحات کوچک‌تر از 768 پیکسل) */
@media (max-width: 768px) {
    .about {
        
        flex-direction: column; 
        
        justify-content: center;
        align-items: center;
        margin-top: 200px;
        padding: 60px 30px;
        text-align: center; 
    }

    .about-1 {
        direction: rtl;
        text-align: center; 
    }

    .h-a {
        font-size: 35px; 
    }

    .a-1 {
        font-size: 30px; 
    }

    .a-2 {
        font-size: 20px; 
    }

    .about-2 img {
        width: 250px;
        height: 250px;
        padding: 15px; 
        margin-bottom: 30px; 
        
    }
}

 /* membership */
 :root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --pink-glow: rgba(255, 105, 180, 0.3);
    --blue-glow: rgba(0, 191, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body.membership {
    /* تصویر پس‌زمینه همراه با گرادیانت صورتی و آبی برای زیبایی */
    background: linear-gradient(135deg, var(--pink-glow), var(--blue-glow)),
                url('./image/Membership.png') no-repeat center center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: #080808;
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 40px;
    text-align: center;
}

.center-card {
    max-width: 500px;
    width: 100%;
}

.center-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #0a0a0a;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: bold;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.small-btn {
    position: absolute;
    top: 150px;
    right: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 30px 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.step {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.step.active {
    display: flex;
    animation: slideIn 0.4s ease;
}

.step h3 {
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    margin-bottom: 10px;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

select option {
    background: #333;
    color: #fff;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.modal-actions button {
    flex: 1;
}

.success-text {
    color: #a8ffb2;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Admin Dashboard */
.admin-card {
    width: 100%;
    max-width: 800px;
    margin-top: 50px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: rgba(255, 255, 255, 0.1);
}

td button {
    padding: 5px 10px;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.edit-btn { background: #ffd700; color: #000; }
.delete-btn { background: #ff4c4c; color: #fff; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card { padding: 20px; }
    .center-card p { font-size: 1rem; }
    .small-btn { position: relative; top: 0; right: 0; margin-bottom: 20px; display: block; width: 100%; }
}
/* فیلمها */
.one{
    padding: 20px;
    font-family: t;
    font-size: 20px;
    animation: one 16s infinite ease-in alternate;
   
}
@keyframes one{
    0%{
        transform: translateX(-700px);
    }
    100%{
        transform: translateX(700px);
    }

}
.V1{
    display: flex;
    flex-direction: row;
    justify-content: space-around ;
    align-items: center;
    padding: 40px 20px;
}
.V2{
    display: flex;
    flex-direction: row;
    justify-content: space-around ;
    align-items: center;
}
@media screen and (max-width:768px){
    .V1{
        flex-direction: column;
    }
}
@media screen and (max-width:768px){
    .V2{
        flex-direction: column;
    }
}
/* game */
/* کانتینر اصلی کارت‌های بازی */
.G1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 50px;
    background-color: #f0f2f5;
}

/* استایل هر کارت بازی */
.G-one {
    background: white;
    width: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.G-one:hover {
    transform: translateY(-10px);
}

/* استایل عکس‌های داخل کارت */
.G-one img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* استایل تیترها */
.G-one h1 {
    font-size: 1.2rem;
    color: #333;
    margin: 15px 0;
    font-family: 'Tahoma', sans-serif;
}

/* استایل دکمه‌های آخ جون بازی */
.G-one button {
    background-color: #ff4757;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.G-one button:hover {
    background-color: #ff6b81;
}

.G-one button a {
    font-weight: bold;
    font-size: 1rem;
    color: white; /* رنگ متن لینک */
    text-decoration: none;
}

/* استایل تیتر بخش بازی‌ها */
.game {
    
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 30px 0;
    color: #2f3542;
}
div.game{
 display: flex;
    flex-direction: row;
    justify-content: center; /* وسط چین کردن */
    align-items: center;
    gap: 50px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.2);

}
/* فوتر */
:root {
  --color-pink-soft: #fff1f2;   /* صورتی خیلی ملایم */
  --color-blue-soft: #e0f2fe;   /* آبی خیلی ملایم */
  --color-accent-green: #15803d; /* سبز زنده برای تیترها */
  --color-text: #1e293b;        /* متن تیره برای خوانایی */
}

.site-footer {
  /* ایجاد گرادیانت رنگی هماهنگ با سایت */
  background: linear-gradient(90deg, var(--color-pink-soft) 0%, var(--color-blue-soft) 100%);
  padding: 50px 20px;
  
  /* خط پرچمی بالای فوتر برای هماهنگی با سایت */
  border-top: 6px solid;
  border-image-source: linear-gradient(to left, #cc0000 33%, #ffffff 33%, #ffffff 66%, #008000 66%);
  border-image-slice: 1;
  
  font-family: Tahoma, sans-serif;
  direction: rtl;
  color: var(--color-text);
}

.footer-container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h3 {
  color: var(--color-accent-green); /* سبزِ زنده */
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid rgba(21, 128, 61, 0.2);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col a {
  display: block;
  color: #475569;
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 500;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--color-accent-green);
  transform: translateX(-5px); /* افکت حرکتی کوچک هنگام هاور */
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: #64748b;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
}


