/*
Theme Name: CumComing Clone (Red/Dark)
Theme URI: http://example.com/
Author: AI Developer
Description: Tema responsif video tube dengan fitur lengkap: Creator Page, Auth Pages, Video Grid, Support, dan Customizer.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: cc-theme
*/

:root {
    --bg-body: #0a0a0a;       /* Hitam pekat background */
    --bg-header: #111111;     /* Header sedikit lebih terang */
    --bg-card: #141414;       /* Card background */
    --bg-input: #ffffff;      /* Input field putih */
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --color-primary: #b30000; /* Merah sesuai logo/tombol */
    --color-hover: #d60000;
    --border-color: #222;
    
    --container-width: 1400px;
    --header-height: 70px;
    --radius: 4px;
}

/* Reset */
* { box-sizing: border-box; }
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0; padding: 0;
    font-size: 14px;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--color-primary); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea { font-family: inherit; }

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-hover); color: #fff; }
.btn-dark { background: #333; color: #fff; }
.btn-dark:hover { background: #444; }
.btn-outline { border: 1px solid #444; color: #ccc; background: transparent; }

/* --- HEADER (Fixed Top) --- */
header.site-header {
    background-color: var(--bg-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.site-logo img { height: 40px; }
.site-logo span { font-size: 24px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: -1px; }
.site-logo span span { color: var(--color-primary); }

/* Search Bar (Tengah) */
.header-search { flex: 1; margin: 0 40px; max-width: 600px; position: relative; }
.search-form { display: flex; }
.search-input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 4px 0 0 4px;
    border: none;
    background: #fff;
    color: #000;
    height: 38px;
}
.search-submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    height: 38px;
}

/* Header Right Buttons */
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-upload { background: #333; padding: 6px 12px; font-size: 12px; display: flex; align-items: center; gap: 5px; }

/* --- NAVIGATION & FILTERS (Tabs: New / Trending) --- */
.sub-header { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.page-title-icon { display: flex; align-items: center; font-weight: 700; font-size: 16px; text-transform: uppercase; color: #fff; }
.page-title-icon svg { margin-right: 8px; fill: var(--color-primary); width: 20px; }
.filter-tabs .tab {
    background: #222;
    padding: 6px 15px;
    font-size: 12px;
    margin-left: 5px;
    border-radius: 3px;
    color: #888;
}
.filter-tabs .tab.active { background: var(--color-primary); color: #fff; }

/* --- VIDEO GRID SYSTEM --- */
.video-grid {
    display: grid;
    gap: 15px;
    /* Default Desktop: 4 kolom (bisa diubah via Customizer) */
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    margin-bottom: 40px;
}
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card Item */
.video-card {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}
.video-card:hover .thumb-img { transform: scale(1.05); filter: brightness(1.1); }
.thumb-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius);
    background: #222;
}
.thumb-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.duration-badge {
    position: absolute; bottom: 5px; right: 5px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 10px; padding: 2px 4px;
    border-radius: 2px;
}
.hd-badge {
    position: absolute; top: 5px; right: 5px;
    background: var(--color-primary);
    color: #fff; font-weight: bold;
    font-size: 9px; padding: 1px 3px;
    border-radius: 2px;
}
.video-meta-data {
    position: absolute; bottom: 5px; left: 5px;
    display: flex; gap: 5px;
}
.meta-icon {
    background: rgba(0,0,0,0.6);
    color: #fff; font-size: 10px;
    padding: 2px 5px; border-radius: 3px;
    display: flex; align-items: center;
}

/* Card Info Below */
.video-info { padding: 8px 0; }
.video-title {
    font-size: 13px; font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ddd;
}
.video-author { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }
.video-author:hover { color: var(--color-primary); }

/* --- SINGLE PAGE (Player) --- */
.single-container { max-width: 1100px; margin: 20px auto; }
.video-player-box {
    width: 100%; aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-radius: 4px; overflow: hidden;
}
.play-btn-overlay {
    width: 70px; height: 70px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff;
    cursor: pointer;
}
.play-triangle {
    width: 0; height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 5px;
}
.single-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.author-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: #1a1a1a; padding: 10px 15px;
    border-radius: 4px; margin-bottom: 20px;
}
.author-info { display: flex; align-items: center; gap: 10px; }
.avatar-small { width: 35px; height: 35px; border-radius: 50%; background: #333; }
.action-buttons { display: flex; gap: 5px; }
.act-btn { background: #333; border: none; color: #ccc; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.act-btn.red { background: var(--color-primary); color: #fff; }

.tags-section { margin: 15px 0; }
.tag-pill {
    display: inline-block;
    background: #2a2a2a; color: #aaa;
    padding: 3px 8px; font-size: 11px;
    border-radius: 3px; margin-right: 5px; margin-bottom: 5px;
}

/* --- CREATOR PAGE --- */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 20px 0;
}
.creator-item { display: flex; flex-direction: column; align-items: center; }
.creator-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: 0.2s;
    margin-bottom: 8px;
    background: #222;
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-item:hover .creator-avatar { border-color: var(--color-primary); }
.creator-name { font-size: 12px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 4px; }
.verified-icon { color: #1da1f2; font-size: 10px; }

/* --- AUTH PAGES (Login/Signup/Support) --- */
.auth-wrapper {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    background: url('images/bg-pattern.png') repeat;
}
.auth-box {
    background: #161616;
    border: 1px solid #333;
    padding: 30px;
    width: 100%; max-width: 420px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.auth-title { margin-bottom: 20px; font-size: 20px; text-transform: uppercase; color: #fff; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-control {
    width: 100%; padding: 12px;
    background: #fff; border: none;
    border-radius: 4px; font-size: 14px;
}
.google-btn {
    background: #2a2a2a; color: #fff;
    width: 100%; padding: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px; border-radius: 4px; font-size: 13px;
}
.auth-links { margin-top: 15px; font-size: 12px; color: #666; }
.auth-links a { color: var(--color-primary); }

/* --- FOOTER --- */
.site-footer {
    background: #3a0000; /* Dark Red gradient effect from image */
    background: linear-gradient(to bottom, #0a0a0a 0%, #4a0000 100%);
    padding: 50px 0 20px;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #222;
}
.footer-logo { max-width: 150px; margin: 0 auto 20px; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #ccc; margin: 0 10px; font-size: 12px; text-transform: uppercase; font-weight: 600; }
.footer-copy { font-size: 11px; color: #777; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.rta-badge { background: #fff; color: #000; padding: 2px 5px; font-weight: bold; font-size: 10px; display: inline-block; margin-left: 5px; }
