/* نوار پایین صفحه */
.bottom-nav{
    position:fixed;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:95%;
    height:80px;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(12px);
    border-radius:40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 25px;
    z-index:1000;
}

/* آیتم‌های کوچک */
.nav-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    color:#cfcfcf;
    font-size:14px;
    cursor:pointer;
    transition:0.2s;
}

.nav-item:hover{
    transform:scale(1.12);
    opacity:0.9;
}

/* آیکون‌های سمتین */
.nav-icon{
    width:28px;
    opacity:0.9;
}

/* دکمه وسط */
.nav-center{
    position:relative;
    top:-30px;
}

.home-button{
    width:80px;
    height:80px;
    background:#d86b32;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 0 25px rgba(216,107,50,0.6);
    cursor:pointer;
    transition:0.25s;
}

.home-button:hover{
    transform:scale(1.12);
}

.home-icon{
    width:36px;
    filter:brightness(1000%);
}

.course-card{
    width:280px;
    background:#1e293b;
    border-radius:15px;
    padding:20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
    transition:0.3s;
}

.course-card:hover{
    transform:translateY(-5px);
}

.course-card img{
    width:120px;
    margin-bottom:15px;
}

.course-card h3{
    color:white;
    margin-bottom:10px;
}

.course-card p{
    color:#cbd5e1;
    font-size:14px;
}

.buy-btn{
    margin-top:15px;
    background:#00ff88;
    border:none;
    padding:10px 20px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.course-page { padding: 40px; max-width: 800px; margin: auto; text-align: center; }

.video-container { 
    margin: 30px 0; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,255,136,0.2); 
}

video { width: 100%; }

.buy-btn-big {
    display: inline-block;
    padding: 20px 50px;
    background: #00ff88;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.price-box{
background:#111;
padding:20px;
border-radius:15px;
margin:20px 0;
line-height:2;
font-size:18px;
}

.buy-btn-big{
display:inline-block;
padding:15px 40px;
background:#00ff88;
color:#111;
border-radius:12px;
font-weight:bold;
text-decoration:none;
margin-top:15px;
}

.buy-btn-big:hover { transform: scale(1.05); }

.support-text { color: #888; margin-top: 15px; font-size: 0.9em; }

img {
    max-width: 100%;
    height: auto;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:tahoma;
}

body{
background:#0f172a;
color:white;
line-height:1.6;
}

/* هدر */

header{
background:#020617;
padding:15px 20px;
display:flex;
justify-content:space-between;
align-items:center;
border-bottom:1px solid #1e293b;
}

.logo{
font-size:20px;
font-weight:bold;
color:#38bdf8;
}

nav a{
color:white;
text-decoration:none;
margin-left:20px;
font-size:14px;
}

nav a:hover{
color:#38bdf8;
}

/* سکشن اصلی */

.hero{
text-align:center;
padding:60px 20px;
}

.hero h1{
font-size:28px;
margin-bottom:10px;
}

.hero p{
color:#94a3b8;
}

/* بخش دوره ها */

.courses{
padding:40px 20px;
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:20px;
}

/* کارت دوره */

.course-card{
width:100%;
max-width:320px;
background:#1e293b;
border-radius:18px;
padding:20px;
text-align:center;
transition:0.3s;
cursor:pointer;
}

.course-card:hover{
transform:translateY(-5px);
background:#263246;
}

/* عکس دوره */

.course-img{
width:100%;
max-width:180px;
height:auto;
display:block;
margin:0 auto 15px auto;
border-radius:14px;
}

.course-card h3{
margin-bottom:10px;
}

.course-card p{
font-size:14px;
color:#94a3b8;
}

/* صفحه توضیح دوره */

.course-page{
display:none;
padding:20px;
max-width:900px;
margin:auto;
}

.course-page.active{
display:block;
}

/* ویدیو */

.video-container{
margin:20px 0;
}

.video-container iframe{
width:100%;
height:400px;
border-radius:15px;
border:none;
}

/* قیمت ها */

.pricing{
display:flex;
flex-wrap:wrap;
gap:15px;
margin-top:20px;
}

.price-card{
flex:1;
min-width:150px;
background:#1e293b;
padding:15px;
border-radius:12px;
text-align:center;
}

.price-card h4{
margin-bottom:10px;
}

.price-card button{
margin-top:10px;
background:#38bdf8;
border:none;
padding:8px 15px;
border-radius:8px;
cursor:pointer;
color:black;
font-weight:bold;
}

.price-card button:hover{
background:#0ea5e9;
}

/* مودال ورود */

.auth-modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
align-items:center;
justify-content:center;
z-index:1000;
}

.auth-box{
background:rgba(30,41,59,0.9);
backdrop-filter:blur(10px);
padding:30px;
border-radius:16px;
width:90%;
max-width:350px;
}

.auth-box input{
width:100%;
padding:10px;
margin-top:10px;
border:none;
border-radius:8px;
}

.auth-box button{
width:100%;
margin-top:15px;
padding:10px;
border:none;
background:#38bdf8;
border-radius:8px;
font-weight:bold;
cursor:pointer;
}

.auth-box button:hover{
background:#0ea5e9;
}

/* موبایل */

@media (max-width:600px){

.hero h1{
font-size:22px;
}

.course-card{
max-width:260px;
padding:16px;
}

.course-img{
max-width:140px;
}

.video-container iframe{
height:200px;
}

header{
flex-direction:column;
gap:10px;
}

nav a{
margin-left:10px;
font-size:13px;
}

}

.video-container{
width:100%;
margin-top:20px;
}

.video-container iframe{
width:100%;
height:400px;
border:none;
border-radius:15px;
}

@media(max-width:600px){

.video-container iframe{
height:220px;
}

}

/* ظرف نگهدارنده ویدیو */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* این عدد جادویی برای نسبت 16:9 هست */
    overflow: hidden;
    border-radius: 15px;
    background: #000;
    margin: 20px 0;
}

/* خودِ ویدیو */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= BACK BUTTON ================= */

.back-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #38bdf8, #0ea5e9);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(56,189,248,0.3);
    transition: all .25s ease;
    margin: 25px 0;
}

.back-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(56,189,248,0.45);
    background: linear-gradient(45deg, #0ea5e9, #38bdf8);
}

.back-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* نسخه موبایل */
@media(max-width:600px){
    .back-btn {
        font-size: 14px;
        padding: 10px 22px;
        margin: 15px 0;
    }
}

.bubble-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.bubble {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bubble:hover {
  transform: scale(1.08);
}

.bubble .title {
  font-size: 15px;
  margin-bottom: 8px;
}

.bubble .value {
  font-size: 20px;
  font-weight: bold;
}

.value.positive {
  color: #16ff16;
}

.value.negative {
  color: #ff3a3a;
}

.theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #222;
  color: white;
  font-size: 18px;
  z-index: 999;
}

.light-mode{
background:#f1f5f9;
color:#111;
}

.light-mode .card{
background:white;
color:#111;
}

.light-mode .header{
background:rgba(255,255,255,0.8);
}

.light-mode .bottom-nav{
background:rgba(255,255,255,0.7);
}

.light-mode .bubble{
background:rgba(0,0,0,0.05);
color:#111;
}

.positive{
color:#22c55e;
}

.negative{
color:#ef4444;
}

.value{
  font-size:20px;
  font-weight:bold;
}

.value.positive{
  color:#22c55e !important;
}

.value.negative{
  color:#ef4444 !important;
}

.value.positive{
color:#22c55e;
}

.value.negative{
color:#ef4444;
}
