/*
Theme Name: Wayno Music
Theme URI: https://wayno.au
Author: Antigravity
Description: A sleek, dark-mode, automated music showcase theme for Wayno.
Version: 1.4
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

:root {
    --bg-dark: #121212;
    --bg-panel: #1A1A1A;
    --bg-surface: #242424;
    --accent-orange: #F35515;
    --text-primary: #EDEDED;
    --text-secondary: #9E9E9E;
    --text-muted: #6B6B6B;
    --border-glow: rgba(243, 85, 21, 0.15);
}

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.95)), url('https://vanelsenms-vhub.tempurl.host/musicwayno/wp-content/uploads/sites/6/2026/07/wayno_au_Wayne-van-Elsen-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}
h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2 { font-size: 2rem; }
p { color: var(--text-secondary); font-size: 1.1rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 900px) {
    .album-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Album Art */
.album-art-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px var(--border-glow);
    background: var(--bg-panel);
}
.album-art-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Intro Quote */
.album-quote {
    border-left: 4px solid var(--accent-orange);
    padding: 10px 0 10px 20px;
    margin: 30px 0;
    font-style: italic;
    background: rgba(255,255,255,0.02);
    border-radius: 0 8px 8px 0;
}
.album-quote p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
}

/* Tracklist Panel */
.tracklist-panel {
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}
.tracklist-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--accent-orange);
}
.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.track-item:last-child { border-bottom: none; }
blockquote, .wp-block-quote, .wp-block-quote p {
    font-family: 'Caveat', cursive !important;
    color: var(--accent-orange) !important;
    font-size: 2.2rem !important;
    border: none !important;
    text-align: center !important;
    margin: 50px auto !important;
    padding: 0 20px !important;
    line-height: 1.4 !important;
    transform: rotate(-2deg);
    max-width: 600px;
    font-style: normal !important;
}
.track-num { 
    color: var(--accent-orange); 
    font-variant-numeric: tabular-nums; 
    font-size: 0.9rem;
    margin-right: 20px;
    font-weight: 700;
}
.track-title {
    flex-grow: 1;
    color: var(--text-primary);
    font-size: 1rem;
}
.track-dur {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Embeds */
.embed-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
}
.embed-container iframe {
    width: 100%;
    border: none;
}

/* Polaroid Featured Image */
.polaroid-wrapper {
    margin: 60px auto 40px auto;
    text-align: center;
}
.polaroid {
    background: #fdfdfd;
    padding: 15px 15px 70px 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: inline-block;
    transform: rotate(-2deg);
    position: relative;
    max-width: 80%;
    transition: transform 0.3s ease;
}
.polaroid:hover {
    transform: rotate(0deg) scale(1.02);
}
.polaroid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}
.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Oooh Baby', cursive;
    color: #1a1a1a;
    font-size: 2.2rem;
    line-height: 1;
}

/* 4x2 Custom Gallery Blocks */
.wp-block-gallery {
    gap: 0 !important;
    margin-bottom: 50px !important;
}
.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    border-radius: 0 !important;
}
.wp-block-gallery .wp-block-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}
/* Disable linking on gallery images */
.wp-block-gallery .wp-block-image a {
    pointer-events: none;
}


/* ==========================================================================
   Custom Gutenberg Block Styles
   ========================================================================== */

/* Polaroid Style for Core Image Block */
.wp-block-image.is-style-polaroid {
    background: #fdfdfd;
    padding: 8px 8px 20px 8px; /* 8px border with room for caption */
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: block;
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 500px; /* Sensible default max-width for polaroids */
    box-sizing: border-box;
    margin: 40px auto;
}

.wp-block-image.is-style-polaroid:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 10;
}

.wp-block-image.is-style-polaroid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.15); /* Simulates a recessed inner shadow */
}

/* Format the native Gutenberg Image Caption to match the Polaroid handwriting */
.wp-block-image.is-style-polaroid figcaption {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-family: 'Oooh Baby', cursive;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.5rem; /* Shrunk to roughly 16pt */
    line-height: 1.2;
    background: transparent;
    padding: 0;
}

/* Make bold text orange inside post content */
.post-content strong, 
.post-content b, 
.wp-block-post-content strong, 
.wp-block-post-content b {
    color: var(--accent-orange);
}

/* Dynamic Body Backgrounds based on View */
body.bg-storyboard {
    background-color: #1a222a !important;
    background-image: 
        linear-gradient(rgba(10, 14, 18, 0.4), rgba(10, 14, 18, 0.8)),
        url('https://www.transparenttextures.com/patterns/topography.png') !important;
    background-size: auto, 400px 400px !important;
}

body.bg-dossier {
    background-color: #1a1a1a !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png') !important;
}


