/**
 * About Page - Enhanced Image Carousel Styles
 * 
 * Responsible for:
 * - 提供專為橫式圖片優化的輪播樣式
 * - 確保圖片完整顯示不被裁切
 * - 提供美觀的視覺效果和流暢的互動體驗
 * - 支援響應式設計適應各種螢幕尺寸
 * 
 * Design considerations:
 * - 使用 object-fit: contain 保持圖片完整性
 * - 採用漸變背景和圓角設計提升視覺美感
 * - 自定義控制元件和指示器提供更好的使用者體驗
 * - 使用 CSS Grid 和 Flexbox 實現響應式佈局
 */

/* 大圖展示輪播容器 */
.large-image-gallery {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* 輪播容器主體 */
.large-image-gallery .carousel {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 大圖片容器 - 橫式圖片寬屏顯示區域 */
.large-image-container {
    position: relative;
    width: 100%;
    height: 450px; /* 適合橫式圖片的寬屏比例高度 */
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 大圖片樣式 - 最大化顯示 */
.large-carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* 大圖片懸停效果 */
.large-carousel-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* 圖片覆蓋層 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.large-image-container:hover .image-overlay {
    opacity: 1;
}

/* 覆蓋層內容 */
.overlay-content {
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.large-image-container:hover .overlay-content {
    transform: translateY(0);
}

/* 放大檢視按鈕 */
.zoom-button {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #374151 !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.zoom-button:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* 圖片資訊標籤 */
.image-info .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* 移除指示器相關樣式 - 不再需要 */

/* 大圖展示控制按鈕 */
.large-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    opacity: 0.85;
    top: 50%;
    transform: translateY(-50%);
}

.large-control:hover {
    background: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #374151;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 移除圖片總數資訊樣式 - 不再需要 */

/* 響應式設計 - 針對橫式圖片優化 */
@media (max-width: 768px) {
    .large-image-gallery {
        padding: 16px;
        border-radius: 20px;
    }
    
    .large-image-container {
        height: 300px; /* 平板版適合橫式圖片的高度 */
    }
    
    .large-control {
        width: 50px;
        height: 50px;
    }
    
    .control-icon {
        font-size: 1.1rem;
    }
    
    .zoom-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .large-image-gallery {
        padding: 12px;
        border-radius: 16px;
    }
    
    .large-image-container {
        height: 250px; /* 手機版適合橫式圖片的高度 */
    }
    
    .large-control {
        width: 45px;
        height: 45px;
    }
    
    .control-icon {
        font-size: 1rem;
    }
    
    .zoom-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* 淡入淡出動畫效果 */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* 載入動畫 */
.large-carousel-image {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 輪播容器進入動畫 */
.large-image-gallery {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About 頁面追蹤小埃社群按鈕樣式 - 強化版本 */
.about-section .social-icons {
    text-align: center;
    margin-top: 2rem;
}

.about-section .social-icons h5 {
    margin-bottom: 1.2rem;
    color: #374151;
    font-weight: 600;
}

.about-section .social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.about-section .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.about-section .social-link:hover {
    background: #f8fafc !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.about-section .social-link i {
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* 保持平台專屬 hover 顏色效果 */
.about-section .social-link.youtube:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

.about-section .social-link.twitch:hover {
    background: #faf5ff !important;
    border-color: #d8b4fe !important;
    color: #9333ea !important;
}

.about-section .social-link.twitter:hover {
    background: #f0f9ff !important;
    border-color: #7dd3fc !important;
    color: #0ea5e9 !important;
}

.about-section .social-link.instagram:hover {
    background: #fdf2f8 !important;
    border-color: #f9a8d4 !important;
    color: #ec4899 !important;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .about-section .social-link {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
    
    .about-section .social-links {
        gap: 0.8rem !important;
    }
}
