/**
 * 淺色主題樣式 - Light Theme
 * 白金主題配色 - White & Gold Luxury
 */

.light-theme {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(212, 165, 32, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(184, 134, 11, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #fffdf8 0%, #faf8f2 50%, #f5f2e8 100%);
    background-attachment: fixed;
    color: var(--text-light);
}

/* ========== Header ========== */
.light-theme header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
    box-shadow:
        0 4px 20px rgba(184, 134, 11, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    color: var(--text-light);
}

.light-theme .header__logo h1 {
    background: linear-gradient(135deg, #1f1f1f 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Icons */
.light-theme .theme-toggle,
.light-theme .header__icon {
    color: rgba(139, 105, 20, 0.8);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 253, 248, 0.98) 100%);
    border: 1px solid rgba(184, 134, 11, 0.18);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.08);
}

.light-theme .theme-toggle:hover,
.light-theme .theme-toggle:focus,
.light-theme .header__icon:hover,
.light-theme .header__icon:focus {
    color: #b8860b;
    background: linear-gradient(165deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 243, 210, 0.95) 100%);
    border-color: rgba(184, 134, 11, 0.35);
    box-shadow:
        0 4px 15px rgba(184, 134, 11, 0.2),
        0 0 20px rgba(212, 165, 32, 0.1);
}

/* ========== Banner ========== */
.light-theme .banner {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(184, 134, 11, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #fffdf8 0%, #faf5e8 50%, #f5edd8 100%);
    border-bottom: 1px solid rgba(184, 134, 11, 0.18);
}

.light-theme .banner::before {
    background-image:
        linear-gradient(rgba(184, 134, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.04) 1px, transparent 1px);
}

.light-theme .banner::after {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), rgba(212, 165, 32, 0.7), rgba(184, 134, 11, 0.5), transparent);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4), 0 0 40px rgba(184, 134, 11, 0.2);
}

.light-theme .banner__content h2 {
    background: linear-gradient(135deg, #b8860b 0%, #d4a520 30%, #f5c542 70%, #d4a520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.2));
}

.light-theme .banner__content p {
    color: rgba(139, 105, 20, 0.7);
}

/* ========== Loading ========== */
.light-theme .loading-overlay {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
}

.light-theme .loading-spinner {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.18);
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.12);
}

.light-theme .loading-spinner i {
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.4));
}

.light-theme .loading-spinner span {
    color: #1f1f1f;
}

/* ========== 遊戲卡片 ========== */
.light-theme .game-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow:
        0 4px 15px rgba(184, 134, 11, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.light-theme .game-card::before {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), transparent 50%, rgba(212, 165, 32, 0.15));
}

.light-theme .game-card::after {
    background: radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.06) 0%, transparent 60%);
}

.light-theme .game-card:hover {
    box-shadow:
        0 20px 40px rgba(184, 134, 11, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(184, 134, 11, 0.25);
    border-color: rgba(184, 134, 11, 0.35);
}

.light-theme .game-card__image-container {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.9) 0%, rgba(255, 248, 235, 0.95) 100%);
}

.light-theme .game-card__image {
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
}

.light-theme .game-card:hover .game-card__image {
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.15);
}

.light-theme .game-card__info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.08);
}

.light-theme .game-card__title {
    color: #1f1f1f;
}

.light-theme .game-card:hover .game-card__title {
    color: #b8860b;
    text-shadow: 0 0 20px rgba(184, 134, 11, 0.25);
}

.light-theme .game-card__description {
    color: rgba(139, 105, 20, 0.7);
}

