/* ============================================================
   videos.css — 本會影片頁面專屬樣式
   依賴：main.css
   ============================================================ */

/* ============================================================
   Video Filter Tabs
   ============================================================ */
.video-filter {
    padding: 60px 20px 0;
    background: #fff;
}

.filter-tabs {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.filter-tab:hover { background: var(--primary-color); color: #fff; }

.filter-tab.active {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.3);
}

/* ============================================================
   Featured Video
   ============================================================ */
.featured-video {
    padding: 100px 20px;
    background: #fff;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Also used for the video-card featured layout */
.featured-container.card-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.featured-badge {
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-player {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

/* 16:9 ratio for iframe embeds */
.video-wrapper.ratio-16-9 {
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper.ratio-16-9 iframe,
.video-wrapper.ratio-16-9 video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 15px;
}

.video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #2d8bb8, var(--primary-color));
}

.video-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.video-placeholder span { font-size: 1.2rem; font-weight: 500; }

.featured-info h2,
.featured-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.featured-info h2 span { color: var(--secondary-color); }

.featured-info p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.9;
}

.video-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat { text-align: center; }
.stat .number { font-size: 2.5rem; font-weight: 900; color: var(--primary-color); display: block; }
.stat .label  { color: #666; font-size: 0.95rem; }

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    color: #fff;
}

/* ============================================================
   Video Gallery Grid
   ============================================================ */
.video-gallery {
    padding: 100px 20px;
    background: var(--light-color);
}

.gallery-grid,
.videos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.videos-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); padding: 20px 0; }

.video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.video-card .video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-card .video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.1); }

.video-card .play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.video-card .video-thumb .duration {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.video-card .video-thumb .category {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--gradient-1);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-card .video-info,
.video-info {
    padding: 25px;
}

.video-card .video-info h3,
.video-info h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-card .video-info h3 { color: var(--primary-color); }

.video-card .video-info p,
.video-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.video-card .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.video-card .video-meta i { margin-right: 5px; }

/* ============================================================
   Testimonial Videos
   ============================================================ */
.testimonial-section {
    padding: 100px 20px;
    background: #fff;
}

.testimonial-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.testimonial-video {
    width: 150px; height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-video img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-video .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-video:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); }

.testimonial-content h3 { font-size: 1.3rem; color: var(--dark-color); margin-bottom: 5px; }
.testimonial-content .role { color: var(--secondary-color); font-weight: 500; margin-bottom: 15px; display: block; }
.testimonial-content p { color: #555; font-style: italic; line-height: 1.8; }
.testimonial-content .quote-icon { color: var(--accent-color); font-size: 2rem; margin-bottom: 10px; }

/* ============================================================
   Categories
   ============================================================ */
.categories-section {
    padding: 100px 20px;
    background: var(--gradient-1);
    color: #fff;
}

.categories-section .section-title h2 { color: #fff; }
.categories-section .section-title h2::after { background: var(--accent-color); }
.categories-section .section-title p { color: rgba(255,255,255,0.9); }

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.category-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.category-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.category-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.category-card .count { opacity: 0.8; font-size: 0.95rem; }

/* ============================================================
   Video Modal
   ============================================================ */
.video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal.active { display: flex; }

.video-modal .modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal .modal-close {
    position: absolute;
    top: -50px; right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.video-modal .modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-container { grid-template-columns: 1fr; }
    .featured-container.card-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card { grid-template-columns: 1fr; text-align: center; }
    .testimonial-video { margin: 0 auto; }
    .video-stats { justify-content: center; }
    .filter-tabs { gap: 10px; }
    .filter-tab { padding: 10px 20px; font-size: 0.9rem; }
}
