/*
 Theme Name:     Twenty Twenty-Five Lana Child One
 Theme URI:      https://biscuitbytes.com/
 Description:    A child theme for Twenty Twenty-Five — Candy Neon Aesthetic (Tailwind-powered)
 Author:         Lana Biscornet
 Author URI:     https://biscuitbytes.com/
 Template:       twentytwentyfive
 Version:        2.2.0
 Text Domain:    twentytwentyfive-child
*/

/* ==========================================================================
   BACKGROUND — Candy glow orbs + sparkle stars
   ========================================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(255, 51, 102, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 30%, rgba(0, 207, 255, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(204, 153, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 350px 350px at 75% 90%, rgba(0, 255, 170, 0.06) 0%, transparent 70%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px,  rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px   1px   at 80px 60px,  rgba(0, 207, 255, 0.6),   transparent),
        radial-gradient(1.5px 1.5px at 150px 120px, rgba(255, 51, 102, 0.5), transparent),
        radial-gradient(1px   1px   at 200px 50px,  rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px   1px   at 60px 180px,  rgba(0, 255, 170, 0.5),  transparent),
        radial-gradient(1.5px 1.5px at 260px 140px, rgba(204, 153, 255, 0.6), transparent);
    background-repeat: repeat;
    background-size: 300px 220px;
    opacity: 0.7;
}

/* ==========================================================================
   GLITCH TEXT EFFECT
   ========================================================================== */

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D0D1A;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #FF00AA;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00CFFF, 2px 2px #FF00AA;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%   { clip: rect(31px, 9999px, 94px, 0); }
    20%  { clip: rect(67px, 9999px, 12px, 0); }
    40%  { clip: rect(15px, 9999px, 78px, 0); }
    60%  { clip: rect(88px, 9999px, 42px, 0); }
    80%  { clip: rect(5px, 9999px, 55px, 0); }
    100% { clip: rect(67px, 9999px, 62px, 0); }
}

@keyframes glitch-anim2 {
    0%   { clip: rect(65px, 9999px, 100px, 0); }
    20%  { clip: rect(20px, 9999px, 80px, 0); }
    40%  { clip: rect(50px, 9999px, 35px, 0); }
    60%  { clip: rect(10px, 9999px, 90px, 0); }
    80%  { clip: rect(70px, 9999px, 45px, 0); }
    100% { clip: rect(10px, 9999px, 30px, 0); }
}

/* ==========================================================================
   CRT SCAN LINE OVERLAY
   ========================================================================== */

.crt-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 1.5rem;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.015));
    background-size: 100% 2px, 3px 100%;
}

/* ==========================================================================
   GAME DRAWER
   ========================================================================== */

.game-drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: #0D0D1A;
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-drawer.is-open {
    display: flex;
}

.game-start-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #fff;
}

/* ==========================================================================
   SINGLE POST CONTENT — Typography for the_content()
   Must override WP global styles (which use :root :where() selectors)
   ========================================================================== */

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    font-weight: 700 !important;
    margin: 3rem 0 1.25rem;
    line-height: 1.2;
}

.post-content h3 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
    font-weight: 700 !important;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-content a:where(:not(.wp-element-button)) {
    color: #00CFFF;
    text-decoration: underline;
    text-decoration-color: rgba(0, 207, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s, color 0.3s;
}

.post-content a:where(:not(.wp-element-button)):hover {
    color: #FF3366;
    text-decoration-color: #FF3366;
}

.post-content blockquote {
    border-left: 4px solid #CC99FF;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.post-content code {
    background: rgba(0, 207, 255, 0.1);
    color: #00CFFF;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88em;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #00FFAA;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-content img {
    border-radius: 16px;
    margin: 2rem 0;
}

/* ==========================================================================
   WP BLOCK TABLE — Glassmorphism candy table
   ========================================================================== */

.post-content .wp-block-table,
.wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.post-content .wp-block-table table,
.wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.95rem;
}

.post-content .wp-block-table thead,
.wp-block-table thead {
    background: rgba(0, 207, 255, 0.08);
}

.post-content .wp-block-table thead th,
.wp-block-table thead th {
    color: #00CFFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 207, 255, 0.2);
    border-right: none;
}

.post-content .wp-block-table td,
.wp-block-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    vertical-align: top;
    border-right: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-content .wp-block-table tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

.post-content .wp-block-table tbody tr:hover,
.wp-block-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Remove parent theme's 3px solid borders */
.wp-block-table thead,
.wp-block-table tfoot {
    border-top: none !important;
    border-bottom: none !important;
}

.wp-block-table th,
.wp-block-table td {
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.wp-block-table thead th {
    border-bottom: 2px solid rgba(0, 207, 255, 0.2) !important;
}

/* ==========================================================================
   WP BLOCK SEPARATOR — Spectrum rainbow dividers
   ========================================================================== */

.wp-block-separator,
.post-content hr {
    border: none !important;
    height: 3px !important;
    background: linear-gradient(90deg, #FF3366, #FF9966, #FFE033, #00FFAA, #00CFFF, #CC99FF) !important;
    opacity: 0.5;
    border-radius: 3px;
    margin: 2.5rem 0 !important;
}

/* ==========================================================================
   WP BLOCK CODE — Inline & Block
   ========================================================================== */

:where(.wp-block-code) {
    background: rgba(0, 207, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #00FFAA;
}

/* Inline code within paragraphs & list items (not in pre blocks) */
.post-content :not(pre) > code,
:root :where(.wp-block-list) code,
:root :where(p) > code {
    background: rgba(0, 207, 255, 0.1);
    color: #00CFFF;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
}

/* ==========================================================================
   WP POST NAVIGATION — Styled prev/next links
   ========================================================================== */

.post-navigation,
.wp-block-post-navigation-link {
    margin: 2rem 0;
}

.post-content + .post-navigation,
article .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 800px;
    margin: 2rem auto;
}

.post-navigation a {
    display: block;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 207, 255, 0.3);
    color: #00CFFF;
}

/* ==========================================================================
   COMMENT FORM — Candy Neon styled
   ========================================================================== */

.comments-area,
.comment-respond {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.comments-area h3,
.comment-respond h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff;
    margin-bottom: 1.5rem;
}

.comment-respond p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.comment-respond label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
    border-color: #00CFFF;
    box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.15);
}

.comment-respond textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-respond .wp-element-button,
.comment-respond input[type="submit"],
.comment-respond .submit {
    display: inline-block;
    background: #00CFFF !important;
    color: #0D0D1A !important;
    border: none;
    border-radius: 9999px;
    padding: 0.85rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
}

.comment-respond .wp-element-button:hover,
.comment-respond input[type="submit"]:hover,
.comment-respond .submit:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 207, 255, 0.5);
}

.comment-respond input[type="checkbox"] {
    accent-color: #00CFFF;
    margin-right: 0.5rem;
}

/* Required field note */
.comment-notes,
.logged-in-as {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   WP BLOCK OVERRIDES — General
   ========================================================================== */

.home .wp-block-post-title {
    display: none;
}

.wp-block-button__link {
    border-radius: 9999px !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wp-block-button__link:hover {
    transform: scale(1.03);
}

/* Kill parent theme's aggressive list spacing */
.post-content .wp-block-list {
    font-size: 1.05rem;
}

.post-content .wp-block-list li {
    margin-block-start: 0.4rem;
    margin-block-end: 0;
}

/* WP navigation pagination links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00CFFF;
    color: #00CFFF;
}

.nav-links .current {
    background: #00CFFF;
    color: #0D0D1A;
    border-color: #00CFFF;
}

/* ==========================================================================
   FADE-IN ANIMATION
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
