/* --- Global Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #b9e3e3, #e0b9e3);
    color: #333;
    text-align: center;
}

h1, h2, strong {
    font-family: 'Merriweather', serif;
    color: #c74097;
    margin-bottom: 20px;
}

/* --- Layout Containers --- */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #f7f7f7;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.text-container {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.bio-container {
    background-color: white;
    border: 2px solid #c74097;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    width: 95%;
    box-sizing: border-box;
}

.bio-container p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 2rem auto;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.nav-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-family: 'Merriweather', serif;
    font-weight: bold;
    color: #c74097;
    text-decoration: none;
    border: 2px solid #c74097;
    border-radius: 8px;
    background: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* --- Profile Image --- */
.profile-container {
    flex-shrink: 0;
}

.profile {
    width: 300px;
    height: 300px;
    border-radius: 10%;
    object-fit: cover;
    border: 3px solid #c74097;
}

/* --- Fiction Grid & Cards --- */
.fiction {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
}

.story-card {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #c74097;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0 auto 10px auto;
}

.description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 10px 0;
}

/* --- Buttons --- */
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.button {
    width: 100%;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
    text-align: center;
}

.button.read { background-color: #c74097; }
.button.buy { background-color: #4f88f0; }
.button.forthcoming { background-color: #097969; }

/* --- Standalone Static Image Links --- */
.featured-link {
    display: inline-block;
    text-decoration: none;
}

.custom-card-img {
    width: 300px;
    height: auto;
    border: 2px solid #c74097;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* --- Text Links --- */
.story-link, .story-link:visited {
    color: #c74097;
    text-decoration: none;
}

.secret-link, .secret-link:visited {
    color: #555;
    text-decoration: none;
}

.story-link:hover {
    text-decoration: underline;
}

/* --- Responsive Layout --- */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .text-container {
        text-align: center;
    }
    .story-card {
        flex: 0 1 calc(50% - 20px);
    }
}
