*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100vh;
}

body {
    width: 100%;
    background-color: #000;
    font-family: Georgia, serif;
    color: #c4d7ed;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Metamorphous', cursive, serif;
    font-weight: normal;
}

#abyss-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

#header-placeholder {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 999;
}

header {
    width: 100%;
    background: linear-gradient(to bottom, #020612, #000000);
    border-bottom: 1px solid #1e293b;
    padding: 15px;
    position: relative;
    z-index: 999;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #e2f0ff;
    text-shadow: none;
    text-align: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #1e293b;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 300;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #8ab4f8;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    pointer-events: none;
}

.nav-toggle--open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle--open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: none;
    padding: 0;
}

nav a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.2s;
}

nav a:hover,
nav a:active {
    color: #fff;
    text-shadow: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown.menu-active .dropdown-content {
    display: block;
}

.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropdown.menu-active .dropdown-arrow {
    transform: rotate(180deg);
}

#footer-placeholder {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    z-index: 200;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    z-index: 100;
}

.book-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    padding: 20px 15px;
    background: rgba(2, 6, 18, 0.95);
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    min-height: 320px;
}

.book-showcase::-webkit-scrollbar { width: 6px; }
.book-showcase::-webkit-scrollbar-track { background: rgba(0,0,0,0.4); border-radius: 4px; }
.book-showcase::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }

.cover-column {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cover-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    border: 1px solid #1e293b;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
}

.status-banner {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #00a8cc, #007090);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.info-column {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 1.4rem;
    color: #a2c2e8;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: none;
    text-align: center;
}

p.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c4d7ed;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

p.description.text-center {
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
}

.trident-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    height: 42px;
    background: linear-gradient(to bottom, #0a2f3d, #051b24);
    color: #e2f0ff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    transition: transform 0.2s, filter 0.3s;
}

.trident-btn:hover,
.trident-btn:active {
    filter: brightness(1.2);
    transform: translateY(-2px);
    border-color: #00a8cc;
}

.filter-white {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

footer,
#abyss-footer {
    width: 100%;
    background: linear-gradient(to top, #020612, #000000);
    border-top: 1px solid #1e293b;
    padding: 15px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: #8fa4bc;
    line-height: 1.4;
}

.footer-title {
    font-family: 'Metamorphous', cursive, serif;
    color: #a2c2e8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-icon-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(138, 180, 248, 0.05);
    border: 1px solid #1e293b;
    transition: background 0.3s, transform 0.2s;
}

.footer-logo {
    width: 18px;
    height: auto;
    object-fit: contain;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 10px;
}

.about-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #e2f0ff;
    text-shadow: none;
}

.contact-section {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.contact-title {
    text-align: center;
    width: 100%;
    font-size: 2rem;
    color: #e2f0ff;
    text-shadow: none;
}

.logo-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.logo-links-container a {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.logo-links-container a:hover {
    transform: scale(1.1);
}

.logo-links-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.patreon-logo {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        text-align: left;
    }

    .header-content h1 {
        flex: 1;
        font-size: 1.2rem;
        text-align: left;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #020612;
        border-top: 1px solid #1e293b;
        padding: 8px 0;
        margin-top: 5px;
    }

    nav.nav-open {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 13px 15px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(138, 180, 248, 0.06);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(138, 180, 248, 0.06);
    }

    .dropdown-content {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #020612;
        border: 1px solid #1e293b;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
        z-index: 9999;
        padding: 5px 0;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        color: #8ab4f8;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(138, 180, 248, 0.04);
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .book-showcase {
        padding: 18px 14px;
        gap: 18px;
        max-height: none;
    }

    .cover-wrapper {
        height: 280px;
    }

    .status-banner {
        top: 12px;
        right: -30px;
        padding: 4px 28px;
        font-size: 0.65rem;
    }

    .footer-content {
        gap: 12px;
    }
}

@media (min-width: 769px) {
    header {
        padding: 25px 15px 20px;
    }

    .header-content h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
        margin: 0 0 5px;
    }

    nav {
        gap: 25px;
    }

    .book-showcase {
        flex-direction: row;
        gap: 40px;
        padding: 35px;
        overflow-y: hidden;
    }

    .cover-column {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .cover-wrapper {
        height: 350px;
    }

    h2 {
        text-align: left;
        font-size: 1.8rem;
    }

    p.description {
        font-size: 1.05rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #020612;
        border: 1px solid #1e293b;
        min-width: 180px;
        border-radius: 6px;
        box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.7);
        z-index: 9999;
        padding: 6px 0;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        color: #8ab4f8;
        padding: 10px 16px;
        text-decoration: none;
        font-size: 0.9rem;
        text-align: left;
        transition: background-color 0.2s, color 0.2s;
    }

    .dropdown-content a:hover {
        background-color: #1e293b;
        color: #fff;
        text-shadow: none;
    }
}

.about-section .description a {
    color: #8ab4f8;
    text-decoration: none; /* Removes the underline completely */
    transition: color 0.2s;
}

.about-section .description a:hover,
.about-section .description a:active {
    color: #fff;
}