/*
Theme Name: NexusROM Premium
Theme URI: https://github.com/nexusrom-premium
Author: Elite WordPress Developer
Description: A lightweight, premium Nintendo Switch ROM portal theme with high performance, elegant typography, light/dark mode adaptability, and optimized layout.
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: nexusrom-premium
*/

/* Reset & Base Styles */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *:before, *:after {
    box-sizing: inherit;
}

a {
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #1e40af;
}

/* Force Pointer on Interactive Elements */
.game-card,
.game-card img,
.screenshot-item,
.screenshot-item img,
header,
header *,
button,
input[type="submit"],
.btn,
.nav-link,
.badge,
.breadcrumb a,
.pagination a,
.see-all-link {
    cursor: pointer !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title span {
    color: #1d4ed8;
}

.site-navigation {
    display: flex;
    gap: 20px;
}

.site-navigation a {
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
}

.site-navigation a:hover {
    color: #1d4ed8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 40px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px 0;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    color: #6b7280;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.search-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    overflow: hidden;
    background: #fff;
    padding: 4px;
}

.search-input-group input[type="search"] {
    flex-grow: 1;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
}

.search-input-group button {
    background-color: #1d4ed8;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-input-group button:hover {
    background-color: #1e40af;
}

/* Home Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 30px auto 10px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background-color: #1d4ed8;
    border-radius: 2px;
}

.see-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

.see-all-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Home Grid Layout & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
        padding: 12px;
    }
}

.game-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.game-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%; /* Aspect ratio of Switch game case covers */
    background-color: #f3f4f6;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.game-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.03);
}

.game-card-content {
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 6px 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.game-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.game-tags {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Post Page (Single) Styling */
.single-post-wrapper {
    background-color: #ffffff;
    padding: 30px 0 60px 0;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb span {
    color: #d1d5db;
}

/* Single Header layout */
.single-header-box {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .single-header-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

.single-featured-image {
    width: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-title-info {
    flex-grow: 1;
}

.single-title-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.single-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .single-badges-row {
        justify-content: center;
    }
}

.badge-format {
    background-color: #1d4ed8;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-version {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-size: 16px;
}

.rating-container span.rating-text {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
}

/* Post Content */
.post-main-content {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 40px;
}

.post-main-content h2, .post-main-content h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* Screenshots Section */
.screenshots-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.screenshots-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.screenshot-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9fafb;
    transition: transform 0.2s;
    aspect-ratio: 16 / 9;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

/* Game Information Section (2-Column Grid) */
.game-info-container {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.game-info-container h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

@media (max-width: 640px) {
    .game-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

/* Download Section */
.download-section {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.download-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 8px 0;
}

.download-desc {
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download {
    background-color: #1d4ed8;
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.15);
    transition: background-color 0.2s, transform 0.1s;
}

.btn-download:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    color: white;
}

.btn-download:active {
    transform: translateY(0);
}

.btn-alternative {
    background-color: white;
    color: #1d4ed8;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    border: 1px solid #bfdbfe;
    transition: background-color 0.2s;
}

.btn-alternative:hover {
    background-color: #f0f7ff;
}

/* Footer Styling */
.site-footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #4b5563;
}

.footer-links a:hover {
    color: #1d4ed8;
}

/* 🎮 Premium Compact Game Card Normal Styling */
.game-box, .game-card, a[class*="game"] {
    border: 1px solid #e5e7eb !important; /* Normal halat me halki grey line hogi */
    border-radius: 12px !important; /* Corners bilkul is photo jaise gol honge */
    overflow: hidden !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    padding: 10px !important;
    display: block !important;
    background: #ffffff !important;
}

/* 🔥 Hover Effect: Mouse lane par Logo jaisa Neon Green Border */
.game-box:hover, .game-card:hover, a[class*="game"]:hover {
    border: 2px solid #00cc88 !important; /* Strict 2px solid Neon Green line banegi */
    box-shadow: 0 4px 15px rgba(0, 204, 136, 0.15) !important; /* Halka sa classy green glow */
}

/* Card ke andar ki image ko is photo jaisa full smooth karne ke liye */
.game-box img, .game-card img, a[class*="game"] img {
    border-radius: 8px !important;
    width: 100% !important;
    display: block !important;
}