/*
Theme Name: Delta Scripts Theme
Theme URI: https://growagarden-scripts.com
Author: Delta Scripts Team
Author URI: https://growagarden-scripts.com
Description: YouTube-style dark Roblox script-sharing platform. Full black design with script grid cards, sidebar, and modern dark UI.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: delta-scripts
Tags: gaming, scripts, roblox, dark-mode, custom-post-type

Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ── Google Font ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ── Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, html.dark { color-scheme: dark; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0f0f0f;
    color: #f1f1f1;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a { color: #f1f1f1; text-decoration: none; }
a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
    background-color: #0f0f0f;
    border-bottom: 1px solid #272727;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Hero ───────────────────────────────────── */
.hero-glow {
    position: absolute;
    top: 20%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 800px; height: 600px;
    background: radial-gradient(circle, rgba(255,0,0,0.06) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* ── Script Cards (YouTube-style) ───────────── */
.script-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    display: block;
    text-decoration: none;
    color: #f1f1f1;
}
.script-card:hover { color: #fff; }

.script-thumb-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    margin-bottom: 10px;
}

.script-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.script-card:hover .script-thumb { transform: scale(1.04); }

/* ── Badges ─────────────────────────────────── */
.badge-free {
    background: rgba(6,214,160,0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.badge-key {
    background: rgba(255,106,0,0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.badge-views {
    background: transparent;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    display: inline;
}

/* ── Search ─────────────────────────────────── */
.search-container {
    background: #121212;
    border: 1px solid #3f3f3f;
    border-radius: 9999px;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: none;
}
.search-container:focus-within {
    border-color: #065fd4;
    box-shadow: 0 0 0 1px #065fd4;
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 9999px 0 0 9999px;
    font-size: 14px;
    color: #f1f1f1;
    background: transparent;
    font-family: 'Roboto', sans-serif;
}
.search-input::placeholder { color: #aaa; }

.search-button {
    background: #272727;
    color: #f1f1f1;
    padding: 10px 20px;
    border-radius: 0 9999px 9999px 0;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s;
    border: none;
    border-left: 1px solid #3f3f3f;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}
.search-button:hover { background: #3f3f3f; }

@media (max-width: 640px) {
    .search-button { padding: 8px 14px; font-size: 13px; }
    .search-input  { padding: 8px 14px; font-size: 13px; }
}

/* ── FAQ ─────────────────────────────────────── */
.faq-item {
    border: 1px solid #272727;
    border-radius: 10px;
    background: #1a1a1a;
    margin-bottom: 1rem;
}
.faq-item summary { color: #f1f1f1; padding: 1rem; cursor: pointer; font-weight: 600; }
.faq-item p { color: #aaa; padding: 0 1rem 1rem; margin: 0; }

/* ── Status ─────────────────────────────────── */
.online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
}
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

/* ── Footer ─────────────────────────────────── */
footer {
    background-color: #0f0f0f;
    border-top: 1px solid #272727;
    color: #aaa;
}
footer h3, footer h4, footer .text-slate-800, footer .text-slate-700 { color: #f1f1f1 !important; }
footer .text-slate-500, footer .text-slate-400 { color: #aaa !important; }
footer a { color: #aaa; }
footer a:hover { color: #f1f1f1; }

/* ── Discord Btn ─────────────────────────────── */
.discord-btn {
    background-color: #5865f2;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    transition: opacity 0.2s;
    border: none; cursor: pointer; text-decoration: none;
}
.discord-btn:hover { opacity: 0.9; color: #fff; }

/* ── Code Block ───────────────────────────────── */
.code-block {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.code-block pre { margin: 0; padding: 0; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: inherit; }
.code-block code { color: #4ade80; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; }

/* ── Feature Item ─────────────────────────────── */
.feature-item::before { content: "+"; color: #3ea6ff; font-weight: 800; margin-right: 8px; }

/* ── Sidebar Script Card ─────────────────────── */
.sidebar-script-card { background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.sidebar-script-card:hover img { transform: scale(1.05); }

/* ── Forum / Request Card ──────────────────────── */
.request-card {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.request-card:hover { border-color: #3ea6ff; }
.request-card h3 { color: #f1f1f1 !important; }
.request-card p  { color: #aaa !important; }

.badge-category {
    background: #272727;
    color: #aaa;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.modal-overlay { background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); }

/* ── Form Fields ──────────────────────────────── */
.form-card {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
}

.input-field {
    background: #0f0f0f;
    border: 1px solid #3f3f3f;
    border-radius: 8px;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    color: #f1f1f1;
    transition: border-color 0.2s;
    font-family: 'Roboto', sans-serif;
}
.input-field:focus { border-color: #3ea6ff; outline: none; }
.input-field::placeholder { color: #666; }

/* ── Contact Card ────────────────────────────── */
.contact-card {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* ── Executor Tag ────────────────────────────── */
.executor-tag {
    background: rgba(62,166,255,0.1);
    border: 1px solid rgba(62,166,255,0.25);
    color: #3ea6ff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

/* ── Pagination ──────────────────────────────── */
.xeno-pagination {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem;
}
.xeno-pagination a,
.xeno-pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.xeno-pagination a { background: #272727; border: 1px solid #3f3f3f; color: #f1f1f1; }
.xeno-pagination a:hover { background: #3f3f3f; }
.xeno-pagination .current { background: #3ea6ff; color: #0f0f0f; border-color: #3ea6ff; }

/* ── Toast ───────────────────────────────────── */
.xeno-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #3ea6ff; color: #0f0f0f;
    padding: 10px 22px; border-radius: 8px;
    font-weight: 700; font-size: 14px; z-index: 9999;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ── Mobile Menu ─────────────────────────────── */
.mobile-menu-dropdown {
    background: #1a1a1a !important;
    border-color: #272727 !important;
}
.mobile-menu-dropdown a { color: #aaa; }
.mobile-menu-dropdown a:hover { color: #f1f1f1; }

/* ── WordPress Overrides ─────────────────────── */
.wp-block-post-content { max-width: none; }

/* Force dark on all common light-mode WP elements */
.bg-white, .bg-slate-50 { background-color: #1a1a1a !important; }
.bg-slate-100 { background-color: #272727 !important; }
.border-slate-100, .border-slate-200 { border-color: #272727 !important; }
.text-slate-900, .text-slate-800 { color: #f1f1f1 !important; }
.text-slate-600, .text-slate-500, .text-slate-400 { color: #aaa !important; }
.text-slate-700 { color: #ccc !important; }

.card {
    background: #1a1a1a;
    border: 1px solid #272727;
    transition: border-color 0.2s;
}
.card:hover { border-color: #3ea6ff; box-shadow: none; transform: none; }

/* ── Logo ────────────────────────────────────── */
.site-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

/* ── Heading overrides ───────────────────────── */
h1, h2, h3, h4, h5, h6 { color: #f1f1f1; }
p { color: #aaa; }
label { color: #f1f1f1; }