/*
Theme Name: Modding Verse
Theme URI: https://moddingverse.com
Author: Modding Verse
Author URI: https://moddingverse.com
Description: A modern, clean WordPress theme for sharing PC game mods. Features custom post types for mods, screenshot galleries, download management, and open commenting — all styled with Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modding-verse
Tags: gaming, mods, dark, responsive, custom-post-types
*/

/* ===== BASE RESETS & CUSTOM STYLES ===== */

/* Tailwind handles most styling via CDN. These are overrides and custom components. */

:root {
    --mv-bg-primary: #0f172a;
    --mv-bg-secondary: #1e293b;
    --mv-bg-card: #1e293b;
    --mv-bg-card-hover: #263348;
    --mv-accent: #6366f1;
    --mv-accent-hover: #818cf8;
    --mv-accent-glow: rgba(99, 102, 241, 0.25);
    --mv-text-primary: #f1f5f9;
    --mv-text-secondary: #94a3b8;
    --mv-text-muted: #64748b;
    --mv-border: #334155;
    --mv-success: #22c55e;
    --mv-danger: #ef4444;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--mv-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--mv-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mv-text-muted);
}

/* Screenshot gallery lightbox */
.mv-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mv-lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.mv-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.mv-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mv-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}
.mv-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mv-lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}
.mv-lightbox-prev { left: 20px; }
.mv-lightbox-next { right: 20px; }

/* Download button pulse animation */
@keyframes mv-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--mv-accent-glow); }
    50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}
.mv-download-btn {
    animation: mv-pulse 2s infinite;
}
.mv-download-btn:hover {
    animation: none;
}

/* Card hover lift */
.mv-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Category pill active state */
.mv-pill-active {
    background: var(--mv-accent) !important;
    color: white !important;
}

/* Fade-in animation for page loads */
@keyframes mv-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.mv-fade-in {
    animation: mv-fadeIn 0.5s ease forwards;
}

/* Staggered children animation */
.mv-stagger > * {
    opacity: 0;
    animation: mv-fadeIn 0.5s ease forwards;
}
.mv-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.mv-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.mv-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.mv-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.mv-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.mv-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.mv-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.mv-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.mv-stagger > *:nth-child(9) { animation-delay: 0.45s; }

/* Comment styling */
.mv-comment-form textarea:focus,
.mv-comment-form input:focus {
    outline: none;
    border-color: var(--mv-accent);
    box-shadow: 0 0 0 3px var(--mv-accent-glow);
}

/* WP alignment classes */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* Pagination */
.mv-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--mv-bg-card);
    color: var(--mv-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--mv-border);
    font-size: 0.875rem;
}
.mv-pagination .page-numbers:hover {
    background: var(--mv-accent);
    color: white;
    border-color: var(--mv-accent);
}
.mv-pagination .page-numbers.current {
    background: var(--mv-accent);
    color: white;
    border-color: var(--mv-accent);
}
