/*
Theme Name: Sobhan Theme
Author: Sobhan
Description: قالب اختصاصی و ریسپانسیو سایت سبحان
Version: 1.0
*/

:root {
    --bg-color: #08080a;
    --accent-color: #ff5e00;
    --accent-glow: rgba(255, 94, 0, 0.25);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #d1d1d1;
    --code-bg: #121216;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { width: 100%; min-height: 100vh; background-color: var(--bg-color); overflow-x: hidden; }

body { color: var(--text-primary); font-family: 'Vazirmatn', sans-serif; display: flex; justify-content: center; padding: 40px 15px; position: relative; }

/* Background */
.bg-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; overflow: hidden; pointer-events: none; }
.bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('bg.jpg') no-repeat center center; background-size: cover; z-index: 1; }
.bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(8, 8, 10, 0.88) 0%, rgba(15, 15, 20, 0.94) 100%); z-index: 2; }
.glow-orb { position: absolute; width: 350px; height: 350px; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; filter: blur(60px); opacity: 0.7; z-index: 3; }
.orb-top-right { top: -100px; right: -100px; }
.orb-bottom-left { bottom: -100px; left: -100px; }

/* Main Wrapper */
.wrapper { z-index: 10; width: 100%; max-width: 750px; margin: auto 0; }

/* Profile Section */
.profile-section { text-align: center; margin-bottom: 35px; }
.avatar-container { position: relative; width: 110px; height: 110px; margin: 0 auto 20px; }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--card-border); z-index: 2; position: relative; }
.avatar-glow { position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; background: linear-gradient(45deg, var(--accent-color), #ffaa00); z-index: 1; opacity: 0.8; filter: blur(5px); animation: rotateGlow 6s linear infinite; }
@keyframes rotateGlow { 100% { transform: rotate(360deg); } }

.profile-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; background: linear-gradient(120deg, #fff, #eee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.profile-bio { font-size: 0.95rem; color: var(--text-secondary); font-weight: 300; line-height: 1.6; max-width: 450px; margin: 0 auto; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* Dividers & Cards */
.section-divider { font-size: 1.2rem; font-weight: 800; color: var(--accent-color); margin: 40px 0 30px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 15px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-color), transparent); }

.guide-header { text-align: center; margin-bottom: 40px; }
.main-title { font-size: 1.9rem; font-weight: 900; margin-bottom: 12px; background: linear-gradient(120deg, #ffffff, #d1d1d1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.intro-card { background: linear-gradient(135deg, rgba(255, 94, 0, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%); border: 1px solid rgba(255, 94, 0, 0.2); padding: 22px; border-radius: 20px; margin-bottom: 35px; backdrop-filter: blur(10px); }
.step-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 30px; margin-bottom: 30px; backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
.step-badge { background: var(--accent-color); color: #fff; padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; margin-bottom: 15px; display: inline-block; }

/* Links Container */
.links-container { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 30px; }
.link-card { display: flex; align-items: center; justify-content: space-between; background: var(--card-bg); border: 1px solid var(--card-border); padding: 15px 20px; border-radius: 18px; text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
.link-card:hover { transform: translateY(-3px); border-color: rgba(255, 94, 0, 0.4); background: rgba(255, 255, 255, 0.06); }
.link-icon { font-size: 1.4rem; color: var(--accent-color); width: 24px; }
.footer { text-align: center; margin-top: 50px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.25); letter-spacing: 2px; }

/* Responsive */
@media (max-width: 600px) {
    body { padding: 25px 12px; }
    .profile-name { font-size: 1.5rem; }
    .main-title { font-size: 1.5rem; }
}

/* ===== چیدمان تیتر + همبرگری ===== */
.header-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}
.header-title-wrapper .profile-name {
    margin: 0 !important;
}

/* ===== دکمه همبرگری ===== */
.hamburger-menu {
    position: relative;
}
.ham-btn {
    list-style: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 157, 0, 0.08);
    border: 1px solid rgba(255, 157, 0, 0.25);
    border-radius: 10px;
    color: #ff9d00;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ham-btn::-webkit-details-marker {
    display: none;
}
.hamburger-menu[open] .ham-btn {
    background: #ff9d00;
    border-color: #ff9d00;
    color: #17120a;
    box-shadow: 0 0 18px rgba(255, 157, 0, 0.5);
}

/* ===== باکس اورلی ===== */
.overlay-menu-container {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: rgba(18, 14, 10, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 157, 0, 0.25);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 157, 0, 0.08);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.hamburger-menu[open] .overlay-menu-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: overlayIn 0.28s ease;
}
@keyframes overlayIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== لیست اصلی منو ===== */
ul.header-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
}
ul.header-menu li {
    list-style: none;
}

/* لینک‌های ساده (بدون زیرمجموعه) */
.menu-item-simple > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: all 0.2s ease;
}
.menu-item-simple > a:hover {
    background: rgba(255, 157, 0, 0.15);
    color: #ff9d00 !important;
    border-color: rgba(255, 157, 0, 0.35);
    padding-right: 18px;
}

/* ===== آیتم‌های دارای زیرمجموعه ===== */
.submenu-details {
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.submenu-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
}
.submenu-summary::-webkit-details-marker {
    display: none;
}
.submenu-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.submenu-summary:hover {
    background: rgba(255, 157, 0, 0.1);
    color: #ff9d00;
}

.arrow-icon {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}
.submenu-details[open] .arrow-icon {
    transform: rotate(180deg);
    color: #ff9d00;
}
.submenu-details[open] .submenu-summary {
    background: rgba(255, 157, 0, 0.08);
    color: #ff9d00;
}

/* زیرمنو (پیش‌فرض بسته، با کلیک باز/بسته می‌شه چون details بومیه) */
.sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 10px 8px 10px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: submenuFade 0.25s ease;
}
@keyframes submenuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    border-radius: 7px;
    transition: all 0.2s ease;
}
.sub-menu li a:hover {
    background: rgba(255, 157, 0, 0.12);
    color: #ff9d00 !important;
    padding-right: 16px;
}

.item-icon {
    font-size: 10px;
    color: #ff9d00;
    opacity: 0.85;
}

/* موبایل: عرض کمی جمع‌وجورتر */
@media (max-width: 480px) {
    .overlay-menu-container {
        width: 220px;
        right: -10px;
    }
}