/* ===========================================
   DOZY CAT - Retro 8-bit Personal Blog
   =========================================== */

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

:root {
    --bg-dark: #1e2225;
    --bg-darker: #161a1d;
    --green-neon: #39ff14;
    --green-dark: #2ecc71;
    --purple-neon: #bf40bf;
    --purple-light: #da70d6;
    --orange-cat: #f5a623;
    --orange-stripe: #d4831b;
    --white: #ffffff;
    --gray: #888888;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: var(--bg-darker);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

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

/* ===========================================
   HEADER
   =========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.title-section {
    width: 40%;
}

.mascot {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-aim {
    font-size: 2.5rem;
    color: var(--green-neon);
    text-shadow:
        0 0 10px var(--green-neon),
        0 0 20px var(--green-neon),
        0 0 40px var(--green-neon);
    letter-spacing: 4px;
}

.title-dozy,
.title-cat {
    font-size: 3rem;
    color: var(--purple-neon);
    text-shadow:
        0 0 10px var(--purple-neon),
        0 0 20px var(--purple-neon),
        0 0 40px var(--purple-neon);
    letter-spacing: 6px;
}

/* ===========================================
   CAT MASCOT
   =========================================== */

.cat-image {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    animation: breathe 3s ease-in-out infinite;
}

.cat-image:hover {
    animation: breathe 3s ease-in-out infinite, wiggle 0.5s ease;
}

/* Sleeping Zzz */
.zzz {
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 1.2rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: float 2s ease-in-out infinite;
    z-index: 10;
}

.zzz span:nth-child(1) {
    font-size: 0.9rem;
    margin-left: 8px;
    opacity: 0.8;
    animation: float 2s ease-in-out infinite 0.3s;
}

.zzz span:nth-child(2) {
    font-size: 0.65rem;
    margin-left: 5px;
    opacity: 0.6;
    animation: float 2s ease-in-out infinite 0.6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.6;
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* ===========================================
   VISION SECTION
   =========================================== */
.vision {
    background: var(--bg-dark);
    border: 3px solid var(--green-dark);
    padding: 20px 25px;
    margin-bottom: 40px;
    position: relative;
}

.vision::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--green-neon);
    box-shadow: 0 0 10px var(--green-neon);
}

.vision-label {
    color: var(--green-neon);
    font-size: 0.8rem;
    text-shadow: 0 0 10px var(--green-neon);
}

.vision p {
    font-size: 0.7rem;
    line-height: 2;
    margin-top: 10px;
    color: var(--gray);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--green-neon);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.posts {
    flex: 2;
    min-width: 280px;
}

.post-item {
    margin-bottom: 15px;
}

.post-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.post-item a::before {
    content: '>';
    color: var(--green-neon);
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item a:hover {
    color: var(--green-neon);
    text-shadow: 0 0 10px var(--green-neon);
    padding-left: 20px;
}

.post-item a:hover::before {
    opacity: 1;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px dashed var(--gray);
    text-align: center;
}

.footer p {
    font-size: 0.5rem;
    color: var(--gray);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .title-section {
        width: 100%;
    }

    .mascot {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

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

    .title-dozy,
    .title-cat {
        font-size: 2.2rem;
    }

    .content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title-aim {
        font-size: 1.4rem;
    }

    .title-dozy,
    .title-cat {
        font-size: 1.8rem;
    }

    .vision p {
        font-size: 0.6rem;
    }

    .post-item a {
        font-size: 0.7rem;
    }
}
