/*
Theme Name: GripNews Dark
Theme URI: https://gripnews.uk
Description: Dark gaming-inspired theme for GripNews — Gaming News, Reviews & Guides
Author: GripNews
Author URI: https://gripnews.uk
Template: twentytwentyfive
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: gripnews-dark
*/

/* ═══════════════════════════════════════════
   GRIPNEWS DARK THEME v2 — Gaming Aesthetic
   ═══════════════════════════════════════════ */

/* === Global === */
html, body {
    background: #0a0a0f !important;
    color: #e0e0e0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* === GripNews Header === */
.gn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gn-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.gn-logo {
    text-decoration: none !important;
}

.gn-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -0.03em;
}

.gn-logo-accent {
    color: #ff3b3b !important;
}

.gn-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.gn-nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.gn-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

.gn-nav-link.active {
    color: #22c55e !important;
}

.gn-nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.4rem;
}

.gn-nav-ext {
    color: #666 !important;
    font-size: 0.78rem;
}

.gn-nav-cta {
    background: rgba(34,197,94,0.1) !important;
    color: #22c55e !important;
    font-weight: 600;
    border: 1px solid rgba(34,197,94,0.2);
}

.gn-nav-cta:hover {
    background: rgba(34,197,94,0.18) !important;
}

/* Mobile menu toggle */
.gn-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.gn-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.gn-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.gn-menu-toggle.active span:nth-child(2) { opacity: 0; }
.gn-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
    .gn-menu-toggle { display: flex; }
    .gn-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.98);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    .gn-nav.open { display: flex; }
    .gn-nav-link { padding: 0.6rem 1rem; width: 100%; }
    .gn-nav-divider { width: 100%; height: 1px; margin: 0.3rem 0; }
}

/* === GripNews Footer === */
.gn-footer {
    background: #060609 !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.gn-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.gn-footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    margin-bottom: 0.5rem;
}

.gn-footer-logo span {
    color: #ff3b3b !important;
}

.gn-footer-desc {
    color: #555 !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
}

.gn-footer-col h4 {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem !important;
}

.gn-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: #555 !important;
    text-decoration: none !important;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.gn-footer-col a:hover {
    color: #22c55e !important;
}

.gn-footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.gn-footer-bottom p {
    text-align: center;
    font-size: 0.75rem;
    color: #444 !important;
}

.gn-footer-bottom a {
    color: #555 !important;
    text-decoration: none !important;
}

.gn-footer-bottom a:hover {
    color: #22c55e !important;
}

@media (max-width: 768px) {
    .gn-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gn-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* === Override default WP header/footer for block templates === */
header.wp-block-template-part,
.wp-block-template-part[data-type="header"] {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Site title */
.wp-block-site-title a,
.wp-block-site-title {
    color: #ff3b3b !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

/* Nav links in block templates */
.wp-block-navigation a,
.wp-block-navigation-item a,
.wp-block-navigation .wp-block-navigation-item__content {
    color: #a0a0b0 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation-item a:hover {
    color: #22c55e !important;
}

/* === Main Content Area === */
main,
.wp-block-group,
.wp-site-blocks {
    background: #0a0a0f !important;
}

/* === Blog Page Title === */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

.wp-block-query-title,
.wp-block-post-title {
    color: #ffffff !important;
}

/* === Post Cards / Entries (Block Template) === */
.wp-block-post-template {
    gap: 2rem !important;
}

.wp-block-post {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
}

.wp-block-post:hover {
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.wp-block-post-title a,
.wp-block-post-title {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.wp-block-post-title a:hover {
    color: #22c55e !important;
}

.wp-block-post-excerpt,
.wp-block-post-excerpt__excerpt,
.wp-block-post-content,
.entry-content,
p {
    color: #a0a0b0 !important;
    line-height: 1.8 !important;
}

.wp-block-post-date,
.wp-block-post-date a {
    color: #666680 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-block-post-terms a,
.wp-block-post-terms {
    color: #22c55e !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* === Single Post === */
.wp-block-post-content p,
.entry-content p {
    color: #c0c0d0 !important;
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.entry-content h2,
.entry-content h3 {
    color: #ffffff !important;
    margin-top: 2.5rem !important;
}

/* Code blocks */
code, pre, .wp-block-code {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #22c55e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

pre {
    padding: 1.5rem !important;
}

p code, li code {
    padding: 0.15em 0.4em !important;
    font-size: 0.9em !important;
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
    border-radius: 4px !important;
}

/* === Links === */
a {
    color: #22c55e !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

a:hover {
    color: #4ade80 !important;
}

/* === Buttons / Read More === */
.wp-block-post-excerpt__more-link,
.wp-element-button,
.wp-block-button__link {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wp-block-post-excerpt__more-link:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* === Pagination === */
.wp-block-query-pagination a,
.wp-block-query-pagination span {
    color: #a0a0b0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
}

.wp-block-query-pagination a:hover {
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

/* === Selection === */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #ffffff;
}

/* === Separator === */
hr, .wp-block-separator {
    border-color: rgba(255, 255, 255, 0.08) !important;
    opacity: 1;
}

/* === Blockquote === */
blockquote, .wp-block-quote {
    border-left: 4px solid #22c55e !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0 8px 8px 0 !important;
}

/* === Images === */
.wp-block-image img {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* === Tables === */
table, .wp-block-table {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

td {
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #c0c0d0 !important;
}

/* === Comments === */
.wp-block-comments-title,
.comment-reply-title {
    color: #ffffff !important;
}

.comment-body {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

/* === Forms / Inputs === */
input, textarea, select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

input:focus, textarea:focus {
    border-color: #22c55e !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

/* === Override Twenty Twenty-Five specifics === */
.wp-block-group.alignfull {
    background: transparent !important;
}

.has-background {
    background: transparent !important;
}

.wp-block-cover__background,
.wp-block-cover {
    background-color: #0a0a0f !important;
}

.wp-block-term-description {
    color: #a0a0b0 !important;
}

/* Hide default WP footer when our custom one is present */
body.gripnews-front-page footer.wp-block-template-part {
    display: none !important;
}