/* Retro-cyberpunk theme inspired by Dirty Pair */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Press+Start+2P&display=swap');
@import url('https://fonts.cdnfonts.com/css/vcr-osd-mono');

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
    color: #e0e0e0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Centralized Styles for All Pages (Except Splash) */
.retro-container {
    background: #0d0d0d;
    padding: 2rem;
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

.retro-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1a1a1a;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    box-shadow: 0 0 10px #ff00ff;
    position: relative;
}

    .retro-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 3px );
        pointer-events: none;
        opacity: 0.5;
    }

.retro-title {
    font-family: 'VCR OSD Mono', monospace;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

    .retro-title:not(:first-child) {
        font-size: 1.5rem;
    }

.retro-text {
    font-family: 'Orbitron', sans-serif;
    color: #b3f5f1;
    font-size: 1rem;
    line-height: 1.5;
}

.retro-button {
    display: inline-block;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #00ffcc;
    border: 2px solid #ff00ff;
    border-radius: 5px;
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #ff00ff;
    text-decoration: none;
    text-align: center;
}

    .retro-button:hover:not(:disabled) {
        background: #ff00ff;
        color: #000;
        box-shadow: 0 0 15px #ff00ff;
    }

    .retro-button.disabled {
        background: #800080;
        color: #666;
        cursor: not-allowed;
        border-color: #800080;
    }

.retro-link {
    color: #00ffcc;
    text-decoration: none;
    text-shadow: 0 0 5px #00ffcc;
    transition: all 0.3s ease;
}

    .retro-link:hover {
        color: #b3f5f1;
        text-decoration: underline;
        text-shadow: 0 0 10px #b3f5f1;
    }

.retro-card {
    background: #1a1a1a;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px #ff00ff;
    position: relative;
    min-height: 200px;
}

    .retro-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 3px );
        pointer-events: none;
        opacity: 0.5;
    }

.retro-card-title {
    font-family: 'VCR OSD Mono', monospace;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    font-size: 1.2rem;
}

.retro-card-text {
    font-family: 'Orbitron', sans-serif;
    color: #b3f5f1;
    font-size: 0.9rem;
}

.novel-heading {
    font-family: 'VCR OSD Mono', monospace;
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.novel-content {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 10px #ff00ff;
    position: relative;
}

.novel-text {
    font-family: 'Orbitron', sans-serif;
    color: #b3f5f1;
    font-size: 1.2rem;
    line-height: 1.6;
}

    .novel-text blockquote {
        background: rgba(255, 0, 122, 0.2);
        border-left: 4px solid #ff007a;
        border-right: 4px solid #ff007a;
        padding: 1rem;
        margin: 1rem 0;
        color: #b3f5f1;
        text-shadow: 0 0 5px #00ffcc;
        position: relative;
        transition: all 0.3s ease;
        border-radius: 5px;
    }

        .novel-text blockquote:hover {
            border-left-color: #00ffcc;
            border-right-color: #00ffcc;
            box-shadow: 0 0 10px #00ffcc;
        }

.novel-image, .novel-image-section img {
    max-width: 75%;
    border: 2px solid #ff00ff;
    border-radius: 5px;
    margin: 1rem auto;
    box-shadow: 0 0 10px #ff00ff;
    filter: contrast(110%) saturate(120%);
    display: block;
}

.retro-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff00ff;
    color: #b3f5f1;
    font-family: 'Orbitron', sans-serif;
    border-radius: 5px;
}

    .retro-input:focus {
        border-color: #00ffcc;
        box-shadow: 0 0 10px #00ffcc;
    }

.retro-label {
    font-family: 'VCR OSD Mono', monospace;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    font-weight: 300;
}

.retro-error {
    color: #ff6666;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.retro-alert {
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid #ff00ff;
    color: #b3f5f1;
    border-radius: 5px;
    padding: 1rem;
}

.milestone {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    box-shadow: 0 0 10px #ff00ff;
    position: relative;
}

    .milestone::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 3px );
        pointer-events: none;
        opacity: 0.5;
    }

.retro-subtitle {
    font-family: 'VCR OSD Mono', monospace;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    font-size: 1.2rem;
}

.retro-carousel {
    max-height: 500px;
    overflow: hidden;
    border: 3px solid #ff00ff;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff00ff, #00ffcc);
    box-shadow: 0 0 15px #ff00ff, 0 0 30px #00ffcc;
    position: relative;
}

    .retro-carousel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 3px );
        pointer-events: none;
        opacity: 0.5;
    }

.retro-image {
    object-fit: cover;
    height: 500px;
    width: 100%;
    filter: contrast(110%) saturate(120%);
}

