/* ============================================
   SECRETKA.COM - Детективный блог
   Темный стиль с акцентами красного
   ============================================ */

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

:root {
    --color-primary: #8B4513;
    --color-accent: #A0522D;
    --color-dark: #050505;
    --color-dark-gray: #0f0f0f;
    --color-gray: #1a1a1a;
    --color-light-gray: #2d2d2d;
    --color-olive: #3d3d2a;
    --color-brown: #4a3a2a;
    --color-text: #d4d4c4;
    --color-text-light: #f5f5e6;
    --color-border: #3a3a2a;
    --color-shadow: rgba(0, 0, 0, 0.8);
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Arial Black', 'Arial', sans-serif;
    /* Armenian Flag Colors */
    --flag-red: #D90012;
    --flag-blue: #0033A0;
    --flag-orange: #F2A800;
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 12% 45%, rgba(217, 0, 18, 0.12), transparent 42%),
        radial-gradient(circle at 88% 55%, rgba(0, 51, 160, 0.1), transparent 48%),
        linear-gradient(135deg, rgba(5, 5, 5, 0.92), rgba(15, 15, 15, 0.9)),
        url('/img/man2.jpg') center left / 800px auto no-repeat fixed,
        url('/img/man.jpg') center right / 800px auto no-repeat fixed;
    background-size: auto, auto, auto, 800px auto, 800px auto;
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, transparent 80px),
        radial-gradient(circle at 20% 30%, rgba(217, 0, 18, 0.15), transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(242, 168, 0, 0.12), transparent 55%);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.35) 0%, rgba(0, 0, 0, 0) 55%),
        conic-gradient(from 120deg at 25% 40%, rgba(217, 0, 18, 0.12), transparent 60%),
        url('/img/man2.jpg') center left / 800px auto no-repeat fixed;
    background-size: auto, auto, 800px auto;
    filter: brightness(1.25) contrast(1.05);
    z-index: -2;
    pointer-events: none;
    opacity: 0.65;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 82% 55%, rgba(255, 255, 255, 0.32) 0%, rgba(0, 0, 0, 0) 55%),
        conic-gradient(from -40deg at 75% 50%, rgba(0, 51, 160, 0.18), transparent 65%),
        url('/img/man.jpg') center right / 800px auto no-repeat fixed;
    background-size: auto, auto, 800px auto;
    filter: brightness(1.25) contrast(1.05);
    z-index: -2;
    pointer-events: none;
    opacity: 0.65;
}

html::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4) 100%),
        repeating-linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0, rgba(139, 69, 19, 0.05) 8px, transparent 8px, transparent 16px);
    pointer-events: none;
    z-index: -3;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: rgba(5, 5, 5, 0.65);
    border-bottom: 3px solid var(--color-primary);
    padding: 40px 0 60px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    backdrop-filter: blur(5px);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 35%, rgba(217, 0, 18, 0.2), transparent 55%),
        radial-gradient(circle at 80% 65%, rgba(0, 51, 160, 0.18), transparent 50%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%),
        linear-gradient(300deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    z-index: 0;
    mix-blend-mode: screen;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--flag-red) 0%, var(--flag-red) 33.33%, var(--flag-blue) 33.33%, var(--flag-blue) 66.66%, var(--flag-orange) 66.66%, var(--flag-orange) 100%);
    z-index: 3;
}

.header-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.header-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.code-line {
    position: absolute;
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, rgba(217, 0, 18, 0), rgba(217, 0, 18, 0.6), rgba(217, 0, 18, 0));
    mix-blend-mode: screen;
    animation: code-scan 8s linear infinite;
}

.code-line-a { left: 15%; animation-delay: 0s; }
.code-line-b { left: 45%; animation-delay: 2s; }
.code-line-c { left: 75%; animation-delay: 4s; }

.code-grid {
    position: absolute;
    inset: 10% 15%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px);
    animation: grid-pulse 6s ease-in-out infinite;
    opacity: 0.5;
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.flag-ribbon {
    display: flex;
    gap: 4px;
}

.stripe {
    width: 40px;
    height: 6px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.stripe-red { background: var(--flag-red); }
.stripe-blue { background: var(--flag-blue); }
.stripe-orange { background: var(--flag-orange); }

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.35), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover::after {
    opacity: 1;
}

.logo-img {
    height: 130px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(139, 69, 19, 0.9)) brightness(1.15) contrast(1.1);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(139, 69, 19, 1)) brightness(1.25) contrast(1.15);
    transform: scale(1.08);
}

.logo-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f7f2ea 100%);
    padding: 18px 32px;
    border-radius: 16px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.6);
    position: relative;
}

.logo-panel::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 12px;
    border: 1px dashed rgba(139, 69, 19, 0.3);
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--color-text-light);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
}

.hero-scene {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
    position: relative;
}

.hero-left {
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 35px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.hero-left::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    opacity: 0.2;
}

.hero-left::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    transform: rotate(-12deg);
    opacity: 0.35;
}

