/* ============================================================
   GOLDMAN CAPITAL — Custom Overrides
   Gold theme · Language switcher · RTL · Logo
   ============================================================ */

/* ---------- 金色主题（覆盖参考站绿色变量） ---------- */
:root {
    --gold-50: rgba(212, 175, 55, 0.08);
    --gold-100: rgba(212, 175, 55, 0.14);
    --gold-200: rgba(212, 175, 55, 0.24);
    --gold-300: rgba(212, 175, 55, 0.4);
    --gold-400: #d4af37;
    --gold-500: #c9a227;
    --gold-600: #b08a1e;
    --gold-700: #8f6f15;
    --green-50: rgba(212, 175, 55, 0.08);
    --green-100: rgba(212, 175, 55, 0.14);
    --green-200: rgba(212, 175, 55, 0.24);
    --green-300: rgba(212, 175, 55, 0.4);
    --green-400: #d4af37;
    --green-500: #c9a227;
    --green-600: #b08a1e;
    --green-700: #8f6f15;
    --color-primary: var(--gold-500);
    --color-primary-hover: var(--gold-400);
    --color-primary-dark: var(--gold-600);
    --color-border: rgba(212, 175, 55, 0.14);
    --glass-border: rgba(212, 175, 55, 0.14);
}

/* ---------- Logo 适配 ---------- */
.nav-logo-img,
.footer-logo-img {
    filter: none;
    border-radius: 8px;
}

/* 首屏展示 logo */
.hero-logo {
    display: block;
    margin-bottom: 30px;
}
.hero-logo-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.55);
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.18);
}

/* 首屏背景水印换成 logo.png */
.hero::after {
    background: url('../assets/images/logo.png') center/contain no-repeat;
    opacity: 0.05;
}

/* 无 hero-bg 图片时首屏底色 */
.hero {
    background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
}

/* ---------- 语言切换器 ---------- */
.lang-switch {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    min-height: 40px;
    white-space: nowrap;
}
.lang-btn:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}
.lang-caret {
    font-size: 0.6rem;
    opacity: 0.8;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card-alt);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1200;
    max-height: 62vh;
    overflow-y: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.lang-dropdown.open {
    display: flex;
}
.lang-opt {
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    min-height: 0;
    transition: background 0.2s;
}
.lang-opt:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-400);
}
.lang-opt.active {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-400);
    font-weight: 700;
}

/* ---------- RTL（阿拉伯语/希伯来语） ---------- */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}
[dir="rtl"] .lang-opt {
    text-align: right;
}
[dir="rtl"] .section-header,
[dir="rtl"] .hero-content,
[dir="rtl"] .about-content,
[dir="rtl"] .prizes-note,
[dir="rtl"] .process-note,
[dir="rtl"] .footer-info,
[dir="rtl"] .candidate-body,
[dir="rtl"] .rule-item,
[dir="rtl"] .process-step {
    text-align: right;
}
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}
[dir="rtl"] .btn-arrow {
    transform: scaleX(-1);
}
[dir="rtl"] .step-number {
    order: 2;
}
[dir="rtl"] .toast-container {
    right: auto;
    left: 24px;
}
[dir="rtl"] .hero-divider-line {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}
[dir="rtl"] .rule-num {
    order: 2;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0;
        margin-right: 10px;
    }
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        min-height: 36px;
    }
    .hero-logo-img {
        width: 96px;
        height: 96px;
    }
}
