
/* تنظیمات متغیرها */
:root {
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(to bottom, #0f172a, #1e293b);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    --primary-color: #6366f1; /* Indigo */
    --accent-color: #3b82f6; /* Blue */
    
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --mystery-color: #a855f7; /* Purple */
    
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ریست و پایه */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    direction: rtl;
    padding: 1rem;
}

/* پس‌زمینه متحرک */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #4f46e5;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: #db2777;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #0891b2;
    opacity: 0.2;
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* کانتینر اصلی */
.container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* پترن نقطه‌ای روی کارت برای بافت بهتر */
.glass-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* نوار وضعیت */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 2;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.status-dot.online {
    background-color: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: blink 2s infinite;
}

.status-dot.offline {
    background-color: var(--danger-color);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* هدر */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    display: inline-flex;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #a5b4fc;
}

.main-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    /* افکت درخشش متن */
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.3);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* دکمه‌ها و کارت‌ها */
a { text-decoration: none; }

.card-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7); 
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1rem;
    transition: all 0.3s var(--ease-elastic);
    cursor: pointer;
    z-index: 1;
}

/* افکت چرخش نور دور دکمه */
.shine-border {
    position: absolute;
    inset: -1.5px;
    border-radius: 21px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 20%, rgba(255, 255, 255, 0.7) 50%, transparent 80%);
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    animation: rotateShine 6s linear infinite;
    pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateShine {
    0% { --angle: 0deg; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { --angle: 360deg; opacity: 0; }
}

.btn-media:hover .shine-border {
    animation-duration: 3s;
    opacity: 1;
}

.card-btn:active {
    transform: scale(0.96);
}

.card-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

/* دکمه هیرو (ویژه) */
.btn-hero {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
}

.btn-hero:hover {
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-hero:hover .btn-glow {
    opacity: 0.3;
}

/* آیکون باکس‌ها */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}

.btn-hero .icon-box {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    border: none;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

/* رنگ‌های آیکون */
.icon-box.info { 
    background: rgba(6, 182, 212, 0.15); 
    color: var(--info-color);
    border-color: rgba(6, 182, 212, 0.2);
}
.icon-box.warning { 
    background: rgba(245, 158, 11, 0.15); 
    color: var(--warning-color); 
    border-color: rgba(245, 158, 11, 0.2);
}
.icon-box.mystery { 
    background: rgba(168, 85, 247, 0.15); 
    color: var(--mystery-color); 
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}
.icon-box.disabled { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

/* محتوای متنی */
.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.btn-hero .title { font-size: 1.125rem; }

.desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* فلش انتهای دکمه هیرو */
.arrow-icon {
    color: rgba(255,255,255,0.3);
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-hero:hover .arrow-icon {
    transform: translateX(-4px);
    color: white;
}

/* جداکننده */
.divider {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* استایل جدید متن جداکننده */
.divider-text {
    padding: 0 1rem;
    font-size: 1.1rem; /* بزرگتر کردن متن */
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #a5b4fc, #67e8f9); /* گرادینت رنگی */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(103, 232, 249, 0.1);
}

/* بج (Badge) */
.badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.badge.new {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    animation: pulse 2s infinite;
}

.badge.hot {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

/* دکمه غیرفعال */
.btn-disabled {
    opacity: 0.6;
    cursor: default;
    background: transparent;
    border-style: dashed;
}

.btn-disabled:hover {
    transform: none;
    background: transparent;
    border-color: rgba(255,255,255,0.05);
}

/* فوتر */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* انیمیشن ورود */
.media-list .card-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-elastic) forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 640px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 24px;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .btn-hero {
        padding: 1rem;
    }
    
    .icon-box {
        width: 42px;
        height: 42px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
}
