/* ================================
   TRAVEL VLOG WEBSITE - NELIS0
   Modern, Cinematic Design
   ================================ */

/* CSS Variables for Color Scheme */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #7f8c8d;
    --background-light: #ffffff;
    --background-dark: #1a1a1a;
    --background-section-light: #f8f9fa;
    --background-section-dark: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #e74c3c 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    --gradient-books: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --background-light: #1a1a1a;
    --background-dark: #0f0f0f;
    --background-section-light: #2c2c2c;
    --background-section-dark: #1e1e1e;
    --gradient-books: linear-gradient(135deg, #2d5aa0 0%, #5a4fcf 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.logo-text {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.logo span {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-overlay),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23ff6b35" width="1200" height="800"/><polygon fill="%23e74c3c" points="0,800 1200,600 1200,800"/><circle fill="%232c3e50" cx="600" cy="300" r="150" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: rgba(44, 62, 80, 0.1);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Context-specific button styles */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

.books-section .btn-secondary,
.books-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    backdrop-filter: blur(10px);
}

.books-section .btn-secondary:hover,
.books-hero .btn-secondary:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Upcoming Videos Section */
.upcoming-section {
    background: var(--background-section-light);
}

/* Layout for the upcoming book block: text left, image right */
.upcoming-book {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: center;
}

