/* ChatterCouch - Show Page Styles */
/* This stylesheet is dedicated to the show tag pages to avoid conflicts */

/* ========================================
   CSS Custom Properties (set by PHP)
   ======================================== */
:root {
    /* Base colors */
    --vhs-black: #111111;
    --sticker-white: #f4f4f0;
    --vhs-plastic: #1a1a1a;

    /* Retro palette */
    --retro-red: #c94c4c;
    --retro-orange: #d48e45;
    --retro-yellow: #d4c25a;
    --retro-green: #6ca870;
    --retro-blue: #5b8db5;
    --retro-purple: #8e6ca8;

    /* Typography */
    --font-headline: 'Archivo Black', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ========================================
   Base Styles
   ======================================== */
body.show-page {
    background-color: #111111 !important;
    color: #222;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ========================================
   Show-Specific Utility Classes
   ======================================== */
.show-gradient {
    background: linear-gradient(135deg, var(--show-primary), var(--show-alt));
}

.show-text {
    color: var(--show-primary) !important;
}

.show-border {
    border-color: var(--show-primary);
}

/* ========================================
   TV Scanline Effects
   ======================================== */
.tv-scanlines {
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    z-index: 5;
    pointer-events: none;
}

.tv-scanline-moving {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 100%);
    background-size: 100% 10%;
    animation: scanline-move 8s linear infinite;
    z-index: 6;
    pointer-events: none;
}

@keyframes scanline-move {
    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 200%;
    }
}

/* ========================================
   Sticker Card Styles
   ======================================== */
.sticker {
    background-color: var(--sticker-white);
    border-radius: 6px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border: 1px solid #ddd;
}

.sticker::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
}

.sticker:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 12px 16px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.font-mono {
    font-family: var(--font-mono);
}

/* ========================================
   Logo Gradient
   ======================================== */
.logo-gradient {
    background: linear-gradient(90deg, var(--show-primary, #c94c4c), var(--show-alt, #d48e45));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* White logo with solid shadow for dark backgrounds */
.logo-white {
    color: white;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.5),
        3px 3px 0 rgba(0, 0, 0, 0.3);
}

/* White logo overlay for dark backgrounds - makes logo appear white */
.logo-inverted {
    filter: brightness(0) invert(1);
}

/* Black logo overlay for light backgrounds - makes logo appear black */
.logo-black {
    filter: brightness(0);
}

/* ========================================
   Magazine Grid Layout
   ======================================== */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .magazine-grid {
        display: flex;
        flex-direction: column;
    }
}

/* ========================================
   Show Color Bar Decoration
   ======================================== */
.rainbow-bar,
.show-bar {
    height: 8px;
    width: 100%;
    display: flex;
    background: linear-gradient(90deg, var(--show-primary, #c94c4c), var(--show-alt, #d48e45));
}

.rainbow-bar div,
.show-bar div {
    flex: 1;
    height: 100%;
}

/* Color classes now use show colors */
.c-primary {
    background: var(--show-primary, #c94c4c);
}

.c-alt {
    background: var(--show-alt, #d48e45);
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
    background: var(--vhs-black);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border: 2px solid var(--vhs-black);
    border-radius: 6px;
}

/* ========================================
   Line Clamp Utilities
   ======================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Article Content Styles
   ======================================== */
.article-content {
    font-size: 1.125rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    border: 2px solid #ddd;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.article-content blockquote {
    border-left: 4px solid var(--category-color, var(--retro-red));
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.article-content a {
    color: var(--show-primary, var(--retro-blue));
    text-decoration: underline;
}

.article-content a:hover {
    opacity: 0.8;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}