/*
Theme Name: Chroniques d'un esprit pas aligné
Theme URI: https://atkati.fr
Author: Atkati
Author URI: https://atkati.fr
Description: Thème souverain brutaliste pour le blog "Chroniques d'un esprit pas aligné". Aucune dépendance externe, aucun GAFAM, aucun CDN américain. 100% auto-hébergé.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chroniques
Tags: blog, dark, brutaliste, souverain, collage

Thème souverain - Aucune dépendance externe.
Pas de Google Fonts, pas de CDN, pas de GAFAM.
Tous les assets sont auto-hébergés.

Note: Ajoutez un fichier screenshot.png (1200x900) à la racine du thème.
*/

/* ============================================
   @FONT-FACE DECLARATIONS
   Placez vos fichiers de polices dans le dossier fonts/
   ============================================ */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2'),
         url('fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2'),
         url('fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Black.woff2') format('woff2'),
         url('fonts/Inter-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
         url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2'),
         url('fonts/PlayfairDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Italic.woff2') format('woff2'),
         url('fonts/PlayfairDisplay-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('fonts/Caveat-Regular.woff2') format('woff2'),
         url('fonts/Caveat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('fonts/Caveat-Bold.woff2') format('woff2'),
         url('fonts/Caveat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background-color: #CCFF00;
    color: #000000;
}

::-moz-selection {
    background-color: #CCFF00;
    color: #000000;
}

a {
    color: #CCFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF00FF;
}

img:not(.site-logo):not(.footer-crane) {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    line-height: 1.2;
}

.font-handwriting {
    font-family: 'Caveat', cursive;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: relative;
    z-index: 1000;
    background-color: #1a1a1a;
    background-image: url('pattern.png');
    background-size: contain;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    padding: 1rem 2rem;
}

/* Barre déchirée - séparateur header */
.header-tear {
    height: 30px;
    background: url('barre-dechire.png') repeat-x bottom;
    background-size: auto 100%;
    margin-top: -1px;
}

/* Barre déchirée - séparateur footer (retournée) */
.footer-tear {
    height: 30px;
    background: url('barre-dechire.png') repeat-x top;
    background-size: auto 100%;
    transform: scaleY(-1);
    margin-bottom: -1px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-logo {
    height: 6.25rem !important;
    max-height: none !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #CCFF00;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid #CCFF00;
    padding: 0.5rem 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 1rem;
    display: block;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #CCFF00;
    color: #CCFF00;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-taglines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.25rem;
    border: 2px solid currentColor;
}

.hero-tagline:nth-child(1) {
    color: #FF00FF;
    border-color: #FF00FF;
    transform: rotate(-1deg);
}

.hero-tagline:nth-child(2) {
    color: #CCFF00;
    border-color: #CCFF00;
    transform: rotate(1deg);
}

.hero-tagline:nth-child(3) {
    color: #FFFF00;
    border-color: #FFFF00;
    transform: rotate(-0.5deg);
}

.hero-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #ffffff;
}

.hero-heading .accent-lime {
    color: #CCFF00;
}

.hero-heading .accent-pink {
    color: #FF00FF;
}

.hero-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.hero-intro p {
    margin-bottom: 1rem;
}

.hero-intro .annotation {
    font-family: 'Caveat', cursive;
    color: #FF00FF;
    font-size: 1.15rem;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #CCFF00;
    transform: rotate(-0.5deg);
}

.section-title .scribble {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #FF00FF;
    display: block;
    margin-top: 0.5rem;
    transform: rotate(-1deg);
}

/* ============================================
   POST GRID
   ============================================ */

.posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* ============================================
   POLAROID CARDS
   ============================================ */

.polaroid {
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    padding-bottom: 3rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    position: relative;
    color: #000000;
}

.polaroid:hover {
    transform: scale(1.01);
}

.polaroid-card {
    position: relative;
}

.polaroid-card:nth-child(3n+1) {
    transform: rotate(-1deg);
}

.polaroid-card:nth-child(3n+2) {
    transform: rotate(0.5deg);
}

.polaroid-card:nth-child(3n+3) {
    transform: rotate(-0.5deg);
}

.polaroid-card:hover {
    z-index: 10;
}

.polaroid-card:nth-child(3n+1):hover {
    transform: rotate(-1deg) scale(1.01);
}

.polaroid-card:nth-child(3n+2):hover {
    transform: rotate(0.5deg) scale(1.01);
}

.polaroid-card:nth-child(3n+3):hover {
    transform: rotate(-0.5deg) scale(1.01);
}

/* Tape effect */
.tape {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    height: 2rem;
    width: 6rem;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    pointer-events: none;
    z-index: 20;
}

/* Post thumbnail */
.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
    background: #121212;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    transform: scale(1.1);
}

.polaroid:hover .post-thumbnail-wrapper img {
    transform: scale(1);
}

/* ============================================
   EFFET PAPIER DÉCHIRÉ AUTOUR DES PHOTOS
   Deux couches superposées :
   1. Fibres semi-transparentes (bords flous)
   2. Bordure solide blanche (bord net déchiré)
   ============================================ */

/* Couche 1 : Fibres de papier semi-transparentes */
.torn-paper-fibers {
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 0 3.5rem rgba(255, 255, 255, 0.8);
    filter: url(#torn-paper-fibers);
}

/* Couche 2 : Bordure solide blanche déchirée */
.torn-paper-edge {
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 0 3rem white;
    filter: url(#torn-paper) drop-shadow(0px 4px 6px rgba(0,0,0,0.5));
}

/* Category labels - disposition chaotique */
.post-categories {
    position: absolute;
    top: 1rem;
    right: -1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 50;
    pointer-events: none;
}

.post-categories li {
    pointer-events: auto;
}

.category-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: #000000;
    box-shadow: 4px 4px 0px rgba(20, 20, 20, 1);
    white-space: nowrap;
    border: 2px solid #000000;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-label:hover {
    transform: rotate(0deg) scale(1.15) !important;
    box-shadow: 2px 2px 0px rgba(20, 20, 20, 1);
    color: #000000;
}

/* Couleurs variées */
.post-categories li:nth-child(7n+1) .category-label { background-color: #FF00FF; }
.post-categories li:nth-child(7n+2) .category-label { background-color: #CCFF00; }
.post-categories li:nth-child(7n+3) .category-label { background-color: #FFFF00; }
.post-categories li:nth-child(7n+4) .category-label { background-color: #FF6600; }
.post-categories li:nth-child(7n+5) .category-label { background-color: #00FFCC; }
.post-categories li:nth-child(7n+6) .category-label { background-color: #FF3366; }
.post-categories li:nth-child(7n+7) .category-label { background-color: #66FF33; }

/* Rotations et décalages chaotiques */
.post-categories li:nth-child(1) { transform: rotate(-7deg) translateX(8px); }
.post-categories li:nth-child(2) { transform: rotate(4deg) translateX(-12px); }
.post-categories li:nth-child(3) { transform: rotate(-3deg) translateX(15px); }
.post-categories li:nth-child(4) { transform: rotate(6deg) translateX(-5px); }
.post-categories li:nth-child(5) { transform: rotate(-5deg) translateX(10px); }

/* Variations par carte pour éviter la répétition */
.polaroid-card:nth-child(2n) .post-categories li:nth-child(1) { transform: rotate(5deg) translateX(-8px); }
.polaroid-card:nth-child(2n) .post-categories li:nth-child(2) { transform: rotate(-6deg) translateX(14px); }
.polaroid-card:nth-child(2n) .post-categories li:nth-child(3) { transform: rotate(3deg) translateX(-10px); }

.polaroid-card:nth-child(3n) .post-categories li:nth-child(1) { transform: rotate(-4deg) translateX(12px); }
.polaroid-card:nth-child(3n) .post-categories li:nth-child(2) { transform: rotate(8deg) translateX(-6px); }
.polaroid-card:nth-child(3n) .post-categories li:nth-child(3) { transform: rotate(-2deg) translateX(18px); }

.polaroid-card:nth-child(5n) .post-categories li:nth-child(1) { transform: rotate(9deg) translateX(-15px); }
.polaroid-card:nth-child(5n) .post-categories li:nth-child(2) { transform: rotate(-5deg) translateX(5px); }

/* Couleurs différentes selon la carte */
.polaroid-card:nth-child(2n) .post-categories li:nth-child(1) .category-label { background-color: #FFFF00; }
.polaroid-card:nth-child(2n) .post-categories li:nth-child(2) .category-label { background-color: #FF00FF; }
.polaroid-card:nth-child(3n) .post-categories li:nth-child(1) .category-label { background-color: #FF6600; }
.polaroid-card:nth-child(3n) .post-categories li:nth-child(2) .category-label { background-color: #CCFF00; }
.polaroid-card:nth-child(5n) .post-categories li:nth-child(1) .category-label { background-color: #00FFCC; }
.polaroid-card:nth-child(5n) .post-categories li:nth-child(2) .category-label { background-color: #FF3366; }

/* Post card content */
.post-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #000000;
}

.post-card-title a {
    color: #000000;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #FF00FF;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666666;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
}

.post-card-meta .meta-author {
    font-weight: 700;
    color: #000000;
}

.post-card-meta .meta-comments {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: #FF00FF;
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-post-container {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.single-post-container .polaroid {
    padding: 2rem;
    padding-bottom: 2rem;
    transition: none;
}

.single-post-container .polaroid:hover {
    transform: none;
}

.single-post-container .polaroid:hover .post-thumbnail-wrapper img {
    transform: scale(1.1);
}

.single-featured-image {
    position: relative;
    overflow: hidden;
    margin: -2rem -2rem 2rem -2rem;
    height: 500px;
}

.single-featured-image img:not(.site-logo):not(.footer-crane) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    font-size: 0.85rem;
    color: #666666;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
}

.single-post-meta span {
    margin-right: 1rem;
}

/* Post content */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222222;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: #000000;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: #000000;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content blockquote {
    border-left: 4px solid #FF00FF;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f8f8;
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 2rem;
}

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

.post-content a {
    color: #FF00FF;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: #CCFF00;
    background: #000000;
    padding: 0 2px;
}

.post-content img {
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-content pre {
    background: #1a1a1a;
    color: #CCFF00;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border: 2px solid #333;
}

.post-content code {
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    font-size: 0.9em;
    border: 1px solid #ddd;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed #333333;
    gap: 2rem;
}

.post-navigation a {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border: 2px solid #CCFF00;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: #CCFF00;
    color: #000000;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

/* ============================================
   COMMENTS
   ============================================ */

.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.comments-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FF00FF;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    background: #1e1e1e;
    border: 2px solid #333;
    padding: 1.5rem;
    position: relative;
}

.comment-body::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 5rem;
    height: 2rem;
    background: rgba(204, 255, 0, 0.2);
    backdrop-filter: blur(4px);
    transform: rotate(-1deg);
    pointer-events: none;
}

.comment-author {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #CCFF00;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 0;
    border: 2px solid #CCFF00;
    margin-right: 0.75rem;
    display: inline-block;
    vertical-align: middle;
}

.comment-metadata {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1rem;
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
}

.comment-metadata a {
    color: #888;
}

.comment-content {
    color: #cccccc;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-reply-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #FF00FF;
    border: 1px solid #FF00FF;
    padding: 0.25rem 0.75rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background: #FF00FF;
    color: #000000;
}

.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid #333;
}

/* Comment form */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.comment-form label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #CCFF00;
    display: block;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #1e1e1e;
    border: 2px solid #333;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #CCFF00;
}

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

.comment-form .form-submit input[type="submit"] {
    background: transparent;
    color: #CCFF00;
    border: 2px solid #CCFF00;
    padding: 0.75rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #CCFF00;
    color: #000000;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    border: 2px solid #333;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    border-color: #CCFF00;
    color: #CCFF00;
}

.pagination .page-numbers.current {
    background: #CCFF00;
    color: #000000;
    border-color: #CCFF00;
}

.pagination .dots {
    border: none;
    color: #666;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    border-top: none;
    padding: 2rem;
    text-align: center;
    background-color: #1a1a1a;
    background-image: url('pattern.png');
    background-size: contain;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    flex: 1;
}

.footer-crane {
    width: 4rem;
    height: auto;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.footer-snarky {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.footer-copyright {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */

.archive-header {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.archive-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-title .label {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #FF00FF;
    display: block;
    margin-bottom: 0.25rem;
}

.archive-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SEARCH
   ============================================ */

.search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    background: #1e1e1e;
    border: 2px solid #333;
    border-right: none;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: #CCFF00;
}

.search-form .search-submit {
    background: #CCFF00;
    color: #000000;
    border: 2px solid #CCFF00;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form .search-submit:hover {
    background: #FF00FF;
    border-color: #FF00FF;
    color: #000000;
}

.search-header {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.search-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-header .search-query {
    color: #CCFF00;
}

/* ============================================
   404
   ============================================ */

.error-404 {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.error-404 .error-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 8rem;
    font-weight: 700;
    color: #FF00FF;
    line-height: 1;
    text-shadow: 6px 6px 0px #CCFF00;
}

.error-404 h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin: 1rem 0;
}

.error-404 .snarky-message {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #FF00FF;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.error-404 .error-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.error-404 .back-home {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #CCFF00;
    color: #CCFF00;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.error-404 .back-home:hover {
    background: #CCFF00;
    color: #000000;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    padding: 2rem 0;
}

.sidebar .widget {
    margin-bottom: 2.5rem;
    background: #1e1e1e;
    border: 2px solid #333;
    padding: 1.5rem;
    position: relative;
}

.sidebar .widget::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    width: 4rem;
    height: 1.5rem;
    background: rgba(204, 255, 0, 0.15);
    backdrop-filter: blur(4px);
    transform: rotate(-1deg);
    pointer-events: none;
}

.sidebar .widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #CCFF00;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget a {
    color: #cccccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.sidebar .widget a:hover {
    color: #FF00FF;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */

.page-container {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.page-container .polaroid {
    padding: 2.5rem;
}

.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 2rem;
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ============================================
   SCRIBBLE DECORATIONS
   ============================================ */

.scribble-decoration {
    position: absolute;
    font-family: 'Caveat', cursive;
    color: #FF00FF;
    pointer-events: none;
    opacity: 0.6;
    z-index: 5;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-lime { color: #CCFF00; }
.text-pink { color: #FF00FF; }
.text-yellow { color: #FFFF00; }
.text-orange { color: #FF6600; }
.bg-lime { background-color: #CCFF00; }
.bg-pink { background-color: #FF00FF; }
.bg-yellow { background-color: #FFFF00; }
.bg-orange { background-color: #FF6600; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #CCFF00;
    color: #000000;
    clip: auto !important;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .hero-heading {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem 3rem;
    }

    .hero-section {
        padding: 3rem 1.5rem 1.5rem;
    }

    .hero-heading {
        font-size: 1.75rem;
    }

    .hero-taglines {
        gap: 0.75rem;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    .site-logo {
        height: 4rem !important;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 1rem;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #333;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .single-post-title {
        font-size: 1.75rem;
    }

    .single-post-container {
        padding: 0 1rem;
    }

    .single-post-container .polaroid {
        padding: 1.25rem;
    }

    .single-featured-image {
        margin: -1.25rem -1.25rem 1.5rem -1.25rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .children {
        padding-left: 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .error-404 .error-code {
        font-size: 5rem;
    }

    .polaroid-card:nth-child(n) {
        transform: rotate(0deg);
    }
    .polaroid-card:nth-child(n):hover {
        transform: scale(1.01);
    }
}

@media screen and (max-width: 480px) {
    .hero-heading {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .post-card-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================ */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: #888;
    text-align: center;
    margin-top: 0.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.4s;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}
