/*
Theme Name: OMEKIN
Description: Grid-based theme with Dark/Light mode, Video Hover, and Live Counters.
Version: 1.0
Author: Custom Build
*/

:root {
    --bg-color: #f5f5f5;
    --text-color: #111;
    --card-bg: #ffffff;
    --border-color: #ddd;
    --accent: #e0245e;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Header & Live Counter */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 1px; }

.live-counter {
    color: #ff3b30;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    width: 10px; height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Grid Layout */
.omekin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.grid-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Video Hover Container */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    position: relative;
}
.video-container video, .video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Meta & Buttons */
.item-meta { padding: 15px; }
.item-meta h2 { font-size: 16px; margin: 0 0 10px 0; }

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.btn:hover { background: var(--border-color); }
.btn-like { display: flex; align-items: center; gap: 5px; }
.btn-like.liked { color: var(--accent); border-color: var(--accent); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px;
}
.pagination a, .pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
}
.pagination .current { background: var(--text-color); color: var(--bg-color); }