/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: #1e2a3e;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER (شیشه‌ای) ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff8c00, #ff2e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #1e2a3e;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    padding: 0.4rem 0;
    border-radius: 30px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #ff2e63;
    background: rgba(255,255,255,0.4);
    padding: 0.4rem 1rem;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    color: #1e2a3e;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 80px 20px 20px;
    margin-top: 1px;
    background: rgba(255,255,240,0.3);
    backdrop-filter: blur(8px);
    border-radius: 0 0 50px 50px;
    margin-bottom: 1rem;
    box-shadow: inset 0 -2px 10px rgba(0,0,0,0.02);
}

.hero h1 {
    font-size: 2.8rem;
    margin-top: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff8c00, #ff2e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border-radius: 40px;
    display: inline-block;
}

.hero-signature {
    font-size: 1rem;
    color: #ff2e63;
    font-weight: 600;
}

/* ===== کارت‌ها ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 42px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.05), -8px -8px 20px rgba(255,255,255,0.6);
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 12px 12px 25px rgba(0,0,0,0.08), -12px -12px 25px rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.7);
}

.card-icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #1e2a3e;
    font-weight: 800;
}

.glass-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #2c3e4e;
}

/* ===== دکمه‌ها ===== */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,245,0.5);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #1e2a3e;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.05), -4px -4px 8px rgba(255,255,255,0.7);
}

.btn-card:hover {
    background: rgba(255,140,0,0.7);
    color: white;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1), -2px -2px 5px rgba(255,255,255,0.8);
    transform: scale(1.02);
    border-color: #ff8c00;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e2a3e;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.5);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(4px);
}

/* ===== استایل‌های عمومی مارک‌داون (برای همه صفحات) ===== */
.converted-content h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ff8c00, #ff2e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 1.5rem 0 1rem;
    font-weight: 800;
}

.converted-content h2 {
    font-size: 1.6rem;
    color: #6366F1;
    margin: 1.2rem 0 0.8rem;
    font-weight: 700;
    border-right: 3px solid #6366F1;
    padding-right: 12px;
}

.converted-content h3 {
    font-size: 1.3rem;
    color: #ff8c00;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.converted-content h4 {
    font-size: 1.1rem;
    color: #ff2e63;
    margin: 0.8rem 0 0.4rem;
    font-weight: 600;
}

.converted-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.converted-content strong {
    color: #ff2e63;
    font-weight: 700;
}

.converted-content em {
    color: #6366F1;
    font-style: italic;
}

.converted-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.converted-content a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.converted-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8rem;
}

/* لیست نامرتب */
.converted-content ul {
    margin: 1rem 0;
    padding-right: 1.5rem;
    list-style-type: none;
}

.converted-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.2rem;
}

.converted-content ul li::before {
    content: "•";
    color: #ff8c00;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.converted-content ul ul li::before {
    content: "○";
    color: #ff8c00;
}

.converted-content ul ul ul li::before {
    content: "▪";
    color: #ff8c00;
}

/* لیست مرتب */
.converted-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
    list-style-type: none;
    counter-reset: item;
}

.converted-content ol li {
    margin-bottom: 0.5rem;
    counter-increment: item;
    position: relative;
    padding-right: 1.8rem;
}

.converted-content ol li::before {
    content: counter(item) ".";
    color: #ff8c00;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.converted-content ol ol {
    counter-reset: subitem;
}

.converted-content ol ol li::before {
    content: counter(item) "." counter(subitem) ".";
    counter-increment: subitem;
}

.converted-content ul ul,
.converted-content ol ul,
.converted-content ul ol,
.converted-content ol ol {
    margin: 0.5rem 0;
}

/* نقل قول */
.converted-content blockquote {
    background: rgba(255, 140, 0, 0.08);
    border-right: 4px solid #ff8c00;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 20px;
    font-style: italic;
    color: #2c3e4e;
}

/* کد درون خطی */
.converted-content code {
    background: rgba(0, 0, 0, 0.08);
    color: #e01b52;
    padding: 2px 6px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

/* بلاک کد */
.converted-content pre {
    position: relative;
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 1.5rem 0;
    direction: ltr;
    text-align: left;
    border: 1px solid #333;
}

.converted-content pre code {
    background: transparent;
    color: #e0e0e0;
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: pre;
}

.converted-content pre .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    direction: rtl;
}

