/* 動態主題樣式 - Dynamic Theme Styles */

/* 這個文件用於動態主題色的管理 */
/* 主題色由JavaScript動態控制 */

/* 主題色過渡動畫 */
:root {
    transition: 
        --primary-color 0.3s ease,
        --primary-color-rgb 0.3s ease,
        --primary-gradient 0.3s ease,
        --secondary-color 0.3s ease,
        --accent-color 0.3s ease;
}

/* 確保所有使用主題色的元素都有平滑過渡 */
* {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* 主題指示器樣式 */
.theme-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #87ceeb;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.1);
}

.theme-indicator.theme-indicator-pulse {
    opacity: 1;
    transform: translateY(0);
    animation: pulse 2s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
}

/* 深色主題適配 */
[data-theme="dark"] .theme-indicator {
    background: rgba(0, 0, 0, 0.25);
    color: #87ceeb;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .theme-indicator {
        background: rgba(0, 0, 0, 0.25);
        color: #87ceeb;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* 淺色主題適配 */
[data-theme="light"] .theme-indicator {
    background: rgba(255, 255, 255, 0.2);
    color: #4a90e2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .theme-indicator {
        top: 20px;
        right: 20px;
        font-size: 12px;
        padding: 8px 16px;
    }
}