/* === PREMIUM COMIC BOOK STORYBOARD VIEW === */
.view-storyboard {
    display: block;
    width: 80%;
    max-width: 1800px;
    margin: 60px auto;
    padding: 0;
}

.comic-grid-wrapper {
    background: #000;
    padding: 25px;
    border: 12px solid #fff;
    box-shadow: 30px 30px 0px rgba(0, 0, 0, 0.9);
    transform: rotate(-0.5deg);
    position: relative;
}

.comic-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    z-index: 50;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 20px;
    background: #000;
}

/* Base Panel Styles */
.comic-panel {
    background: #111;
    border: 6px solid var(--comic-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 8px 15px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.comic-panel:hover {
    transform: scale(1.02);
    z-index: 10;
    border-color: var(--dutch-orange);
}

/* Image Styling - Gritty Photorealism */
.comic-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.4) brightness(0.7) sepia(20%);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.comic-panel:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(1) sepia(0%);
    transform: scale(1.05);
}

/* Dynamic Text Overlays */
.comic-caption {
    position: absolute;
    background: #fff;
    color: #000;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    border: 6px solid #000;
    text-transform: uppercase;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.9);
    z-index: 5;
}

.caption-hero {
    top: -5px;
    right: -5px;
    padding: 20px 35px;
    font-size: 3.5rem;
    transform: rotate(2deg);
}

.caption-sub {
    bottom: -5px;
    left: -5px;
    padding: 10px 20px;
    font-size: 2rem;
    transform: rotate(-1deg);
    border-width: 4px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.9);
}

/* 7-Media-Panel Specific Layouts */
.panel-hero { 
    grid-column: span 12; 
    grid-row: span 2; 
    aspect-ratio: 16 / 9; 
    max-height: 850px;
}
.panel-a { grid-column: span 7; grid-row: span 2; }
.panel-v1 { grid-column: span 5; grid-row: span 2; }
.panel-b { grid-column: span 4; grid-row: span 2; }
.panel-c { grid-column: span 8; grid-row: span 2; }
.panel-v2 { grid-column: span 6; grid-row: span 2; }
.panel-d { grid-column: span 6; grid-row: span 2; }

/* Media Embeds */
.comic-embed {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    z-index: 1;
}
.comic-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Narrative Text Block */
.narrative-block {
    grid-column: span 12;
    padding: 40px 60px;
    font-size: 1.8rem;
    line-height: 1.8;
    background: #fbfbfb;
    color: #111;
    font-family: 'Special Elite', cursive;
    border: 6px solid #000;
    box-shadow: 12px 12px 0px var(--accent);
    position: relative;
    margin: 20px 0;
    font-weight: bold;
}