.upcoming-book .upcoming-thumbnail {
    height: auto;
    min-height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-book .upcoming-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .upcoming-book {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .upcoming-book .upcoming-thumbnail {
        min-height: 120px;
        width: 100%;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.upcoming-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.upcoming-thumbnail {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upcoming-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

/* Make upcoming preview images smaller and contained so they sit centered above text
   without affecting other book cover styles. */
.upcoming-thumbnail img {
    max-width: 90%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.coming-soon-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coming-soon-badge i {
    animation: pulse 2s infinite;
}

.upcoming-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
    z-index: 1;
}

.upcoming-info {
    padding: 1.5rem;
}

.upcoming-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.upcoming-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.upcoming-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.upcoming-date,
.upcoming-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.upcoming-date {
    color: var(--primary-color);
}

.upcoming-type {
    color: var(--secondary-color);
}

/* Pulse animation for coming soon badge */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Videos Section */
.videos-section {
    background: var(--background-section-light);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.video-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    background: var(--text-light);
    transform: scale(1.1);
}

.video-info {
    padding: 1.5rem;
    position: relative;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    padding-right: 4rem; /* Add padding to prevent overlap with duration */
}

.video-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-duration {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-gray);
    font-weight: 600;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 4rem;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Contact Section */
.contact-section {
    background: var(--background-light);
    color: var(--text-dark);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s, color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Books Section */
.books-section {
    background: var(--gradient-books);
    color: var(--text-light);
}

.books-section .section-title {
    color: var(--text-light);
}

.books-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.book-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, #ff6b35 0%, #e74c3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bookpattern" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23bookpattern)"/></svg>');
    opacity: 0.2;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.book-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.book-genre,
.book-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.book-genre {
    color: var(--primary-color);
}

.book-status {
    color: rgba(255, 255, 255, 0.8);
}

.book-author,
.book-published,
.book-genre {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.book-author i,
.book-published i,
.book-genre i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-read {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-read:hover {
    background: var(--accent-color);
}

.btn-details {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Books Page Specific Styles */

/* Books Hero Section */
.books-hero {
    background: var(--gradient-books);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-light);
    text-align: center;
}

.books-hero .hero-content {
    z-index: 2;
    position: relative;
}

.books-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.books-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.books-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.books-hero .stat {
    text-align: center;
}

.books-hero .stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.books-hero .stat p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="rgba(255,255,255,0.3)"/><circle cx="7" cy="7" r="0.3" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

/* Featured Book Section */
.featured-book-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.featured-book {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.book-cover-large {
    position: relative;
    height: auto;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.book-placeholder-large {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.8;
}

.book-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-details h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.book-tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.book-meta-large {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.book-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.books-cta {
    text-align: center;
    margin-top: 3rem;
}

/* All Books Section */
.all-books-section {
    padding: 5rem 0;
    background: var(--background-section-light);
}

.books-detailed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.book-detailed-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 400px;
}

.book-detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.book-cover-medium {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-placeholder-medium {
    font-size: 3rem;
    color: var(--text-light);
    opacity: 0.8;
}

.book-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.book-status-badge.published {
    background: #28a745;
    color: white;
}

.book-status-badge.coming-soon {
    background: #ffc107;
    color: #212529;
}

.book-status-badge.in-progress {
    background: #17a2b8;
    color: white;
}

.book-status-badge.not-started {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.book-detailed-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-detailed-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.book-genre {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-synopsis {
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.book-details-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.book-details-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.book-details-meta i {
    color: var(--primary-color);
}

.book-actions-small {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-small.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-small.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-small.btn-secondary {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-small.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-small.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Writing Process Section */
.writing-process-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.process-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.process-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.process-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.writing-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.writing-stats .stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.writing-stats .stat p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.process-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-image .image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    box-shadow: var(--shadow-soft);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.newsletter-note {
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

/* Active Navigation State */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    margin-left: 1rem;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle.active {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Additional Dark Mode Improvements */
[data-theme="dark"] .upcoming-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .book-detailed-card {
    background: var(--background-section-dark);
    color: var(--text-light);
}

[data-theme="dark"] .upcoming-info h3,
[data-theme="dark"] .video-info h3,
[data-theme="dark"] .book-detailed-info h3 {
    color: var(--text-light);
}

[data-theme="dark"] .upcoming-info p,
[data-theme="dark"] .video-info p,
[data-theme="dark"] .book-synopsis {
    color: var(--text-gray);
}

[data-theme="dark"] .stat {
    background: var(--background-section-dark);
    color: var(--text-light);
}

[data-theme="dark"] .image-placeholder {
    background: var(--gradient-primary);
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ================================ */

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    /* Logo adjustments */
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 0.8rem;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        background-attachment: scroll;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* Mobile Books Hero */
@media (max-width: 768px) {
    .books-hero {
        min-height: 50vh;
        padding: 4rem 1rem;
    }
    
    .books-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .books-hero .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .books-hero .stat h3 {
        font-size: 2rem;
    }
}

/* Mobile Featured Book */
@media (max-width: 768px) {
    .featured-book {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .book-cover-large {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .book-details h3 {
        font-size: 2rem;
    }
    
    .book-meta-large {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .book-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .book-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Mobile Book Cards */
@media (max-width: 768px) {
    .books-detailed-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-detailed-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .book-cover-medium {
        min-height: 250px;
        height: 250px;
    }
    
    .book-detailed-info {
        padding: 1.5rem;
    }
    
    .book-details-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        text-align: center;
    }
    
    .book-actions-small {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Mobile Horizontal Books (Main Page) */
@media (max-width: 768px) {
    .book-card-horizontal {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .book-cover-horizontal {
        min-height: 200px;
        height: 200px;
    }
    
    .book-info-horizontal {
        padding: 1.5rem;
    }
    
    .book-meta-horizontal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        text-align: center;
    }
    
    .book-meta-horizontal span {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .book-actions-horizontal {
        justify-content: center;
    }
}

/* Mobile Videos Section */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Mobile Writing Process */
@media (max-width: 768px) {
    .process-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .writing-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .process-image .image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* Mobile Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        padding: 0 1rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Pricing */
@media (max-width: 768px) {
    .price-options {
        gap: 0.8rem;
    }
    
    .price-option {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .price-option.popular::before {
        top: -12px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .price {
        align-items: center;
    }
    
    .book-pricing {
        margin: 1.5rem 0;
        padding: 1rem;
    }
}

/* Mobile Typography */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .books-hero .hero-title {
        font-size: 2rem;
    }
    
    .books-hero .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .book-details h3 {
        font-size: 1.5rem;
    }
    
    .book-cover-large {
        max-width: 200px;
    }
    
    .book-cover-medium,
    .book-cover-horizontal {
        height: 180px;
        min-height: 180px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .writing-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .books-hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Proper styling for book placeholder icons */
.book-placeholder {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Book Cover Images */
.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.book-cover-large .book-cover-image {
    border-radius: var(--border-radius);
}

.book-cover-medium .book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.book-cover .book-cover-image {
    border-radius: 10px;
}

/* Ensure placeholder styling is maintained */
.book-cover,
.book-cover-large,
.book-cover-medium {
    overflow: hidden;
    position: relative;
}

.book-card:hover .book-cover-image,
.book-detailed-card:hover .book-cover-image {
    transform: scale(1.05);
}

/* Main Page Books Section - Horizontal Layout */
.books-grid-horizontal {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.book-card-horizontal {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    min-height: 280px;
}

.book-card-horizontal:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.book-cover-horizontal {
    position: relative;
    height: 100%;
    min-height: 280px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover-horizontal .book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card-horizontal:hover .book-cover-horizontal .book-cover-image {
    transform: scale(1.03);
}

.book-status-badge-small {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-status-badge-small.published {
    background: #28a745;
    color: white;
}

.book-status-badge-small.coming-soon {
    background: #ffc107;
    color: #212529;
}

.book-status-badge-small.in-progress {
    background: #17a2b8;
    color: white;
}

.book-status-badge-small.not-started {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.book-info-horizontal {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.book-info-horizontal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.book-synopsis-short {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-meta-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.book-meta-horizontal span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .book-meta-horizontal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        text-align: center;
    }
    .book-meta-horizontal span {
        justify-content: center;
        font-size: 0.9rem;
    }
}

/* Dark Mode Adjustments for Horizontal Books */
[data-theme="dark"] .book-card-horizontal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .book-card-horizontal:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .book-info-horizontal h3 {
    color: var(--text-light);
}

[data-theme="dark"] .book-synopsis-short {
    color: var(--text-gray);
}

/* Touch and Mobile Interaction Improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn,
    .btn-small,
    .nav-link,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Reduce hover effects on touch devices */
    .video-card:hover,
    .book-card:hover,
    .book-detailed-card:hover,
    .book-card-horizontal:hover {
        transform: none;
    }
    
    /* Better spacing for touch */
    .social-links a {
        width: 48px;
        height: 48px;
        margin: 0 8px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Improve text readability */
    .book-synopsis,
    .book-synopsis-short,
    .book-description {
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    /* Better button spacing */
    .book-actions,
    .book-actions-small,
    .book-actions-horizontal {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    /* Improve form usability */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Better video card layout */
    .video-thumbnail {
        height: 180px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Improve pricing display */
    .price-tag {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .price-option {
        min-height: 60px;
        padding: 1rem;
    }
    
    /* Better status badge visibility */
    .book-status-badge,
    .book-status-badge-small {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-width: 80px;
    }
    
    /* Improve upcoming card layout */
    .upcoming-thumbnail {
        height: 120px;
    }
    
    .coming-soon-badge {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .book-details h3 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .book-meta-horizontal,
    .book-details-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .writing-stats .stat {
        padding: 0.8rem;
    }
    
    .writing-stats .stat h4 {
        font-size: 1.5rem;
    }
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .books-hero {
        min-height: 50vh;
        min-height: -webkit-fill-available;
    }
}

/* Contact Section Theme Fixes */
.contact-section {
    background: var(--background-light);
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    background: rgba(255,255,255,0.1);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.3s, color 0.3s;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

[data-theme="dark"] .contact-section {
    background: #181818;
    color: var(--text-light);
}

[data-theme="dark"] .contact-form .form-group input,
[data-theme="dark"] .contact-form .form-group textarea {
    background: rgba(0,0,0,0.3);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.12);
}

[data-theme="dark"] .contact-form .form-group input::placeholder,
[data-theme="dark"] .contact-form .form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .contact-content h2,
[data-theme="dark"] .contact-content p {
    color: var(--text-light);
}