.case-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(217, 0, 18, 0.15);
    border: 1px solid rgba(217, 0, 18, 0.5);
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    letter-spacing: 12px;
    color: var(--color-text-light);
    text-shadow: 0 0 35px rgba(139, 69, 19, 0.8);
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 25px;
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.hero-meta span {
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-primary {
    background: linear-gradient(135deg, rgba(217, 0, 18, 0.85) 0%, rgba(160, 82, 45, 0.85) 100%);
}

.btn.hero-primary:hover {
    background: linear-gradient(135deg, rgba(217, 0, 18, 1) 0%, rgba(160, 82, 45, 1) 100%);
}

.hero-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--color-text-light);
}

.btn.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.hero-right {
    position: relative;
    background: rgba(10, 8, 6, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 30px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.spotlight {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
    transform: translateX(-50%);
    animation: sweep 8s linear infinite;
}

.laser-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(217, 0, 18, 0), rgba(217, 0, 18, 0.7), rgba(217, 0, 18, 0));
    mix-blend-mode: screen;
    animation: laser 5s ease-in-out infinite;
}

.laser-one { left: 25%; animation-delay: 0s; }
.laser-two { left: 70%; animation-delay: 2.5s; }

.evidence-board {
    position: relative;
    background: rgba(20, 15, 10, 0.9);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.board-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-text-light);
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    position: relative;
}

.board-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    font-size: 0.9rem;
    min-height: 130px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.board-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    top: 10px;
    right: 10px;
    box-shadow: 0 0 10px rgba(217, 0, 18, 0.6);
}

.board-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.board-polaroid {
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.board-polaroid img {
    max-width: 100%;
    height: 90px;
    object-fit: contain;
    mix-blend-mode: screen;
    margin-bottom: 10px;
}

.board-note h4 {
    margin-bottom: 10px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.board-note ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text);
}

.board-note ul li::before {
    content: '•';
    color: var(--color-primary);
    margin-right: 6px;
}

.board-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

@keyframes sweep {
    0% { transform: translate(-50%, 0) rotate(0deg); opacity: 0.8; }
    50% { transform: translate(-30%, 0) rotate(10deg); opacity: 0.4; }
    100% { transform: translate(-50%, 0) rotate(0deg); opacity: 0.8; }
}

@keyframes laser {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}

@keyframes code-scan {
    0% { transform: translateY(-20%); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(20%); opacity: 0.8; }
    100% { transform: translateY(60%); opacity: 0; }
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}


/* ============================================
   MAIN LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 30px;
}

/* ============================================
   POST CARDS
   ============================================ */

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.85), rgba(22, 18, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 30px 30px;
    transition: all 0.35s ease;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    overflow: hidden;
}

.post-card-case {
    position: absolute;
    top: 10px;
    left: 40px;
    padding: 10px 30px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(217, 0, 18, 1), rgba(160, 82, 45, 0.95));
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-light);
    box-shadow: 0 15px 30px rgba(217, 0, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-card-case::before {
    content: '📁';
    font-size: 1.1rem;
}

.post-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 69, 19, 0.3);
    border-color: rgba(217, 0, 18, 0.3);
}

.post-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.post-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 5, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.post-card:hover .post-card-media::after {
    opacity: 1;
}

.post-card-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: saturate(0.8);
}

.post-card:hover .post-card-image {
    transform: scale(1.08);
    filter: saturate(1);
}

.post-card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px var(--color-shadow), 0 0 10px rgba(139, 69, 19, 0.4);
}

.post-card-excerpt {
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    opacity: 0.7;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6) 0%, rgba(101, 67, 33, 0.5) 100%);
    border: 1px solid rgba(139, 69, 19, 0.7);
    padding: 25px;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 4px 15px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.2);
    position: relative;
}

.sidebar-widget::before {
    content: '🔎';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.2;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    text-shadow: 1px 1px 4px var(--color-shadow), 0 0 8px rgba(139, 69, 19, 0.4);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 69, 19, 0.5);
    color: #333;
    font-family: var(--font-main);
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: inset 0 2px 5px var(--color-shadow), 0 0 15px rgba(139, 69, 19, 0.4);
}

.search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--color-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 3px var(--color-shadow);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    padding: 10px;
    background: rgba(139, 69, 19, 0.4);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 5px;
}

.categories-list a:hover {
    background: rgba(139, 69, 19, 0.7);
    border-left-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(139, 69, 19, 0.5);
}

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

.post-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 20px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.post-header-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.6));
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.05) 100%);
    pointer-events: none;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px var(--color-shadow), 0 0 15px rgba(139, 69, 19, 0.5);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--color-text-light);
    opacity: 0.8;
    font-size: 0.95rem;
}

.post-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    border: 3px solid var(--color-border);
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: block;
    background: var(--color-dark-gray);
    padding: 5px;
}