.converted-content pre .code-lang {
    background: #ff8c00;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: 'Vazirmatn', sans-serif;
}

.converted-content pre .copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.converted-content pre .copy-btn:hover {
    background: #ff8c00;
    color: #1e2a3e;
}

/* جدول */
.converted-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    overflow: hidden;
}

.converted-content th,
.converted-content td {
    border: 1px solid rgba(255, 140, 0, 0.3);
    padding: 10px;
    text-align: right;
}

.converted-content th {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    font-weight: 700;
}

/* تصویر */
.converted-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1rem 0;
}

/* خط افقی */
.converted-content hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, #ff2e63, transparent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== سایر بخش‌ها ===== */
.quote-message {
    background: rgba(255,255,240,0.4);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 60px;
    text-align: center;
    margin: 2rem 0;
    border-right: 6px solid #ff8c00;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info-table {
    background: rgba(255, 255, 240, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-item {
    text-align: center;
    min-width: 100px;
}

.info-item i {
    font-size: 1.4rem;
    color: #ff2e63;
}

.promo-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.promo-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 1rem;
    text-align: center;
    flex: 1;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.promo-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.4);
}

.promo-card img {
    width: 48px;
    margin-bottom: 8px;
}

.promo-card h4 {
    margin: 8px 0;
    color: #ffb347;
}

.promo-card a {
    color: #ffb347;
    text-decoration: none;
    font-weight: bold;
}

.promo-card a:hover {
    text-decoration: underline;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ff2e63;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none;
}

#backToTop.visible {
    opacity: 1;
}

#backToTop:hover {
    background: #e01b52;
    transform: scale(1.05);
}

.pagination {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}

.page-btn:hover {
    background: #ff2e63;
}

.page-btn.active {
    background: #ff2e63;
}

/* ===== فوتر عمومی ===== */
footer {
    background: rgba(255,255,245,0.4);
    backdrop-filter: blur(12px);
    margin-top: 4rem;
    padding: 2rem 0;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff8c00, #ff2e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1rem 0;
}

.social-footer a {
    display: inline-block;
    transition: 0.2s;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.social-footer a:hover {
    transform: scale(1.1);
}

.footer-link {
    color: #ff2e63;
    text-decoration: none;
    font-weight: bold;
}

.footer-copy {
    font-size: 0.8rem;
    color: #2c3e4e;
    margin-top: 1rem;
}

/* ===== صفحه تکی سابلیمینال ===== */
.single-subliminal {
    margin-top: 80px;
    margin-bottom: 80px;
}

.single-subliminal .glass-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.single-subliminal .meta-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    background: rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.single-subliminal .meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.single-subliminal .audio-wrapper {
    background: rgba(0,0,0,0.1);
    border-radius: 50px;
    padding: 1rem;
    margin: 1rem 0;
}

.single-subliminal .warning-box {
    background: #fff3cd;
    border-right: 5px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 20px;
    margin: 1rem 0;
    text-align: center;
}

/* ===== کارت پیشنهاد (سابلیمینال تصادفی) - اصلاح شده ===== */
.suggestion-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 42px;
    padding: 1.8rem;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.05), -8px -8px 20px rgba(255,255,255,0.6);
}

.suggestion-card .suggestion-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.suggestion-card h3 {
    color: #6366F1;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.suggestion-card h2 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: #1e2a3e;
}

.suggestion-card .btn-card {
    background: rgba(255,255,245,0.5);
    color: #1e2a3e;
}

.suggestion-card .btn-card:hover {
    background: #6366F1;
    color: white;
}

/* ===== تنظیمات فاصله هدر ===== */
.container {
    margin-top: 100px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 40px;
    }
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(20px);
        width: 80%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 0;
        gap: 1.2rem;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero {
        padding: 60px 20px 30px;
    }
    .card-grid {
        gap: 1.5rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    .info-table {
        gap: 0.8rem;
    }
    .info-item {
        min-width: 70px;
        font-size: 0.8rem;
    }
    .promo-card {
        min-width: 140px;
    }
    .single-subliminal {
        margin-top: 100px;
        margin-bottom: 50px;
    }
    .single-subliminal .glass-card {
        padding: 1.2rem;
    }
    .container {
        margin-top: 80px !important;
    }
}