/* ========================================
 * Bet852 Theme - Custom Inline Styles
 * 合併自所有模板檔案的 inline style 區塊
 * 生成時間: 2025-01-XX
 * ======================================== */

/* ========================================
 * 來自 header.php 的樣式
 * ======================================== */

/* 無障礙支持 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 焦點樣式 */
*:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* 面包屑导航样式 */
.breadcrumbs {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 15px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    color: #ffed4e;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #ccc;
}

/* 頂部信息欄優化 */
.header-feature {
    display: inline-block;
    margin-right: 20px;
    font-size: 0.9rem;
    color: #ccc;
    position: relative;
    cursor: help;
    transition: all 0.3s ease;
}

.header-feature:hover {
    color: #ffd700;
    transform: translateY(-1px);
}

.header-feature[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.header-announcement {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    padding: 4px 12px;
    border-radius: 15px;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.announcement-text {
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.contact-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-link:hover,
.contact-link:focus {
    color: #ffed4e;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-icon {
    font-size: 1rem;
}

.contact-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover .social-icon {
    transform: scale(1.2);
}

/* 搜索表單樣式增強 */
.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1001;
    min-width: 300px;
    border: 1px solid #333;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-form form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.search-field::placeholder {
    color: #666;
}

.search-submit {
    padding: 12px 15px;
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-submit:hover,
.search-submit:focus {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    transform: translateY(-1px);
}

/* 漢堡菜單優化 */
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #dc2626;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 菜單狀態管理 */
body.menu-open {
    overflow: hidden;
}

/* 桌面端顯示導航，移動端隱藏 */
@media (min-width: 769px) {
    .main-navigation {
        display: flex !important;
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        backdrop-filter: none !important;
    }
    
    .main-navigation .nav-menu {
        flex-direction: row !important;
        gap: 30px !important;
        padding: 0 !important;
    }
    
    .main-navigation .nav-menu li {
        width: auto !important;
        border-bottom: none !important;
        animation: none !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 10px 15px !important;
        text-align: left !important;
        margin: 0 !important;
        border-radius: 5px !important;
    }
}

@media (max-width: 768px) {
    .main-navigation[aria-hidden="true"] {
        display: none;
    }
}

/* 滾動動畫樣式 */
.faq-item,
.guide-card,
.review-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.faq-item.animate-in,
.guide-card.animate-in,
.review-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 移動端優化 */
@media (max-width: 768px) {
    .search-form {
        min-width: 250px;
        right: -50px;
    }
    
    .header-top-left {
        display: none;
    }
    
    .header-top-right {
        justify-content: center;
        width: 100%;
    }
    
    .social-links {
        display: none;
    }
    
    .main-navigation {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
        z-index: 10000 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
    }
    
    .navbar {
        z-index: 9999 !important;
    }
    
    .site-header {
        z-index: 9999 !important;
    }
}

@media (max-width: 480px) {
    .search-form {
        min-width: 200px;
        right: -100px;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .header-feature {
        font-size: 0.8rem;
        margin-right: 10px;
    }
}

/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .faq-item,
    .guide-card,
    .review-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .search-form {
        transition: none;
    }
    
    .hamburger-line {
        transition: none;
    }
}

/* 高對比度模式 */
@media (prefers-contrast: high) {
    .search-field {
        border-color: #fff;
    }
    
    .search-field:focus {
        border-color: #ffff00;
    }
}

/* 打印樣式 */
@media print {
    .header-top,
    .navbar,
    .search-form {
        display: none !important;
    }
}

/* ========================================
 * 來自 single.php 的樣式
 * ======================================== */

/* 单篇文章页面特殊样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffd700;
    margin: 30px 0 15px 0;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

/* ========================================
 * 來自 footer.php 的樣式
 * ======================================== */

/* 页脚链接悬停效果 */
.footer a:hover {
    color: #ffd700 !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* 浮动按钮动画 */
.support-btn:hover,
#back-to-top:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom > div {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom > div > div:last-child {
        margin-top: 15px;
    }
    
    .floating-support {
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .support-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    #back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
    
    .payment-methods span {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
}

/* ========================================
 * 來自 404.php 的樣式
 * ======================================== */

body.error-404 {
    background: linear-gradient(180deg, #000, #0b0b0b);
    color: #fff;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    text-align: center;
    padding: 80px 20px;
}

.error-container {
    max-width: 780px;
    margin: 0 auto;
}

.error-container h1 {
    font-size: 2.4rem;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255,215,0,0.4);
    margin-bottom: 18px;
}

.error-container p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-404 {
    background: #ffd700;
    color: #000;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-404:hover {
    background: #ffb700;
    transform: scale(1.05);
}

.popular-links {
    margin-top: 50px;
}

.popular-links h2 {
    font-size: 1.3rem;
    color: #ffe066;
    margin-bottom: 12px;
}

.popular-links a {
    display: inline-block;
    color: #ffd700;
    text-decoration: none;
    margin: 6px 10px;
    font-size: 1rem;
    transition: 0.2s ease;
}

.popular-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.error-container footer {
    margin-top: 60px;
    color: #888;
    font-size: 0.85rem;
}

.countdown {
    color: #ffd700;
    font-weight: bold;
    margin-top: 10px;
}

/* ========================================
 * 來自 register.php 的樣式
 * ======================================== */

body.register-redirect {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000 100%);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.redirect-container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-container h1 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.redirect-container p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.redirect-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.manual-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.manual-link:hover {
    background: #ffed4e;
}

