/* ===== COMPONENT STYLES ===== */

/* Header Components */
header {
    margin-bottom: 0.1rem;
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 3rem;
}


.logo {
    max-width: 80px;
    height: auto;
    flex-shrink: 0;
}

/* Navigation Components */
.top-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    gap: 2rem;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #2c3e50;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.nav-tab:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.nav-tab.active {
    background: #2c3e50;
    color: white;
}

/* Book Display Components */
.book-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    margin: 0 auto 2rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.book-cover {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.book-details {
    width: 100%;
    max-width: 600px;
}

/* Image Slider Components */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f0f0f0"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="%23999" font-family="Arial" font-size="12">Image Loading...</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150px 100px;
}

.slide-image.active {
    opacity: 1;
}

.image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
}

/* Button Components */
.order-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.order-button:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.cta-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-align: center;
}

.cta-button:hover {
    background-color: #34495e;
}

/* Reading Links */
.reading-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.reading-link {
    color: #2c3e50;
    text-decoration: underline;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reading-link:hover {
    color: #34495e;
    text-decoration: underline;
}

/* Content Sections */
.synopsis {
    margin-bottom: 1.5rem;
}

.comment-section {
    padding: 1rem;
    margin-top: 2rem;
}

/* Form Styles */
.comment-form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content-wrapper.wide .comment-form {
    width: 70vw;
    max-width: 1000px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.submit-button {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.submit-button:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.reviews {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.review {
    margin-bottom: 1.5rem;
    font-style: italic;
    padding: 0 1rem;
}

.review-author {
    font-style: normal;
    color: #666;
    margin-top: 0.5rem;
}

/* Preface Content Styles */
.preface-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.preface-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

.preface-content .signature {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    text-indent: 0;
    font-size: 14px;
}

/* Back Button Styles */
.back-button-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.back-button:hover {
    background: #34495e;
    text-decoration: none;
    color: white;
}
