/* DogRoast Brutalist Tech Chaos Theme */
@font-face {
    font-family: 'SpecialElite';
    src: url('fonts/SpecialElite-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: normal;
}

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

::selection {
    background: #000;
    color: #fff;
}

html, body {
    font-family: 'Courier New', monospace;
    background: #e8e8e8;
    color: #1a1a1a;
    overflow-x: hidden;
    cursor: crosshair;
    min-height: 100vh;
}

main {
    margin-top: 0;
    padding-top: 0;
}

/* Chaotic ASCII Header */
.ascii-header {
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    font-size: clamp(0.6rem, 1.2vw, 0.9rem);
    line-height: 1.1;
    white-space: pre;
    overflow: hidden;
    position: relative;
    border-bottom: 20px solid #666;
    font-family: monospace;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-section {
    flex: 0 0 auto;
    padding-right: 2rem;
}

.ascii-center {
    flex: 1;
    text-align: center;
}

.search-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.ascii-header .logo-img {
    height: 120px;
    width: auto;
    border: 3px solid #fff;
    filter: invert(1);
}

.ascii-art {
    display: inline-block;
    animation: glitch 8s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
}

/* Navigation integrated into header */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #666;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    border: 2px solid #fff;
    background: #333;
}

.search-form {
    display: flex;
    background: #fff;
    border: 3px solid #000;
}

.search-input {
    padding: 0.5rem;
    border: none;
    background: #fff;
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    min-width: 200px;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    cursor: crosshair;
    font-size: 1rem;
}

.search-btn:hover {
    background: #333;
}

.random-btn {
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #000 !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.random-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Broken Grid Navigation - Side */
.nav-chaos {
    position: fixed;
    top: 50%;
    right: -150px;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 100;
    background: #2a2a2a;
    padding: 1rem 3rem;
    transition: all 0.3s;
    border: 3px solid #000;
}

.nav-chaos:hover {
    right: -50px;
    background: #000;
}

.nav-chaos a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

/* Main Content Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Diagonal Section Dividers */
.diagonal-section {
    position: relative;
    background: #f5f5f5;
    transform: skewY(-3deg);
    margin: 1rem 0;
    padding: 2rem 0;
}

.diagonal-section:nth-child(even) {
    background: #d0d0d0;
    transform: skewY(3deg);
}

.diagonal-content {
    transform: skewY(3deg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.diagonal-section:nth-child(even) .diagonal-content {
    transform: skewY(-3deg);
}

/* Brutalist Title Treatment */
.mega-title {
    font-family: 'SpecialElite', 'Courier New', monospace;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    margin: 2rem 0;
    mix-blend-mode: difference;
    position: sticky;
    top: 20vh;
    z-index: -1;
    opacity: 0.1;
    text-transform: uppercase;
    word-break: break-all;
}

/* Section Headers */
.section-header {
    font-family: 'SpecialElite', 'Courier New', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0.5rem 0 1rem 0;
    border-bottom: 8px solid #000;
    padding-bottom: 0.5rem;
    letter-spacing: -2px;
}

/* Post Cards - Newspaper Style */
.post-newspaper {
    display: grid;
    grid-template-columns: 1fr 2px 1fr 2px 1fr;
    gap: 2rem;
    margin: 1rem auto;
    max-width: 1400px;
    padding: 2rem;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 15px 15px 0 #000;
    position: relative;
}

.post-newspaper::before {
    content: "ISSUE #2025 // FRIDAY.CURSED.EDITION";
    position: absolute;
    top: -30px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.column-divider {
    background: repeating-linear-gradient(
        to bottom,
        #000,
        #000 5px,
        transparent 5px,
        transparent 10px
    );
    width: 2px;
}

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

.post-headline {
    font-family: 'SpecialElite', 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 1rem;
    border-bottom: 5px solid #000;
    padding-bottom: 0.5rem;
}

.post-content {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    letter-spacing: 0.5px;
}

.post-meta {
    font-family: 'Orbitron', 'Arial Narrow', sans-serif;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #000;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Date and metadata styling */
.post-meta span,
.content-card .post-meta {
    font-family: 'Orbitron', 'Arial Narrow', sans-serif;
    font-weight: 600;
}

/* Content Grid for Articles/Guides/Posts */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.content-card {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.content-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
}

.content-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #000;
}

.content-card h3 {
    font-family: 'SpecialElite', 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.content-card h3 a {
    color: #000;
    text-decoration: none;
}

.content-card h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.content-card p {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-button {
    font-family: 'SpecialElite', 'Courier New', monospace;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
    transition: all 0.2s;
}

.tag-button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Floating Random Elements */
.floating-element {
    position: fixed;
    font-size: 8rem;
    opacity: 0.05;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
    font-weight: 900;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 70%;
    right: 10%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(5deg); }
    50% { transform: translate(-30px, 50px) rotate(-5deg); }
    75% { transform: translate(30px, 30px) rotate(3deg); }
}

/* Interactive Hover Zones */
.hover-zone {
    padding: 3rem;
    margin: 2rem 0;
    background: linear-gradient(45deg, 
        #f0f0f0 25%, 
        transparent 25%, 
        transparent 75%, 
        #f0f0f0 75%, 
        #f0f0f0),
    linear-gradient(45deg, 
        #f0f0f0 25%, 
        #fff 25%, 
        #fff 75%, 
        #f0f0f0 75%, 
        #f0f0f0);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    transition: all 0.3s;
    border-left: 10px solid #000;
}

.hover-zone:hover {
    background-size: 60px 60px;
    border-left-width: 30px;
    padding-left: 5rem;
}

/* Scrolling Ticker */
.ticker {
    background: #000;
    color: #fff;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 3px solid #333;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 120s linear infinite;
    padding-left: 100%;
}

.ticker-content a {
    text-decoration: none;
    color: #fff;
    cursor: crosshair;
}

.ticker-content a:hover {
    color: #ccc;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Experimental Layout Blocks */
.block-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin: 4rem 0;
    border: 4px solid #000;
}

.block-item {
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 3rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.block-item:hover {
    background: #000;
    color: #fff;
    z-index: 10;
    transform: scale(1.1);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.3);
}

.block-item::after {
    content: attr(data-number);
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Vertical Text Elements */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    opacity: 0.1;
    text-transform: uppercase;
}

/* Footer Chaos */
.footer-chaos {
    margin-top: 10rem;
    margin-bottom: 60px; /* Space for ticker */
    padding: 4rem 2rem;
    background: #000;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-chaos::before {
    content: "END OF TRANSMISSION";
    position: absolute;
    font-size: 10rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    white-space: nowrap;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-slogan {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-signature {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-signature a {
    color: #ccc;
    text-decoration: none;
}

.footer-signature a:hover {
    color: #fff;
}

/* Buttons */
.btn, .button-weird {
    background: #000;
    color: #fff;
    border: 3px solid #000;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: crosshair;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.btn:hover, .button-weird:hover {
    background: #fff;
    color: #000;
    border: 3px solid #000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Chaos */
@media (max-width: 768px) {
    .post-newspaper {
        grid-template-columns: 1fr;
    }
    .column-divider {
        display: none;
    }
    .nav-chaos {
        display: none;
    }
    .mega-title {
        font-size: 3rem;
    }
    .ascii-header {
        padding: 1rem;
        font-size: 0.7rem;
    }
    .ascii-header .logo-container {
        flex-direction: column;
        gap: 1rem;
    }
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        justify-content: center;
    }
    .search-form {
        width: 100%;
    }
    .search-input {
        min-width: auto;
        flex: 1;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 1rem;
    }
    .floating-element {
        display: none;
    }
    .vertical-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .ascii-header {
        font-size: 0.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    .content-card {
        padding: 1rem;
    }
    .section-header {
        font-size: 2rem;
    }
}

/* Cursor Trail Effect */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

/* Hide old elements that might conflict */
.cyber-bg, .cyber-gradient, .matrix-rain, .particles, .orb, .orb1, .orb2, .orb3, .grid-overlay, .scanlines, .noise-overlay {
    display: none !important;
}

/* Input styling for forms */
input[type="text"], 
input[type="email"], 
input[type="search"],
textarea, 
select {
    background: #fff;
    border: 3px solid #000;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    color: #000;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="search"]:focus,
textarea:focus, 
select:focus {
    outline: none;
    border: 3px solid #666;
    background: #f0f0f0;
}