:root {
    --color-press: #FFD700;
    /* Yellow */
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: exclusion;
}

.header-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned as requested */
    text-decoration: none;
}

.header-branding .brand-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: -0.2rem;
}

.header-branding .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.logo:hover {
    opacity: 1;
    /* Override default logo:hover */
}

/* Main Content */
.press-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 100px;
    /* Space for header */
}

/* Background Blob */
.bg-blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.press-blob {
    width: 60vw;
    height: 60vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-press);
    animation: pulse-glow 10s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.content-wrapper {
    text-align: center;
    width: 90%;
    max-width: 1000px;
    z-index: 10;
}

.press-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    /* Press Yellow Shadow */
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.press-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Reader Wrapper */
.reader-wrapper {
    width: 100%;
    height: 75vh;
    background: rgba(20, 20, 20, 0.95);
    /* Dark default base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Interaction Zones */
.trigger-zone,
.nav-zone {
    position: absolute;
    z-index: 100;
    touch-action: manipulation;
    /* DISABLE BROWSER DOUBLE TAP ZOOM */
}

.trigger-zone.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    cursor: default;
}

.nav-zone {
    top: 60px;
    /* Below top trigger */
    bottom: 0;
    width: 30%;
    cursor: pointer;
}

.nav-zone.left {
    left: 0;
}

.nav-zone.right {
    right: 0;
}

/* Floating Controls (Liquid Glass) */
.reader-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0.6rem 1.5rem;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 200;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reader-controls.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Initial state slightly higher (slide in) */
.reader-controls:not(.visible) {
    transform: translateX(-50%) translateY(-20px);
}

.control-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-weight: 600;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Inverted controls for Light Theme */
.reader-controls.light-theme-active {
    background: rgba(0, 0, 0, 0.05);
    /* Darker glass for white bg */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.reader-controls.light-theme-active .control-btn {
    color: rgba(0, 0, 0, 0.6);
}

.reader-controls.light-theme-active .control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: black;
    text-shadow: none;
}

/* Theme Toggles */
.theme-toggles {
    /* Circles for themes */
    display: flex;
    /* explicit */
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-btn.light {
    background: #f9f9f9;
}

.theme-btn.sepia {
    background: #f4ecd8;
}

.theme-btn.dark {
    background: #1a1a1a;
}

/* EPUB Viewer Area */
.epub-viewer {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Loading/Message Overlay */
.reader-message {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.reader-message.hidden {
    opacity: 0;
}

/* Footer */
.sub-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4rem;
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .press-title {
        font-size: clamp(1.8rem, 10vw, 3.5rem);
    }

    .reader-wrapper {
        height: 60vh;
    }

    .reader-controls {
        width: 90%;
        gap: 0.5rem;
        justify-content: space-around;
        padding: 0.5rem;
    }

    .control-btn {
        font-size: 0.9rem;
    }
}

/* Easter Egg */
.secret-link {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--text-secondary);
    text-decoration: none !important;
    opacity: 0.1;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    user-select: none;
}

.secret-link:hover {
    opacity: 0.6;
    color: var(--color-press);
    transform: scale(1.4) rotate(-10deg);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}