/*
 Theme Name: Extra Child
 Theme URI: https://newspress.cc
 Description: Extra Child Theme
 Author: WPNews
 Author URI: https://newspress.cc
 Template: Extra
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
html, body {
/* make sure we use the full width but allow for more height */
	width: 100% !important;
	min-height: 100vh !important;
/* this helps with the sticky footer */
}
::selection {
	background-color: #e9d1f9;
	color: #53395f;
}
.et_pb_widget h2 {
	padding: 10px 25px;
}
.wp-block-image img {
	margin-bottom: 20px;
}
.post-header h1.entry-title {
		font-size: 26px;
    font-weight: 600;
}
.single .post-wrap .post-content h2 {
	font-size: 22px;
    font-weight: 600;
}
/* 讓整個網頁主體撐滿至少整個螢幕高度 */
body {
	background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
/* 讓主要內容區域自動伸縮，佔滿剩餘空間 */
#main-content {
    flex: 1 0 auto;
	/* 100vh 代表螢幕總高度，減去 240px（預估的頁首+頁尾高度） */
    min-height: calc(100vh - 240px);
}

/* 確保頁尾不會被壓縮 */
#footer.footer_columns_4,
#footer-bottom .container {
    display: block;
		flex-shrink: 0;
    unicode-bidi: isolate;
}

/* 單篇文章樣式 */
.wp-block-image.aligncenter {
	margin-bottom: 15px;
}
p {
	font-size: 18px;
}
#footer .et_pb_widget h2 {
	font-size: 22px;
	padding: 0;
}

/* ==========================================================================
   WOLKENWEICH | TECH ZEN SYSTEM 
   TranslatePress Language Switcher Custom Styling
   ========================================================================== */

/* 1. 語言切換器整體容器：定義輕量、優雅的無襯線字體與微小字距 */
.translatepress-language-switcher {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important; /* 讓英文字母呈現極簡的微小大寫美學 */
    display: inline-flex !important;
    align-items: center !important;
}

/* 2. 常態（Normal）樣式：柔霧米白底色、深色薰衣草紫文字、鼠尾草綠細邊框 */
.translatepress-language-switcher a {
    color: #5D4B74 !important; /* 核心：Spiritual Purple 薰衣草紫 */
    background-color: rgba(247, 245, 240, 0.75) !important; /* 柔霧米白：帶有 75% 透明度，能透出背景雲海 */
    border: 1px solid rgba(156, 175, 136, 0.6) !important; /* 邊框：低飽和 Sage Green 鼠尾草綠 */
    padding: 6px 16px !important;
    border-radius: 24px !important; /* 圓潤圓弧：如同雲朵般溫柔、沒有銳角 */
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 12px rgba(93, 75, 116, 0.03) !important; /* 極微弱的陰影 */
    
    /* 核心動畫：0.4秒漸變，實現如雲霧流動般的 Fluid Dissolve，絕不硬切 */
    transition: all 0.4s ease-in-out !important; 
}

/* 3. 當前選定語言（Current Language）的微妙視覺微調 */
.translatepress-language-switcher .current-language a {
    font-weight: 500 !important;
    border-color: #5D4B74 !important; /* 當前語言的邊框稍微加深 */
}

/* 4. 懸停（Hover）與動態效果：文字轉暖金、背景轉深紫，營造高光柔化（Diffusion Glow）懸浮感 */
.translatepress-language-switcher a:hover {
    color: #D4AF37 !important; /* 核心：Warm Gold 暖金色文字 */
    background-color: #5D4B74 !important; /* 背景色深染為 Spiritual Purple */
    border-color: #5D4B74 !important;
    
    /* 視覺擴散：透過帶有深紫色的柔和陰影，模擬高光柔化的發光體感 */
    box-shadow: 0 4px 20px rgba(93, 75, 116, 0.25) !important; 
    
    /* 運鏡微動：滑鼠懸停時微幅向上浮動 1 像素，帶來極致細膩的鬆弛互動感 */
    transform: translateY(-1px) !important; 
}

/* 5. 手機版（Mobile）適應性優化：確保在小螢幕上點擊空間依然從容 */
@media (max-width: 768px) {
    .translatepress-language-switcher a {
        padding: 8px 18px !important; /* 稍微放大手指點擊區域，貼合行動端 */
        font-size: 14px !important;
    }
}