/*
 * 簡化版滿版飲食輪播樣式
 * 專注於核心功能，確保穩定顯示
 * 更新：縮小字卡、白色按鈕、隱藏指示器
 */

/* ==========================================
   主要容器
   ========================================== */
.food-carousel-fullwidth {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #000;
    margin-left: calc(-50vw + 50%);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================
   標題區域
   ========================================== */
.carousel-header {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 300;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.carousel-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.carousel-counter .current {
    color: #ffd700;
    font-weight: 700;
}

/* ==========================================
   輪播核心
   ========================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   背景圖片
   ========================================== */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
}

/* ==========================================
   內容區域 - 縮小字卡
   ========================================== */
.slide-content {
    position: absolute;
    bottom: 80px;
    left: 40px;
    max-width: 420px;
    z-index: 10;
    color: white;
    transform: translateY(50px) scale(0.85);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

.carousel-slide.active .slide-content {
    transform: translateY(0) scale(0.85);
    opacity: 1;
}

/* ==========================================
   標籤樣式 - 縮小
   ========================================== */
.slide-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.slide-tag.tag-seasonal {
    background: rgba(78, 205, 196, 0.85);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.slide-tag.tag-innovative {
    background: rgba(255, 107, 107, 0.85);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.slide-tag.tag-healthy {
    background: rgba(149, 225, 211, 0.85);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(149, 225, 211, 0.3);
}

.slide-tag.tag-signature {
    background: rgba(255, 215, 0, 0.85);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.slide-tag.tag-popular {
    background: rgba(199, 206, 234, 0.85);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(199, 206, 234, 0.3);
}

.slide-tag.tag-traditional {
    background: rgba(168, 230, 207, 0.85);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.3);
}

/* ==========================================
   文字內容 - 縮小標題
   ========================================== */
.slide-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0 0 18px 0;
    line-height: 1.1;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
    letter-spacing: 1px;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    max-width: 380px;
}

/* ==========================================
   按鈕樣式 - 白字白外框透明底
   ========================================== */
.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.slide-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
    border-color: rgba(255, 255, 255, 1);
}

.button-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.slide-button:hover .button-arrow {
    transform: translateX(5px);
}

/* ==========================================
   控制按鈕
   ========================================== */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 15;
    pointer-events: none;
}

.carousel-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: rgba(255, 215, 0, 0.9);
    border-color: #ffd700;
    color: #2c3e50;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.carousel-btn svg {
    width: 28px;
    height: 28px;
}

/* ==========================================
   指示器 - 隱藏
   ========================================== */
.carousel-indicators {
    display: none;
}

.indicator-dot {
    display: none;
}

/* ==========================================
   響應式設計
   ========================================== */
@media (max-width: 1024px) {
    .carousel-header {
        top: 40px;
        left: 40px;
        right: 40px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .slide-content {
        bottom: 70px;
        left: 35px;
        max-width: 380px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .carousel-controls {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .food-carousel-fullwidth {
        min-height: 600px;
    }
    
    .carousel-header {
        top: 30px;
        left: 30px;
        right: 30px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .carousel-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .carousel-counter {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .slide-content {
        bottom: 50px;
        left: 25px;
        right: 25px;
        max-width: none;
        transform: translateY(50px) scale(0.9);
    }
    
    .carousel-slide.active .slide-content {
        transform: translateY(0) scale(0.9);
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 60px;
        height: 60px;
    }
    
    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .food-carousel-fullwidth {
        min-height: 500px;
    }
    
    .carousel-header {
        top: 25px;
        left: 25px;
        right: 25px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .slide-content {
        bottom: 40px;
        left: 20px;
        right: 20px;
        transform: translateY(50px) scale(0.95);
    }
    
    .carousel-slide.active .slide-content {
        transform: translateY(0) scale(0.95);
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .slide-button {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .carousel-controls {
        padding: 0 25px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================
   性能優化
   ========================================== */
.carousel-slide,
.slide-content,
.carousel-btn {
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide-background img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================
   進場動畫
   ========================================== */
@keyframes slideInUp {
    from {
        transform: translateY(50px) scale(0.85);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(0.85);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide.active .slide-content {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active .slide-background {
    animation: fadeIn 1s ease-in-out;
}

/* ==========================================
   無障礙支援
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .slide-content,
    .carousel-btn,
    .slide-button {
        transition: none !important;
        animation: none !important;
    }
}

/* 聚焦狀態 */
.carousel-btn:focus,
.slide-button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 3px;
}

/* 高對比模式支援 */
@media (prefers-contrast: high) {
    .slide-overlay {
        background: rgba(0,0,0,0.8);
    }
    
    .slide-title,
    .slide-description {
        text-shadow: 0 0 10px rgba(0,0,0,1);
    }
}


/*
 * TheOne Footer Styles
 * 頁尾樣式設計
 */

/* ==========================================
   主要頁尾
   ========================================== */

.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ==========================================
   Logo區域
   ========================================== */

.footer-brand {
    color: #ffffff;
}

.footer-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================
   區段標題
   ========================================== */

.footer-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ==========================================
   快速連結
   ========================================== */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
}

.footer-menu a:hover {
    color: #ffd700;
}

/* ==========================================
   聯絡資訊
   ========================================== */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   社群連結
   ========================================== */

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #ffd700;
    border-color: #ffd700;
    transform: translateY(-3px);
}

.social-icon {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.social-link:hover .social-icon {
    color: #333;
}

/* ==========================================
   頁尾底部
   ========================================== */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright p {
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 30px;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #ffd700;
}

/* ==========================================
   回到頂部按鈕
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffd700;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ffed4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* ==========================================
   響應式設計
   ========================================== */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .main-footer {
        padding: 60px 0 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links-bottom {
        gap: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .footer-section-title {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* ==========================================
   頁尾動畫效果
   ========================================== */

.footer-brand,
.footer-links,
.footer-contact,
.footer-social {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.footer-links {
    animation-delay: 0.1s;
}

.footer-contact {
    animation-delay: 0.2s;
}

.footer-social {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   滾動觸發動畫
   ========================================== */

.footer-content > div {
    transition: transform 0.3s ease;
}

.footer-content > div:hover {
    transform: translateY(-5px);
}
