/**
 * ============================================
 * استایل‌های پایه - هدر، فوتر، کتگوری، کانتینر
 * ============================================
 */

/* هدر بالای سایت */
.top-header {
    background: rgba(15,15,26,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-back {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.header-back:hover { color: #fff; }

.header-logo {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}
.header-logo-sub { color: var(--accent); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #bbb;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.header-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* منوی کشویی هدر */
.header-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 48px;
    left: 0;
    background: #1e1e38;
    border-radius: 14px;
    padding: 12px 0;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    display: none;
    z-index: 200;
}
.dropdown-menu.active { display: block; }

.dropdown-title {
    padding: 10px 18px;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dropdown-phone {
    padding: 10px 18px;
    font-size: 13px;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    direction: ltr;
    text-align: right;
}
.dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.dropdown-logout:hover { background: rgba(231,76,60,0.1); }
.dropdown-create { padding: 8px 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.dropdown-create input {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    margin-bottom: 6px;
}
.dropdown-create button {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* کتگوری‌ها */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 20px 10px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}
.cat-chip {
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    color: #888;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 7px;
}
.cat-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* فوتر */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 12px;
}

/* کانتینر */
.container { max-width: 1300px; margin: 0 auto; padding: 10px 20px 30px; }




/* باکس جستجوی sticky */
.search-bar-sticky {
    position: sticky;
    top: 60px;
    z-index: 99;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 14px;      /* فقط بالا - هرچی خواستی کم و زیاد کن */
    padding-bottom: 10px;  /* فقط پایین - دست نخوره */
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-bar-sticky.hidden {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}