/* ===== فونت‌های سفارشی ===== */
@font-face {
    font-family: 'Diba';
    src: url('../fonts/Diba.woff2') format('woff2'),
         url('../fonts/Diba.woff') format('woff'),
         url('../fonts/Diba.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gramafon';
    src: url('../fonts/Gramafon.woff2') format('woff2'),
         url('../fonts/Gramafon.woff') format('woff'),
         url('../fonts/Gramafon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== کلاس‌های فونت ===== */
.font-diba {
    font-family: 'Diba', 'Vazirmatn', sans-serif !important;
}

.font-gramafon {
    font-family: 'Gramafon', 'Vazirmatn', sans-serif !important;
}

/* ===== پس‌زمینه ===== */
body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0533 50%, #0d1b3e 100%);
    min-height: 100vh;
}

/* ===== گلس کارد ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

.glass-header {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== دکمه طلایی ===== */
.gold-btn {
    background: linear-gradient(135deg, #ffd700 0%, #f4c430 50%, #b8860b 100%);
    color: #0a0a1a;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.gold-btn-hero {
    background: linear-gradient(135deg, #ffd700 0%, #f4c430 50%, #b8860b 100%);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
}

.gold-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
}

/* ===== لینک بیشتر ===== */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.more-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(-5px);
}

/* ===== عنوان بخش ===== */
.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ffd700, #f4c430, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* ===== نقطه چاکرا ===== */
.chakra-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.chakra-dot:hover {
    transform: scale(1.4);
}

/* ===== لوگوی هیرو ===== */
.hero-logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.hero-logo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #39ff14, #ffd700, #39ff14, #ffd700);
    background-size: 300% 300%;
    animation: logoRingSpin 3s linear infinite, logoRingGlow 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes logoRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoRingGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.hero-logo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 0 30px rgba(57, 255, 20, 0.3), 
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.hero-logo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== انیمیشن‌ها ===== */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chakra-pulse {
    animation: chakraPulse 3s ease-in-out infinite;
}

@keyframes chakraPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.6); }
}

/* ===== کارت مقاله ===== */
.article-card {
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-image {
    transition: transform 0.5s ease;
}

/* ===== کارت پادکست ===== */
.podcast-card {
    transition: all 0.4s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===== کارت مدیتیشن ===== */
.meditation-card {
    transition: all 0.4s ease;
}

.meditation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===== کارت نظرات ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===== پیام کائنات ===== */
.universe-message-card {
    position: relative;
}

.universe-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

.universe-blur-overlay:hover {
    background: rgba(16, 185, 129, 0.25);
}

.universe-blur-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== پیام روزانه ===== */
.daily-message-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.02));
}

/* ===== پلیر سراسری ===== */
#globalAudioPlayer {
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(30px);
}

#globalAudioPlayer.show {
    transform: translateY(0);
}

#progressBar:hover #progressHandle {
    opacity: 1 !important;
}

/* استایل input range */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffd700;
    border-radius: 50%;
    margin-top: -5px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

input[type="range"]::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffd700;
    border-radius: 50%;
    border: none;
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== اسکرول‌بار سفارشی ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd700, #b8860b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* ===== انتخاب متن ===== */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .hero-logo-container {
        width: 120px;
        height: 120px;
    }
    
    #globalAudioPlayer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}