/*
Theme Name: Rock Quest
Theme URI:
Author: Try Club
Author URI:
Description: Y2K-era chaotic cult recruitment guestbook. You found a rock. Now you belong to us. (With love.) Single-page WordPress theme for Try Club — Atlanta, GA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rock-quest
Tags: one-page, custom-colors, custom-background, full-width-template, sticky-post
*/

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg:          #1a0a2e;
    --card-bg:     #2a1040;
    --pink:        #ff00cc;
    --purple:      #c8a8ff;
    --yellow:      #ffe066;
    --green-num:   #00ff88;
    --input-bg:    #0d0520;
    --font-header: 'Press Start 2P', monospace;
    --font-body:   'VT323', monospace;
    --glow-pink:   0 0 10px #ff00cc, 0 0 24px rgba(255, 0, 204, 0.35);
    --glow-soft:   0 0 30px rgba(200, 168, 255, 0.1);
}

/* ============================================================
   BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--purple);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--yellow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar          { width: 8px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--pink); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* Selection highlight */
::selection {
    background: var(--pink);
    color: #fff;
}

/* ============================================================
   STARFIELD CANVAS (fixed, behind everything)
   ============================================================ */
#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.rq-wrapper {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ============================================================
   MARQUEE BAR
   ============================================================ */
.rq-marquee-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-header);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 9px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 4px 20px rgba(255, 0, 204, 0.4);
}

.rq-marquee-inner {
    display: inline-block;
    animation: rq-marquee 32s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

/* Duplicate the text span so the seam is invisible */
.rq-marquee-inner span {
    display: inline-block;
    padding-right: 80px;
}

@keyframes rq-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.rq-hero {
    text-align: center;
    padding: 64px 20px 40px;
}

.rq-title {
    font-family: var(--font-header);
    font-size: clamp(26px, 7vw, 56px);
    color: var(--yellow);
    text-shadow:
        4px  4px 0 var(--pink),
        8px  8px 0 rgba(200, 168, 255, 0.3),
        0    0  40px rgba(255, 224, 102, 0.25);
    letter-spacing: 6px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.rq-subtitle {
    font-family: var(--font-body);
    font-size: 30px;
    color: var(--pink);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

/* ============================================================
   WOBBLING ROCK EMOJI
   ============================================================ */
.rq-rock {
    display: inline-block;
    font-size: 88px;
    line-height: 1;
    animation: rq-rock-wobble 2.8s ease-in-out infinite;
    cursor: default;
    filter: drop-shadow(0 0 12px rgba(200, 168, 255, 0.4));
}

@keyframes rq-rock-wobble {
    0%,  100% { transform: rotate(-9deg)  scale(1);    }
    20%        { transform: rotate(11deg)  scale(1.09); }
    40%        { transform: rotate(-6deg)  scale(0.95); }
    60%        { transform: rotate(13deg)  scale(1.06); }
    80%        { transform: rotate(-4deg)  scale(1.02); }
}

/* ============================================================
   VISITOR COUNTER
   ============================================================ */
.rq-counter-wrap {
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
}

.rq-counter {
    display: inline-block;
    background: #000;
    border: 3px solid var(--pink);
    padding: 10px 5px 12px;
    font-family: var(--font-header);
    font-size: 9px;
    color: var(--purple);
    text-align: center;
    box-shadow: var(--glow-pink);
    line-height: 2;
}

.rq-counter-label {
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.rq-counter-num {
    display: block;
    font-size: 22px;
    color: var(--green-num);
    letter-spacing: 6px;
    text-shadow: 0 0 8px var(--green-num);
    margin-bottom: 2px;
}

/* ============================================================
   BLINKING CURSOR
   ============================================================ */
.blink {
    animation: rq-blink 1s step-end infinite;
    display: inline;
}

@keyframes rq-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ============================================================
   SECTION CONTAINER
   ============================================================ */
.rq-section {
    margin-bottom:20px;
   padding: 22px 26px;
    border: 2px solid rgba(200, 168, 255, 0.35);
    background: rgba(42, 16, 64, 0.82);
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(2px);
}

.rq-section-title {
    font-family: var(--font-header);
    font-size: clamp(11px, 2.5vw, 17px);
    color: var(--pink);
    text-shadow: 2px 2px 0 var(--yellow);
    margin-bottom: 22px;
    letter-spacing: 2px;
    line-height: 1.6;
}

.rq-divider {
    border: none;
    border-top: 2px dashed rgba(200, 168, 255, 0.2);
    margin: 48px 0;
}

/* ============================================================
   THE_CONTENT() BLOCK — editable in wp-admin
   ============================================================ */
.rq-content {
    font-family: var(--font-body);
    font-size: 22px;
    color: var(--purple);
    line-height: 1.75;
}

.rq-content h1,
.rq-content h2,
.rq-content h3,
.rq-content h4 {
    font-family: var(--font-header);
    color: var(--yellow);
    text-shadow: 2px 2px 0 var(--pink);
    margin: 22px 0 10px;
    font-size: clamp(10px, 2vw, 14px);
    line-height: 1.6;
    letter-spacing: 1px;
}

.rq-content p       { margin-bottom: 14px; }
.rq-content strong,
.rq-content b       { color: var(--yellow); }
.rq-content em,
.rq-content i       { color: var(--pink); font-style: normal; }
.rq-content ul,
.rq-content ol      { margin: 10px 0 14px 1.4em; }
.rq-content li      { margin-bottom: 6px; }

/* ============================================================
   ABOUT CARDS (2×2 grid)
   ============================================================ */
.rq-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.rq-card {
    background: var(--input-bg);
    border: 2px solid var(--pink);
    padding: 22px 20px;
    box-shadow: inset 0 0 24px rgba(255, 0, 204, 0.04), var(--glow-pink);
    position: relative;
    overflow: hidden;
}

/* Corner accent */
.rq-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 224, 102, 0.15);
    pointer-events: none;
}

.rq-card-title {
    font-family: var(--font-header);
    font-size: clamp(8px, 1.5vw, 10px);
    color: var(--yellow);
    margin-bottom: 14px;
    line-height: 1.7;
    letter-spacing: 1px;
}

.rq-card-text {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--purple);
    line-height: 1.65;
}

@media (max-width: 600px) {
    .rq-cards            { grid-template-columns: 1fr; }
    .rq-section          { padding: 24px 20px; }
}

/* ============================================================
   GUESTBOOK HEADER / PROMPT
   ============================================================ */
.rq-guestbook-header {
    text-align: center;
}

.rq-guestbook-prompt {
    font-family: var(--font-body);
    font-size: 26px;
    color: var(--purple);
    font-style: italic;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.55;
    opacity: 0.9;
}

.rq-no-comments {
    text-align: center;
    font-family: var(--font-body);
    font-size: 22px;
    color: var(--purple);
    opacity: 0.6;
    font-style: italic;
    padding: 20px 0;
    line-height: 1.7;
}

/* ============================================================
   COMMENT LIST — guestbook entries
   ============================================================ */
.rq-entries-title {
    font-family: var(--font-header);
    font-size: clamp(10px, 2vw, 13px);
    color: var(--yellow);
    text-shadow: 2px 2px 0 var(--pink);
    margin-bottom: 24px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-list .comment {
    background: var(--card-bg);
    border-left: 5px solid var(--pink);
    padding: 20px 22px 20px 20px;
    box-shadow: -3px 0 14px rgba(255, 0, 204, 0.18);
    position: relative;
}

.comment-list .comment::after {
    content: '★';
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--pink);
    font-size: 20px;
    opacity: 0.3;
}

.rq-comment-author {
    font-family: var(--font-header);
    font-size: clamp(9px, 1.8vw, 11px);
    color: var(--yellow);
    margin-bottom: 6px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.rq-comment-author .blink {
    color: var(--pink);
}

.rq-comment-meta {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--pink);
    opacity: 0.65;
    margin-bottom: 10px;
}

.rq-comment-rock-fields {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--pink);
    margin-bottom: 12px;
    padding: 8px 14px;
    background: rgba(255, 0, 204, 0.05);
    border: 1px solid rgba(255, 0, 204, 0.2);
    line-height: 1.75;
}