/* Navbar Styles */
.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 2px solid #ff00ff;
}

.navbar-brand.neon-text {
    font-family: 'Press Start 2P', cursive;
    color: #ff007a !important;
    text-shadow: 0 0 10px #ff00ff;
}

.nav-link.text-neon {
    color: #00ddeb !important;
    text-shadow: 0 0 5px #00ddeb;
}

    .nav-link.text-neon:hover {
        color: #b3f5f1 !important;
    }

/* Footer Styles */
.footer {
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid #ff00ff;
    color: #b3f5f1;
    text-shadow: 0 0 2px #00ddeb;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
}

    .footer a.text-neon {
        color: #00ddeb;
        text-decoration: none;
        text-shadow: 0 0 2px #00ddeb;
    }

        .footer a.text-neon:hover {
            color: #b3f5f1;
            text-decoration: underline;
        }

/* Splash Screen Styles */
.splash-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff007a, #00ddeb, #ff00ff);
    position: relative;
    overflow: auto;
}

    .splash-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/images/cyberpunk-city.jpg') no-repeat center center/cover;
        opacity: 0.2;
        z-index: 1;
    }

.splash-content {
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
    max-width: 90%;
    text-align: center;
}

.splash-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 3.5rem;
    color: #ff007a;
    text-shadow: 0 0 5px #ff007a, 0 0 5px #ff00ff;
    margin-bottom: 1rem;
}

    .splash-title.glow {
        animation: glow 0.5s ease-in-out;
    }

.splash-subtitle {
    font-size: 1.5rem;
    color: #00ddeb;
    text-shadow: 0 0 5px #00ddeb;
    margin-bottom: 2rem;
}

.splash-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 25px;
    background: #ff007a;
    border-color: #ff007a;
    transition: all 0.3s ease;
}

    .splash-button:hover {
        transform: scale(1.1);
        background: #e6006b;
        border-color: #e6006b;
        box-shadow: 0 0 15px #ff00ff;
    }

.splash-links {
    font-size: 1rem;
}

    .splash-links .text-neon {
        color: #00ddeb;
        text-decoration: none;
        text-shadow: 0 0 5px #00ddeb;
    }

        .splash-links .text-neon:hover {
            text-decoration: underline;
            color: #b3f5f1;
        }

/* Responsive Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .retro-carousel {
        max-height: 400px;
    }

    .retro-image {
        height: 400px;
    }

    .retro-title {
        font-size: 2rem;
    }

        .retro-title:not(:first-child) {
            font-size: 1.4rem;
        }

    .retro-text, .retro-card-text {
        font-size: 0.9rem;
    }

    .retro-button {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .retro-card-title, .retro-subtitle {
        font-size: 1.1rem;
    }

    .retro-input {
        font-size: 0.9rem;
    }

    .retro-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .retro-carousel {
        max-height: 300px;
    }

    .retro-image {
        height: 300px;
    }

    .retro-title {
        font-size: 1.8rem;
    }

        .retro-title:not(:first-child) {
            font-size: 1.3rem;
        }

    .retro-text, .retro-card-text {
        font-size: 0.8rem;
    }

    .retro-button {
        width: 100%;
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .retro-card-title, .retro-subtitle {
        font-size: 1rem;
    }

    .retro-card {
        min-height: 150px;
    }

    .retro-input {
        font-size: 0.8rem;
    }

    .retro-label {
        font-size: 0.9rem;
    }

    .retro-error {
        font-size: 0.7rem;
    }

    .novel-heading {
        font-size: 2rem;
    }

    .novel-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        visibility: visible;
    }

        .novel-text blockquote {
            padding: 0.5rem;
            margin: 0.5rem 0;
        }

    .novel-image, .novel-image-section img {
        max-width: 80%;
        margin: 0.5rem auto;
        display: block;
        visibility: visible;
    }
}

@media (max-width: 768px) or (orientation: portrait) {
    .splash-content {
        padding: 1rem;
        max-width: 95%;
    }

    .splash-title {
        font-size: calc(1.5rem + 2.5vw);
    }

    .splash-subtitle {
        font-size: calc(0.8rem + 1.2vw);
    }

    .splash-button {
        padding: 0.5rem 1rem;
        font-size: calc(0.7rem + 1vw);
    }

    .splash-links {
        font-size: calc(0.7rem + 0.8vw);
    }
}

/* Glow animation for splash-title */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px #00ddeb, 0 0 5px #00ddeb;
    }

    50% {
        text-shadow: 0 0 15px #00ddeb, 0 0 20px #00ddeb, 0 0 25px #00ddeb;
    }

    100% {
        text-shadow: 0 0 5px #00ddeb, 0 0 5px #00ddeb;
    }
}
