/* 
 * 社頭清聖宮 - 視覺重構核心 (Pro Max)
 * 遵循 8px 網格系統與高級玻璃擬態設計
 * 專案代號: TEMPLE-VISUAL-UPGRADE
 */

:root {
    /* 核心色調 */
    --temple-gold: #bfa15f;
    --temple-red: #9A3B3B;
    --temple-dark: #2c2420;
    --temple-bg: #fdfbf7;

    /* 玻璃擬態參數 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --backdrop-blur: blur(12px);

    /* 動畫曲線 */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    background-color: var(--temple-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(191, 161, 95, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(154, 59, 59, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 玻璃擬態卡片容器 */
.pro-glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.pro-glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    transform: translateY(-2px);
}

/* 高級輸入框樣式 */
.pro-input {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.pro-input:focus {
    border-color: var(--temple-gold);
    box-shadow: 0 0 0 4px rgba(191, 161, 95, 0.15);
    outline: none;
}

/* 選擇器優化 */
.pro-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

/* 參加者卡片專屬優化 */
.participant-card-pro {
    border-left: 4px solid var(--temple-gold);
    overflow: hidden;
}

.participant-header-pro {
    background: linear-gradient(to right, rgba(191, 161, 95, 0.1), transparent);
    border-bottom: 1px solid rgba(191, 161, 95, 0.2);
}

/* 按鈕系統 */
.btn-pro-primary {
    background: linear-gradient(135deg, var(--temple-red) 0%, #7d2e2e 100%);
    color: white;
    border: none;
    border-radius: 50rem;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(154, 59, 59, 0.3);
    transition: var(--transition-smooth);
}

.btn-pro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 59, 59, 0.4);
    color: white;
}

.btn-pro-outline {
    background: transparent;
    border: 2px solid var(--temple-gold);
    color: #856404;
    border-radius: 50rem;
    padding: 10px 28px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-pro-outline:hover {
    background: var(--temple-gold);
    color: white;
}

/* 提醒區塊 */
.notice-box {
    background: linear-gradient(135deg, #fff0f0 0%, #fff 100%);
    border: 1px solid #ffcccc;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--temple-red);
}

/* 動態步驟條 */
.step-container-pro {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.step-line-pro {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item-pro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.33%;
}

.step-circle-pro {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #cbd5e1;
    transition: var(--transition-bounce);
    margin-bottom: 8px;
}

.step-item-pro.active .step-circle-pro {
    border-color: var(--temple-red);
    background: var(--temple-red);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(154, 59, 59, 0.2);
}

.step-label-pro {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.step-item-pro.active .step-label-pro {
    color: var(--temple-red);
    font-weight: 700;
}

/* 響應式優化 */
@media (max-width: 768px) {
    .pro-glass-card {
        border-radius: 16px;
    }

    .btn-pro-primary {
        width: 100%;
        padding: 14px;
    }
}