/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Astra Child Theme for Seekhelio business logic
 Author:       Seekhelio
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ============================================
   1. 全局导航栏样式优化（最高优先级覆盖）
   ============================================ */
header .main-header-menu > li > a,
header .ast-nav-menu > li > a,
header .ast-builder-menu > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
}
header .main-header-menu > li > a:hover,
header .ast-nav-menu > li > a:hover,
header .ast-builder-menu > li > a:hover {
    color: #ffffff !important;
}
header .main-header-menu > li.current-menu-item > a,
header .main-header-menu > li.current_page_item > a,
header .ast-nav-menu > li.current-menu-item > a,
header .ast-nav-menu > li.current_page_item > a,
header .ast-builder-menu > li.current-menu-item > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #ffffff !important;
}

/* ============================================
   2. 修复右上角社交图标（专治 SVG 隐身）
   ============================================ */
header .ast-header-social-wrap svg,
header .ast-header-social-icons svg,
header .ast-builder-social-element svg,
header .ast-header-social-wrap svg path,
header .ast-header-social-icons svg path,
header .ast-builder-social-element svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}
header .ast-header-social-wrap a,
header .ast-header-social-icons a,
header .ast-builder-social-element a {
    color: #ffffff !important;
}

/* ============================================
   3. 菜单高亮（按钮化设计）
   ============================================ */
li.menu-highlight > a {
    background: #0073aa !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}
li.menu-highlight > a:hover,
li.menu-highlight > a:focus {
    background: #005a8c !important;
    color: #ffffff !important;
}

/* ============================================
   4. 帮助文章正文排版 (Blog/Help Center)
   ============================================ */
.single-post .entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 4px;
}
.single-post .entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 48px 0 20px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.single-post .entry-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 12px;
    line-height: 1.4;
}
.single-post .entry-content p {
    margin: 0 0 22px;
    color: #374151;
}
.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 0;
    margin: 0 0 24px;
    list-style: none;
}
.single-post .entry-content ul li,
.single-post .entry-content ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.7;
}
.single-post .entry-content ul li::before {
    content: "•";
    color: #0073aa;
    font-weight: 700;
    position: absolute;
    left: 6px;
    font-size: 18px;
    line-height: 1.5;
}
.single-post .entry-content ol {
    counter-reset: ol-counter;
}
.single-post .entry-content ol li {
    counter-increment: ol-counter;
}
.single-post .entry-content ol li::before {
    content: counter(ol-counter);
    color: #0073aa;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #f0f8ff;
    border-radius: 50%;
    font-size: 12px;
}
.single-post .entry-content a {
    color: #0073aa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.single-post .entry-content a:hover {
    color: #005a8c;
}
.single-post .entry-content strong {
    color: #111827;
    font-weight: 600;
}
.single-post .entry-content code {
    background: #f3f4f6;
    color: #111827;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.single-post .entry-content blockquote {
    border-left: 4px solid #0073aa;
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    color: #4b5563;
    border-radius: 0 6px 6px 0;
}
.single-post .entry-content .tip-box {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
}
.single-post .entry-content .warn-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
}
.single-post .entry-content .custom-hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 40px 0;
}
.single-post .entry-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.single-post .entry-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.single-post .entry-meta a {
    color: #0073aa;
    text-decoration: none;
}
.single-post .site-content {
    padding: 60px 20px 80px;
    background: #ffffff;
}

/* ============================================
   5. 修复移动端下拉菜单文字隐形问题
   ============================================ */
@media (max-width: 921px) {
    header .main-header-menu > li > a,
    header .ast-nav-menu > li > a,
    header .ast-builder-menu > li > a,
    header .ast-offcanvas-menu > li > a,
    header .main-header-menu > li.current-menu-item > a,
    header .ast-nav-menu > li.current-menu-item > a,
    header .ast-builder-menu > li.current-menu-item > a,
    header .ast-offcanvas-menu > li.current-menu-item > a {
        color: #333333 !important;
    }
    header .main-header-menu > li.current-menu-item > a,
    header .ast-nav-menu > li.current-menu-item > a,
    header .ast-builder-menu > li.current-menu-item > a,
    header .ast-offcanvas-menu > li.current-menu-item > a {
        border-bottom: 2px solid #0073aa !important;
        color: #0073aa !important;
    }
}

/* ============================================
用户名、密码字段说明文字
============================================ */
.um-form .um-field[data-key="user_login"] .um-field-area::after {
    content: "Only letters, numbers, and underscores. Must be unique.";
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 15px;
    font-family: inherit;
}

.um-form .um-field[data-key="user_password"] .um-field-area::after {
    content: "Min 8 characters, including at least 1 uppercase letter, 1 number, and 1 special character.";
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 15px;
    font-family: inherit;
}

.um-form .um-field[data-key="confirm_user_password"] .um-field-area::after {
    content: none !important;
}

/* ============================================
UM自定义提示卡片 配套样式
============================================ */
.um-custom-confirm-card {
    box-sizing: border-box;
}
.um-custom-confirm-card a:hover {
    opacity: 0.9;
}
@media (max-width: 921px) {
    .um-custom-confirm-card {
        max-width: 100% !important;
        padding: 20px 22px !important;
    }
}
