﻿
/* Global Styles */
:root {
    --wp--preset--color--base: #FFFFF0;
    --wp--preset--color--contrast: #333333;
    --wp--preset--color--primary: #D4AF37;
    --wp--preset--color--sepia-bg: #f4ecd8;
    --wp--preset--color--sepia-text: #433422;
    --wp--preset--color--dark-bg: #121212;
    --wp--preset--color--dark-text: #e0e0e0;
    --wp--preset--font-family--serif: 'Libre Baskerville', serif;
    --wp--preset--font-family--sans-serif: 'Inter', sans-serif;
}
body {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--serif);
    margin: 0;
    padding: 0;
    line-height: 1.8;
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
}
.site-logo-demo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 24px;
    font-weight: 600;
}
.site-logo-demo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.site-footer {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    padding: 80px 40px 60px;
    text-align: center;
    font-family: var(--wp--preset--font-family--sans-serif);
}
.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 80px;
}
h1, h2, h3 {
    font-family: var(--wp--preset--font-family--serif);
}
.latest-chapters-title {
    text-align: center;
    margin: 80px 0 60px;
}
.story-card {
    max-width: 800px;
    margin: 0 auto 70px;
    padding: 0 40px;
}
.story-card a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
}
.story-card a:hover {
    color: var(--wp--preset--color--primary);
}
.story-card h2 {
    margin-bottom: 10px;
}
.story-meta {
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 20px;
}
/* Custom CSS for Sakku Chapters */

/* Header & Toggle Button */
.toggle-kindle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--contrast);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.toggle-kindle-btn:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

/* Subscription Form */
.subscription-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.subscription-form input[type="email"] {
    padding: 12px 16px;
    border: 1px solid #555;
    background: #444;
    color: #fff;
    border-radius: 4px;
    min-width: 250px;
    font-family: var(--wp--preset--font-family--sans-serif);
}
.subscription-form input[type="email"]:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
}
.subscribe-btn {
    padding: 12px 24px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--contrast);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.subscribe-btn:hover {
    background: #e6c85a;
}

/* Animations Removed */

/* Text Highlights */
::selection {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--contrast);
}

/* --- KINDLE MODE ACTIVE STYLES --- */
body.kindle-mode-active {
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.kindle-mode-active .site-header,
body.kindle-mode-active .site-footer {
    display: none !important; /* Hide header and footer in reading mode */
}

.kindle-controls-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1000;
    gap: 10px;
    align-items: center;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 14px;
}

body.kindle-mode-active .kindle-controls-overlay {
    display: flex; /* Show controls in reading mode */
}

.kindle-controls-overlay .kindle-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
}
.kindle-controls-overlay .kindle-btn:hover {
    color: var(--wp--preset--color--primary);
}
.kindle-separator {
    color: #555;
    margin: 0 5px;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
    display: none;
}
body.kindle-mode-active .reading-progress-container {
    display: block;
}
.reading-progress-bar {
    height: 100%;
    background: var(--wp--preset--color--primary);
    width: 0%;
}

/* Kindle Mode Themes */
body.theme-light { background-color: #FFFFFF !important; color: #222222 !important; }
body.theme-sepia { background-color: var(--wp--preset--color--sepia-bg) !important; color: var(--wp--preset--color--sepia-text) !important; }
body.theme-dark { background-color: var(--wp--preset--color--dark-bg) !important; color: var(--wp--preset--color--dark-text) !important; }

/* Kindle Mode Typography Adjustments */
body.kindle-mode-active .story-content, body.kindle-mode-active .story-content p, body.kindle-mode-active .story-content div { max-width: 700px; margin: 0 auto; font-size: var(--kindle-font-size, 18px) !important; line-height: 1.8 !important; }


