@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono:wght@400&display=swap");

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

body {
    background-image: url(assets/bg_303.gif);
    background-color: #0a0a0a;
    color: #c0c0c0;
    font-family: "Share Tech Mono", "Courier New", monospace;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Different page backgrounds */
body.writings-page {
    background-image: url(assets/writings-bg.gif);
}

body.examples-page {
    background-image: url(assets/examples-bg.gif);
}

body.manifesto-page {
    background-image: url(assets/manifesto-bg.gif);
}

/* CRT Scanlines Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 100, 0.03) 2px,
        rgba(255, 0, 100, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* CRT Screen Effect */
.crt-container {
    position: relative;
    max-width: 800px;
    margin: 69px auto;
    padding: 60px 40px;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #111 11%, #000 70%);
    opacity: 0.95;
    box-shadow:
        inset 0 0 50px rgba(255, 0, 100, 0.1),
        0 0 100px rgba(0, 0, 0, 0.8);
}

.screen {
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Header */
.logo {
    font-size: 2.5rem;
    color: #ff0066;
    text-shadow:
        0 0 5px #ff0066,
        0 0 10px #ff0066,
        0 0 15px #ff0066;
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-weight: 400;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 9px;
    letter-spacing: 2px;
}

/* Cursor blink */
.cursor {
    animation: blink 1s infinite;
    color: #ff0066;
}

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

/* Navigation */
.nav {
    margin-bottom: 1em;
    text-align: center;
}

.nav-container {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    padding: 30px;
    position: relative;
}

.nav-container::before {
    content: "┌─────────────────────────────────────────────────────────────────┐";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: #333;
    background: #0a0a0a;
    text-align: center;
    font-size: 0.8rem;
}

.nav-container::after {
    content: "└─────────────────────────────────────────────────────────────────┘";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: #333;
    background: #0a0a0a;
    text-align: center;
    font-size: 0.8rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 600px;
}

.nav a {
    color: #888;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: lowercase;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    white-space: nowrap;
}

.nav a::before {
    content: "[ ";
    color: #ff0066;
}

.nav a::after {
    content: " ]";
    color: #ff0066;
}

.nav a:hover {
    color: #ff0088;
    border-color: #ff0088;
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.4);
    text-shadow: 0 0 5px #ff0088;
    background: rgba(255, 0, 100, 0.1);
}

.nav a.active {
    color: #ff0066;
    border-color: #ff0066;
    background: rgba(255, 0, 100, 0.2);
    text-shadow: 0 0 5px #ff0066;
}

/* ASCII decoration around nav */
.nav-decoration {
    color: #333;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Sections */
.section {
    opacity: 0.9;
}

.section-title {
    color: #ff0066;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "▓";
    color: #333;
    margin: 0 20px;
}

/* Definition */
.definition {
    color: #999;
    padding: 40px 40px;
    border: 1px dashed #222;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.word-header {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.word {
    color: #ff0066;
    font-size: 2.5rem;
    letter-spacing: 6px;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 0, 100, 0.3);
}

.pronunciation {
    color: #888;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.part-of-speech {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.meanings {
    margin-bottom: 40px;
}

.meaning {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.definition-text {
    margin: 0;
    line-height: 1.1;
    color: #aaa;
    font-size: 0.95rem;
}

.word-info {
    border-top: 1px solid #333;
    padding-top: 25px;
    margin-top: 30px;
}

.origin {
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9rem;
}

.etymology {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

.word-info strong {
    color: #ff0066;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 0 3px rgba(255, 0, 100, 0.2);
}

.word-info em {
    color: #ccc;
    font-style: italic;
}

.definition p {
    margin-bottom: 6px;
    line-height: 1.2;
    color: #aaa;
}

.definition strong {
    color: #ccc;
} /* Examples */
.examples {
    max-width: 600px;
    margin: 0 auto;
}

.example {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.example-title {
    color: #ff0066;
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.example-title:hover {
    text-shadow: 0 0 5px #ff0066;
    color: #ff0088;
    transform: translateX(5px);
}

.example-pronunciation {
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.example p {
    color: #999;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Writings */
.writings {
    max-width: 600px;
    margin: 0 auto;
}

.writing {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.writing-title {
    margin-bottom: 15px;
}

.writing-link {
    color: #ff0066;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.writing-link:hover {
    text-shadow: 0 0 5px #ff0066;
    color: #ff0088;
}

.writing-link::before {
    content: "[ ";
    color: #ff0066;
}

.writing-link::after {
    content: " ]";
    color: #ff0066;
}

.writing-description {
    color: #999;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Placeholders */
.placeholder {
    color: #444;
    font-style: italic;
    padding: 60px 20px;
    border: 1px dashed #222;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.2);
}

.terminal-line {
    color: #666;
    margin-bottom: 20px;
}

.terminal-line::before {
    content: "> ";
    color: #ff0066;
}

/* Footer */
.footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #222;
    color: #444;
    font-size: 0.8rem;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #333;
    padding: 10px;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    max-width: 100%;
}

.mobile-nav a {
    color: #888;
    text-decoration: none;
    padding: 12px 8px;
    font-size: 0.75rem;
    text-transform: lowercase;
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.mobile-nav a::before {
    content: attr(data-icon);
    font-size: 1rem;
    line-height: 1;
    color: #ff0066;
    text-shadow:
        0 0 5px rgba(255, 0, 100, 0.8),
        0 0 10px rgba(255, 0, 100, 0.4);
    font-weight: bold;
    font-family: "Courier New", monospace;
    display: block;
}

.mobile-nav a.active::before {
    color: #ff0066;
    text-shadow: 0 0 8px #ff0066;
    animation: glitch 0.3s ease-in-out;
}

.mobile-nav a:hover::before {
    color: #ff0088;
    text-shadow: 0 0 5px #ff0088;
}

.mobile-nav a.active {
    color: #ff0066;
    border-color: #ff0066;
    background: rgba(255, 0, 100, 0.2);
    text-shadow: 0 0 5px #ff0066;
}

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

.mobile-nav a:hover {
    color: #ff0066;
    border-color: #ff0066;
    background: rgba(255, 0, 100, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        gap: 20px;
    }

    .nav a {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .crt-container {
        margin: 0;
        padding: 30px 15px 80px 15px; /* Add bottom padding for mobile nav */
    }

    .logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    /* Hide desktop navigation on mobile */
    .nav {
        display: none;
    }

    /* Show mobile navigation */
    .mobile-nav {
        display: block;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .crt-container {
        margin: 0;
        padding: 20px 10px 90px 10px; /* Increased bottom padding for mobile nav */
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .mobile-nav {
        padding: 12px 8px;
    }

    .mobile-nav a {
        padding: 14px 6px;
        font-size: 0.7rem;
    }

    .mobile-nav a::before {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .screen {
        margin-top: 1em;
    }
}

@media (max-width: 360px) {
    .crt-container {
        padding: 15px 8px 95px 8px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .mobile-nav a {
        padding: 12px 4px;
        font-size: 0.65rem;
        gap: 2px;
    }

    .mobile-nav a::before {
        font-size: 0.8rem;
    }
}

/* Glow effects */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 5px #ff0066,
            0 0 10px #ff0066,
            0 0 15px #ff0066;
    }
    to {
        text-shadow:
            0 0 10px #ff0066,
            0 0 20px #ff0066,
            0 0 30px #ff0066;
    }
}