/* === REALISTIC SECRET DOSSIER VIEW === */
.view-dossier {
    display: none;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

/* Manila Folder Container */
.manila-folder {
    background-color: #dcb37b;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    border-radius: 5px 15px 5px 5px;
    padding: 40px;
    box-shadow: 
        inset 0 0 50px rgba(139, 90, 43, 0.5),
        25px 25px 50px rgba(0,0,0,0.8);
    position: relative;
    transform: rotate(1deg);
}

.folder-tab {
    position: absolute;
    top: -40px;
    right: 20px;
    background-color: #dcb37b;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    padding: 10px 40px;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #5a3c1c;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    box-shadow: inset 0 10px 20px rgba(139, 90, 43, 0.3);
}

/* Paper Sheet Inside Folder */
.paper-sheet {
    background-color: #fdfbf7;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    padding: 60px;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 0 100px rgba(0,0,0,0.05);
    border: 1px solid #e0dcd2;
    position: relative;
    font-family: 'Cutive Mono', monospace;
    color: #111;
    transform: rotate(-1.5deg);
    min-height: 800px;
}

/* Redaction & Stamps */
.stamp-declassified {
    position: absolute;
    width: fit-content;
    height: fit-content;
    color: var(--accent);
    border: 5px solid var(--accent);
    padding: 15px 30px;
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    border-radius: 4px;
    z-index: 1; 
}

.stamp-declassified { top: 450px; right: 50px; transform: rotate(-15deg); }
.stamp-two { top: 600px; left: 50px; transform: rotate(10deg); color: #0a3a6a; border-color: #0a3a6a; font-size: 2.2rem;}

.dossier-header, .dossier-facts {
    position: relative;
    z-index: 10;
}

.dossier-header {
    border-bottom: 2px solid #111;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.dossier-header h1 {
    font-family: 'Special Elite', cursive;
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 10px;
    font-weight: bold;
}

.meta-data p {
    font-size: 1.2rem;
    margin: 5px 0;
    line-height: 1.5;
    font-weight: bold;
}

.dossier-facts {
    font-size: 1.25rem;
    line-height: 1.8;
    white-space: pre-wrap; 
    font-weight: bold;
}

.paperclip {
    position: absolute;
    top: -15px;
    left: 40px;
    width: 25px;
    height: 80px;
    border: 4px solid #888;
    border-radius: 12px;
    background: transparent;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 20;
}
.paperclip::after {
    content: '';
    position: absolute;
    top: 5px; right: 4px; bottom: 15px; left: 4px;
    border: 4px solid #888;
    border-radius: 8px;
    border-bottom: none;
}

.view-toggle {
    display: block;
    margin: 30px auto;
    padding: 20px 60px;
    background: var(--dutch-orange);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    letter-spacing: 4px;
    border: 6px solid #fff;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.8);
    transition: all 0.2s;
}
.view-toggle:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0px rgba(0,0,0,0.8);
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 1024px) {
    .view-storyboard { width: 95%; }
    .comic-caption { font-size: 2.5rem; padding: 15px 25px; }
    .narrative-block { font-size: 1.4rem; padding: 30px; }
}

@media (max-width: 768px) {
    /* Header Polish */
    .site-header { flex-direction: column; gap: 15px; padding: 15px; }
    .site-brand { font-size: 1.8rem; text-align: center; width: 100%; }
    .site-nav { flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; }
    .site-nav a { font-size: 1rem; }
    
    /* Layout Polish */
    .view-storyboard { width: 100%; margin: 15px auto; padding: 0 10px; box-sizing: border-box; }
    .comic-grid { display: flex; flex-direction: column; gap: 15px; }
    .comic-grid-wrapper { transform: none; padding: 8px; border-width: 6px; box-shadow: 8px 8px 0 rgba(0,0,0,0.9); }
    
    /* Panel Formatting - Remove outer border, apply to media directly */
    .comic-panel { border: none !important; box-shadow: none !important; background: transparent !important; min-height: auto; height: auto; display: flex; flex-direction: column; gap: 8px; } 
    .panel-hero { max-height: none; aspect-ratio: auto !important; height: auto; }
    
    /* Lock media to a fixed height and give it the white comic border */
    .comic-panel img, .comic-embed { 
        height: 280px; 
        flex-shrink: 0; 
        order: 2; 
        width: 100%; 
        object-fit: cover; 
        border: 4px solid #fff; 
        box-shadow: 6px 6px 0 rgba(0,0,0,0.9); 
        box-sizing: border-box;
    }
    
    /* Text Blocks */
    .narrative-block { font-size: 1.1rem; line-height: 1.5; padding: 20px; border-width: 4px; box-shadow: 6px 6px 0 var(--dutch-orange); }
    
    /* Captions - Completely distinct boxes above and below the image */
    .comic-caption { 
        position: static !important;
        transform: none !important; 
        width: 100% !important;
        box-sizing: border-box;
        text-align: left;
        background: #fff;
        border: 4px solid #000 !important;
        box-shadow: 4px 4px 0 rgba(0,0,0,0.9) !important;
    }
    .caption-hero { 
        font-size: 1.5rem !important; 
        padding: 10px 15px !important;
        order: 1;
    }
    .caption-sub { 
        font-size: 1.1rem !important; 
        padding: 10px 15px !important; 
        order: 3;
        background: #f4f4f4;
    }
    
    /* View Toggle */
    .view-toggle { width: 100%; font-size: 1.4rem; padding: 15px; box-sizing: border-box; text-align: center; border-width: 4px; box-shadow: 6px 6px 0 rgba(0,0,0,0.9); margin-top: 40px; }
    
    /* Dossier Polish */
    .view-dossier { margin: 15px auto; padding: 10px; }
    .manila-folder { padding: 15px; border-radius: 5px; transform: none; box-shadow: inset 0 0 20px rgba(139, 90, 43, 0.5), 10px 10px 20px rgba(0,0,0,0.8); }
    .folder-tab { display: none; }
    .paper-sheet { padding: 20px; transform: none; min-height: auto; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
    
    .dossier-header h1 { font-size: 1.6rem; text-underline-offset: 5px; margin-bottom: 15px; }
    .meta-data p { font-size: 0.95rem; }
    .dossier-facts { font-size: 1.05rem; line-height: 1.6; }
    
    /* Stamps - Center & Scale */
    .stamp-declassified { position: absolute; transform: none; width: auto; font-size: 1.4rem; padding: 8px 15px; border-width: 3px; }
    .stamp-declassified { top: 150px; right: auto; left: 50%; transform: translateX(-50%) rotate(-5deg); }
    .stamp-two { top: 350px; left: 50%; transform: translateX(-50%) rotate(5deg); font-size: 1.1rem; }
    
    /* Paperclip */
    .paperclip { left: 10px; top: -10px; width: 15px; height: 50px; border-width: 3px; }
    .paperclip::after { border-width: 3px; }
}
