/*
Theme Name: TerminalCurator
Theme URI: https://terminalcurator.io
Author: TerminalCurator
Author URI: https://terminalcurator.io
Description: A high-end Tech-Noir portfolio theme designed for IT professionals. Features a Bento-Box layout philosophy, glassmorphism effects, and a Cyber Lime accent palette. Built with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terminalcurator
Tags: dark, portfolio, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   BASE FALLBACK — CSS-only definitions for custom Tailwind utilities.
   These ensure the theme's identity renders even before/without the CDN.
   When Tailwind CDN loads, its generated classes will layer on top.
   ========================================================================== */

html, body {
    background-color: #131313;
    color: #e5e2e1;
}

/* --- Custom color utilities (match tailwind.config extend.colors) --- */

/* Backgrounds */
.bg-surface                    { background-color: #131313; }
.bg-surface-dim                { background-color: #131313; }
.bg-surface-bright             { background-color: #3a3939; }
.bg-surface-container-lowest   { background-color: #0e0e0e; }
.bg-surface-container-low      { background-color: #1c1b1b; }
.bg-surface-container          { background-color: #201f1f; }
.bg-surface-container-high     { background-color: #2a2a2a; }
.bg-surface-container-highest  { background-color: #353534; }
.bg-background                 { background-color: #131313; }
.bg-primary-fixed              { background-color: #c3f400; }
.bg-primary-fixed-dim          { background-color: #abd600; }
.bg-primary-container          { background-color: #c3f400; }
.bg-secondary                  { background-color: #b3c5ff; }
.bg-secondary-container        { background-color: #0266ff; }
.bg-error                      { background-color: #ffb4ab; }
.bg-error-container            { background-color: #93000a; }

/* Text colors */
.text-on-surface               { color: #e5e2e1; }
.text-on-surface-variant       { color: #c4c9ac; }
.text-on-background            { color: #e5e2e1; }
.text-primary-fixed            { color: #c3f400; }
.text-primary-fixed-dim        { color: #abd600; }
.text-on-primary               { color: #283500; }
.text-on-primary-fixed         { color: #161e00; }
.text-on-primary-fixed-variant { color: #3c4d00; }
.text-on-primary-container     { color: #556d00; }
.text-secondary                { color: #b3c5ff; }
.text-secondary-fixed-dim      { color: #b3c5ff; }
.text-on-secondary             { color: #002b75; }
.text-on-secondary-fixed       { color: #001849; }
.text-on-secondary-container   { color: #f9f7ff; }
.text-on-error                 { color: #690005; }
.text-on-error-container       { color: #ffdad6; }
.text-inverse-surface          { color: #e5e2e1; }
.text-inverse-on-surface       { color: #313030; }
.text-inverse-primary          { color: #506600; }
.text-outline                  { color: #8e9379; }
.text-outline-variant          { color: #444933; }

/* Arbitrary value classes used in templates */
.text-\[\#C3F400\]            { color: #c3f400; }
.bg-\[\#C3F400\]              { background-color: #c3f400; }
.bg-\[\#0E0E0E\]              { background-color: #0e0e0e; }
.bg-\[\#131313\]\/10          { background-color: rgba(19, 19, 19, 0.1); }
.border-\[\#C3F400\]          { border-color: #c3f400; }
.hover\:text-\[\#C3F400\]:hover { color: #c3f400; }

/* Border colors */
.border-primary-fixed          { border-color: #c3f400; }
.border-secondary              { border-color: #b3c5ff; }
.border-outline-variant        { border-color: #444933; }
.border-outline                { border-color: #8e9379; }

/* Selection */
.selection\:bg-primary-fixed ::selection  { background-color: #c3f400; }
.selection\:text-on-primary-fixed ::selection { color: #161e00; }

/* --- Font family utilities --- */
.font-headline { font-family: 'Space Grotesk', sans-serif; }
.font-body     { font-family: 'Inter', sans-serif; }
.font-label    { font-family: 'JetBrains Mono', monospace; }
.font-mono     { font-family: 'JetBrains Mono', monospace; }

/* ==========================================================================
   CUSTOM STYLES (beyond Tailwind)
   ========================================================================== */

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(142, 147, 121, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Cyber glow effects */
.cyber-glow {
    box-shadow: 0 0 15px rgba(195, 244, 0, 0.3);
}

.bento-glow:hover {
    box-shadow: 0 0 20px rgba(195, 244, 0, 0.15);
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Code syntax blocks */
.code-syntax {
    background: #0e0e0e;
    padding: 1.5rem;
    border-radius: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    border-left: 4px solid #c3f400;
}

.token-keyword { color: #b3c5ff; }
.token-string { color: #c3f400; }
.token-comment { color: #656464; }
.token-function { color: #ffffff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #131313; }
::-webkit-scrollbar-thumb { background: #353534; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c3f400; }

/* WordPress specific overrides */
.wp-block-image img {
    border-radius: 0.75rem;
}

/* Profile page content wrapper — let Custom HTML blocks flow naturally */
.tc-profile-content > * + * {
    margin-top: 0;
}

/* Single post content styling */
.entry-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: #ffffff;
}

.entry-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: #ffffff;
}

.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: rgba(229, 226, 225, 0.8);
}

.entry-content a {
    color: #c3f400;
    text-decoration: underline;
    text-decoration-color: rgba(195, 244, 0, 0.3);
    transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
    text-decoration-color: #c3f400;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: rgba(229, 226, 225, 0.8);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #c3f400;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(196, 201, 172, 0.8);
}

.entry-content pre {
    background: #0e0e0e;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c3f400;
}

.entry-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #c3f400;
}

.entry-content pre code {
    color: #e5e2e1;
}

.entry-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* Comment form styling */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #0e0e0e;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #b3c5ff;
}

.comment-form label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c4c9ac;
    display: block;
    margin-bottom: 0.5rem;
}

.comment-form .submit {
    background: #c3f400;
    color: #161e00;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.comment-form .submit:hover {
    box-shadow: 0 0 25px rgba(195, 244, 0, 0.5);
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(68, 73, 51, 0.3);
    color: #e5e2e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    transition: all 0.2s;
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    background: #c3f400;
    color: #161e00;
    border-color: #c3f400;
}

/* WordPress nav menu styling */
.tc-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-nav-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: color 0.2s;
}

.tc-nav-menu li a:hover,
.tc-nav-menu li.current-menu-item a,
.tc-nav-menu li.current_page_item a {
    color: #c3f400;
    font-weight: 700;
    border-bottom: 2px solid #c3f400;
    padding-bottom: 0.25rem;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}