.light-theme .game-card__version {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    box-shadow:
        0 2px 10px rgba(184, 134, 11, 0.4),
        0 0 20px rgba(184, 134, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.light-theme .games--list-view .game-card__info {
    border-left: 1px solid rgba(184, 134, 11, 0.1);
}

/* ========== 按鈕 ========== */
.light-theme .btn {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 50%, #8b6914 100%);
    box-shadow:
        0 4px 15px rgba(184, 134, 11, 0.35),
        0 0 20px rgba(184, 134, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.light-theme .btn:hover,
.light-theme .btn:focus {
    background: linear-gradient(135deg, #f5c542 0%, #d4a520 50%, #b8860b 100%);
    box-shadow:
        0 8px 25px rgba(184, 134, 11, 0.4),
        0 0 35px rgba(212, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.light-theme .btn--disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== 環境切換器 ========== */
.light-theme .env-switcher__btn {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.22);
    color: #b8860b;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.08);
}

.light-theme .env-switcher__btn:hover {
    background: linear-gradient(165deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 243, 210, 0.95) 100%);
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

.light-theme .env-switcher__dropdown {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.15);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.12);
}

.light-theme .env-switcher__item {
    border-bottom-color: rgba(184, 134, 11, 0.08);
}

.light-theme .env-switcher__item:hover {
    background: rgba(184, 134, 11, 0.06);
}

.light-theme .env-switcher__item--active {
    background: rgba(184, 134, 11, 0.1);
}

.light-theme .env-switcher__item--active::after {
    color: #b8860b;
}

.light-theme .env-switcher__item-name {
    color: #1f1f1f;
}

/* ========== 語言切換器 ========== */
.light-theme .language-switcher__btn {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.28);
    color: #b8860b;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.1);
}

.light-theme .language-switcher__btn:hover {
    background: linear-gradient(165deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 243, 210, 0.95) 100%);
    border-color: rgba(184, 134, 11, 0.45);
    color: #8b6914;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

.light-theme .language-switcher__dropdown {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.18);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.12);
}

.light-theme .language-switcher__item {
    border-bottom-color: rgba(184, 134, 11, 0.08);
}

.light-theme .language-switcher__item:hover {
    background: rgba(184, 134, 11, 0.06);
}

.light-theme .language-switcher__item--active {
    background: rgba(184, 134, 11, 0.1);
}

.light-theme .language-switcher__item--active::after {
    color: #b8860b;
    text-shadow: none;
}

.light-theme .language-switcher__item-label {
    color: #1f1f1f;
}

.light-theme .language-switcher__item:hover .language-switcher__item-label {
    color: #8b6914;
}

/* ========== 搜尋篩選器 ========== */
.light-theme .game-filter__input {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.18);
    color: #1f1f1f;
    box-shadow:
        0 2px 10px rgba(184, 134, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.light-theme .game-filter__input::placeholder {
    color: rgba(139, 105, 20, 0.5);
}

.light-theme .game-filter__input:focus {
    border-color: rgba(184, 134, 11, 0.45);
    box-shadow:
        0 0 0 3px rgba(184, 134, 11, 0.08),
        0 4px 20px rgba(184, 134, 11, 0.1),
        0 0 30px rgba(184, 134, 11, 0.05);
    background: linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, rgba(255, 254, 252, 1) 100%);
}

.light-theme .game-filter__icon {
    color: rgba(139, 105, 20, 0.5);
}

.light-theme .game-filter__clear {
    color: rgba(139, 105, 20, 0.5);
}

.light-theme .game-filter__clear:hover {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

/* ========== 檢視切換 ========== */
.light-theme .view-toggle {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 253, 248, 0.98) 100%);
    border: 1px solid rgba(184, 134, 11, 0.12);
}

.light-theme .view-toggle__btn {
    color: rgba(139, 105, 20, 0.6);
}

.light-theme .view-toggle__btn:hover {
    color: #b8860b;
    background-color: rgba(184, 134, 11, 0.08);
}

.light-theme .view-toggle__btn--active {
    color: #b8860b;
    background-color: rgba(184, 134, 11, 0.12);
}

/* ========== 使用者資訊 ========== */
.light-theme .user-name {
    color: #b8860b;
}

.light-theme .user-role {
    color: rgba(139, 105, 20, 0.7);
}

/* ========== 錢包資訊 ========== */
.light-theme .wallet-info {
    color: #1f1f1f;
}

.light-theme .wallet-currency {
    color: rgba(139, 105, 20, 0.7);
}

.light-theme .wallet-refresh:hover:not(:disabled) {
    color: #b8860b;
}

/* ========== Footer ========== */
.light-theme footer {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 250, 240, 1) 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.12);
    color: rgba(139, 105, 20, 0.8);
}

.light-theme footer::before {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.4), transparent);
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.2);
}

.light-theme .footer__social a {
    color: rgba(139, 105, 20, 0.6);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 253, 248, 0.98) 100%);
    border: 1px solid rgba(184, 134, 11, 0.12);
}

.light-theme .footer__social a:hover,
.light-theme .footer__social a:focus {
    color: #b8860b;
    background: linear-gradient(165deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 243, 210, 0.95) 100%);
    border-color: rgba(184, 134, 11, 0.35);
    box-shadow:
        0 6px 20px rgba(184, 134, 11, 0.15),
        0 0 25px rgba(184, 134, 11, 0.08);
}

/* ========== Snackbar ========== */
.light-theme .snackbar {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ========== 登入頁面 ========== */
.login-page.light-theme {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(184, 134, 11, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(212, 165, 32, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #fefefe 0%, #fcfbf9 50%, #f9f8f6 100%);
}