.rq-comment-rock-fields .rq-field-value {
    color: var(--yellow);
}

.rq-comment-text {
    font-family: var(--font-body);
    font-size: 21px;
    color: var(--purple);
    line-height: 1.65;
}

.rq-comment-text p { margin: 0; }

.rq-awaiting-mod {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--yellow);
    font-style: italic;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Comments pagination */
.comments-pagination {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--purple);
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.comments-pagination .page-numbers {
    color: var(--pink);
    text-decoration: none;
}

.comments-pagination .page-numbers:hover,
.comments-pagination .current {
    color: var(--yellow);
}

/* ============================================================
   COMMENT FORM
   ============================================================ */
#respond {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 2px dashed rgba(255, 0, 204, 0.25);
}

.comment-reply-title {
    font-family: var(--font-header);
    font-size: clamp(10px, 2.2vw, 13px);
    color: var(--pink);
    text-shadow: 2px 2px 0 var(--yellow);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
    line-height: 1.6;
}

.comment-notes {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--purple);
    opacity: 0.65;
    margin-bottom: 20px;
}

.logged-in-as {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--purple);
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Every field wrapper */
.comment-form p {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* All labels */
.comment-form label {
    font-family: var(--font-header);
    font-size: 8px;
    color: var(--pink);
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1.8;
    display: block;
}

/* Visually hide the email label (field stays for spam protection) */
.comment-form .comment-form-email label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* All inputs, textarea, select */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-form select {
    background: var(--input-bg);
    border: 2px solid rgba(200, 168, 255, 0.4);
    color: var(--purple);
    font-family: var(--font-body);
    font-size: 20px;
    padding: 10px 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.45);
    color: #fff;
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}

/* Dropdown arrow */
.comment-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23c8a8ff' d='M0 0l6 7 6-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.comment-form select option {
    background: var(--bg);
    color: var(--purple);
}

/* Submit button */
.form-submit {
    margin-top: 6px;
}

.comment-form input[type="submit"] {
    background: var(--pink);
    color: #fff;
    border: none;
    font-family: var(--font-header);
    font-size: 10px;
    letter-spacing: 2px;
    padding: 14px 28px 12px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--yellow), 0 0 22px rgba(255, 0, 204, 0.45);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    display: inline-block;
    line-height: 1;
}

.comment-form input[type="submit"]:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--yellow), 0 0 32px rgba(255, 0, 204, 0.65);
}

.comment-form input[type="submit"]:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--yellow);
}

/* ============================================================
   FOOTER
   ============================================================ */
.rq-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 44px 24px 48px;
    border-top: 2px solid rgba(255, 0, 204, 0.45);
    margin-top: 60px;
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--purple);
    line-height: 2;
}

.rq-footer-title {
    font-family: var(--font-header);
    font-size: clamp(9px, 2vw, 12px);
    color: var(--pink);
    text-shadow: 2px 2px 0 var(--yellow);
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.8;
}

.rq-footer-ie {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(200, 168, 255, 0.35);
    margin-top: 22px;
    letter-spacing: 1px;
}
