/*
Theme Name: Video Gallery Pro
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Tema galeri video modern dengan warna hitam dan pink. Optimalkan untuk tampilan video YouTube dan embed lainnya.
Version: 1.1
License: GPL v2 or later
Text Domain: video-gallery
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #121212;
    --secondary-black: #1a1a1a;
    --accent-pink: #e91e63;
    --light-pink: #f48fb1;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: #222222;
    --hover-bg: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--secondary-black);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-pink);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--accent-pink);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

/* Search Form */
.search-form {
    position: relative;
    width: 300px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--card-bg);
    border: 2px solid var(--accent-pink);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 16px;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-pink);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: var(--light-pink);
}

/* Navigation & Categories */
.categories-nav {
    background-color: var(--card-bg);
    padding: 15px 0;
    margin: 20px 0;
    border-radius: 10px;
}

.categories-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.categories-menu li {
    position: relative;
}

.categories-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    background-color: var(--secondary-black);
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
}

.categories-menu a:hover {
    background-color: var(--accent-pink);
    color: white;
}

/* Dropdown Categories */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    border-radius: 0;
    border-bottom: 1px solid #333;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Row & Columns untuk Single Page */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-8, .col-4 {
    padding: 0 15px;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Main Content */
.site-main {
    padding: 30px 0;
}

/* Video Grid - 5 kolom untuk desktop */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.video-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.2);
    border-color: var(--accent-pink);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-pink);
    font-size: 40px;
    opacity: 0.9;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-title a {
    color: var(--text-light);
    text-decoration: none;
}

.video-title a:hover {
    color: var(--accent-pink);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: var(--card-bg);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--accent-pink);
    color: white;
}

/* Single Video Page - HANYA 1 VIDEO */
.single-video-container {
    background-color: var(--secondary-black);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.video-player-wrapper {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    color: var(--text-light);
    line-height: 1.8;
}

.video-content h1 {
    color: var(--accent-pink);
    margin-bottom: 20px;
    font-size: 28px;
}

.video-meta-single {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #333;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: var(--accent-pink);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-pink);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--accent-pink);
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.recent-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-pink);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--light-pink);
    transform: translateY(-3px);
}

/* Tags */
.tags {
    margin-top: 20px;
}

.tags a {
    display: inline-block;
    background-color: var(--secondary-black);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tags a:hover {
    background-color: var(--accent-pink);
    color: white;
}

/* Comments */
.comments-section {
    background-color: var(--secondary-black);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.comment-list {
    list-style: none;
    margin-top: 30px;
}

.comment {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-pink);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-meta {
    color: var(--text-gray);
    font-size: 14px;
}

.comment-content {
    line-height: 1.6;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.comment-form .submit {
    background-color: var(--accent-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.comment-form .submit:hover {
    background-color: var(--light-pink);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-black);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 3px solid var(--accent-pink);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-gray);
    font-size: 14px;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    border-top-color: var(--accent-pink);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE DESIGN */
/* Desktop besar: 5 kolom */
@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Laptop: 4 kolom */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet landscape: 3 kolom */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .col-8, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-4 {
        margin-top: 40px;
    }
}

/* Tablet portrait: 2 kolom (sesuai permintaan) */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .categories-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Mobile: 2 kolom (sesuai permintaan) */
@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-thumbnail {
        height: 150px;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 14px;
    }
}

/* Mobile kecil: 1 kolom */
@media (max-width: 400px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnail {
        height: 180px;
    }
}

/* Animasi hover untuk kategori */
.categories-menu li a {
    position: relative;
    overflow: hidden;
}

.categories-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-pink);
    transition: width 0.3s;
}

.categories-menu li a:hover::after {
    width: 100%;
}