@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.7;
    padding: 1.5rem;
    margin: 0;
}

.content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1002;
}

.site-title {
    font-weight: 600;
    font-size: 1.75rem;
    margin: 0;
}

.menu-toggle {
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    position: absolute;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}
.menu-toggle span:nth-child(2) {
    top: 10px;
}
.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.site-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: #ffffff;
    border: 1px solid #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    z-index: 1000;
    text-align: left;
    min-width: 200px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.site-nav.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.site-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #000;
    display: inline-block;
    padding: 0.25rem 0;
}

a {
    color: #2b6cb0; /* A calm minimalist blue */
    text-decoration: none;
    word-break: break-word;
}

a:hover {
    color: #1a4e8a; /* Slightly darker on hover */
}

.novel-content {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .content {
        max-width: 700px;
        padding: 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        display: block !important;
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        border: none;
        min-width: unset;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .site-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .site-header {
        justify-content: space-between;
    }
}

.novel-updates {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.novel-card {
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.2s ease;
}

.novel-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.novel-card-inner {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.novel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.read-button {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.read-button:hover {
    background-color: #333;
}