.post-content {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    padding: 40px;
    border: 1px solid var(--color-border);
    line-height: 1.9;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.post-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.03) 100%);
    pointer-events: none;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
    color: var(--color-text-light);
    margin: 30px 0 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px var(--color-shadow), 0 0 10px rgba(139, 69, 19, 0.4);
}

.post-content img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: var(--color-dark-gray);
    padding: 5px;
    object-fit: contain;
    object-position: center;
}

.post-content img[style*="max-width"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-text);
    opacity: 0.9;
}

.post-content code {
    background: rgba(139, 69, 19, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

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

.comments-section {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 4px 20px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
}

.comments-section h3 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px var(--color-shadow), 0 0 10px rgba(139, 69, 19, 0.4);
}

.comments-section h3::before {
    content: '💬';
    margin-right: 10px;
    font-size: 1.2em;
}

.comment {
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-dark-gray) 100%);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-primary);
    box-shadow: 0 2px 10px var(--color-shadow);
    position: relative;
}

.comment::before {
    content: '📝';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.3;
}

.comment-author {
    color: var(--color-text-light);
    font-weight: bold;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-shadow: 0 0 8px rgba(139, 69, 19, 0.5);
}

.comment-date {
    color: var(--color-text-light);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.comment-text {
    color: var(--color-text);
    line-height: 1.7;
}

.comment-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-dark-gray);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    box-shadow: inset 0 2px 5px var(--color-shadow);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: inset 0 2px 5px var(--color-shadow), 0 0 15px rgba(139, 69, 19, 0.4);
}

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

.btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--color-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 3px var(--color-shadow);
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    padding: 40px;
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 10px 40px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.05) 100%);
    pointer-events: none;
}

.auth-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

.auth-title {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px var(--color-shadow), 0 0 15px rgba(139, 69, 19, 0.5);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--color-text);
}

.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-error {
    background: rgba(217, 0, 18, 0.15);
    border-color: rgba(217, 0, 18, 0.4);
    color: var(--color-text-light);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.alert-success {
    background: rgba(46, 139, 87, 0.15);
    border-color: rgba(46, 139, 87, 0.4);
    color: var(--color-text-light);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.auth-link a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(139, 69, 19, 0.6);
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-header {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    padding: 40px;
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.05) 100%);
    pointer-events: none;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    margin: 0 auto 20px;
    background: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/img/detective-icon.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.profile-avatar::after {
    content: '🕵️';
    position: relative;
    z-index: 1;
}

.profile-name {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px var(--color-shadow), 0 0 15px rgba(139, 69, 19, 0.5);
}

.profile-email {
    color: var(--color-text-light);
    opacity: 0.8;
    font-size: 1.1rem;
}

.profile-content {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-gray) 100%);
    padding: 40px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px var(--color-shadow), inset 0 1px 0 rgba(139, 69, 19, 0.1);
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h3 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    text-shadow: 1px 1px 5px var(--color-shadow), 0 0 10px rgba(139, 69, 19, 0.4);
}

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

.footer {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-olive) 50%, var(--color-dark-gray) 100%);
    border-top: 3px solid var(--color-primary);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    color: var(--color-text);
    opacity: 0.8;
    box-shadow: 0 -4px 20px var(--color-shadow);
}

.footer-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(139, 69, 19, 0.4));
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: var(--color-text-light);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(139, 69, 19, 0.5);
}

.footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    body {
        background-size: auto, auto, auto, 500px auto, 500px auto;
    }

    body::after {
        width: 100%;
        background-size: auto, auto, 500px auto;
    }

    html::before {
        width: 100%;
        background-size: auto, auto, 500px auto;
    }

    .header {
        padding: 30px 0 40px;
        background-size: 400px auto;
    }

    .header-container {
        gap: 25px;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-wrapper {
        align-items: flex-start;
    }

    .logo {
        font-size: 2.5rem;
        padding: 15px 25px;
        gap: 15px;
    }

    .logo-img {
        height: 80px;
        max-width: 250px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
    }

    .hero-scene {
        grid-template-columns: 1fr;
    }

    .hero-right {
        min-height: 380px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .hero-meta {
        flex-direction: column;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-content {
        padding: 20px;
    }

    .auth-container {
        margin: 30px 20px;
        padding: 30px 20px;
    }

    .container {
        padding: 20px 15px;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 25px 25px;
    }

    .post-card-media {
        min-height: 220px;
    }

    .post-card-case {
        left: 24px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    body {
        background-size: auto, auto, auto, 350px auto, 350px auto;
    }

    body::after {
        background-size: auto, auto, 350px auto;
    }

    html::before {
        background-size: auto, auto, 350px auto;
    }

    .logo {
        font-size: 2rem;
        padding: 12px 20px;
        gap: 12px;
    }

    .logo-img {
        height: 60px;
        max-width: 180px;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .hero-left,
    .hero-right {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 5px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .post-card {
        padding: 35px 18px 22px;
    }

    .post-card-case {
        left: 18px;
        top: 10px;
        font-size: 0.85rem;
        padding: 8px 20px;
    }

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

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

