/*
Theme Name: Webbiverse Terminal Frame Studio
Theme URI: https://webbiverse.com
Author: Webbiverse
Author URI: https://webbiverse.com
Description: Zero-bloat SPA theme for the Webbiverse Terminal Frame Studio — dark terminal aesthetic with cyan accents.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webbiverse-terminal-frame-theme
*/

/* ── Terminal Frame Overrides — island-core provides a11y, html base ─ */

/* SPA needs aggressive margin/padding reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

/* Links inherit for card layouts */
a { color: inherit; text-decoration: none; }

/* ── SPA Root ──────────────────────────────────────────────────── */
#root {
    min-height: 100vh;
}

/* ── Base Dark Theme ───────────────────────────────────────────── */
body.tf-body {
    background: #1a1a1a;
    color: #E5E5E5;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Terminal Color Variables ──────────────────────────────────── */
:root {
    --tf-bg: #1a1a1a;
    --tf-panel: #262626;
    --tf-cyan: #00FFFF;
    --tf-cyan-dim: rgba(0, 255, 255, 0.1);
    --tf-text: #E5E5E5;
    --tf-border: #404040;
}

/* ── Gallery Page Layout ───────────────────────────────────────── */
.tf-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #111 0%, #1a1a1a 35%);
}

.tf-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Gallery Grid ──────────────────────────────────────────────── */
.tf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tf-card {
    background: var(--tf-panel);
    border: 1px solid var(--tf-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.tf-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tf-card-body {
    padding: 1rem;
}

.tf-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tf-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf-card-meta {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.tf-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    gap: 1rem;
}

.tf-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--tf-cyan);
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.tf-404-message {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--tf-cyan);
    color: var(--tf-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tf-btn:hover {
    background: var(--tf-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* ── Custom Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #404040; }
::-webkit-scrollbar-thumb:hover { background: #00FFFF; }
