/*
Theme Name: S.A. Hollen Author Theme
Theme URI: https://author-bliss-site.lovable.app
Author: S.A. Hollen
Author URI: https://author-bliss-site.lovable.app
Description: A custom WordPress theme for fiction author S.A. Hollen, featuring a dark purple and cream color palette with elegant serif headings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sa-hollen
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options

Converted from Lovable app design to WordPress theme.
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-dark: #26212C;
    --color-cream: #F7F5F2;
    --color-purple: #7C6A8A;
    --color-purple-light: #E8E0ED;
    --color-lavender-bg: #DED8E6;
    --color-text: #6B6270;
    --color-text-dark: #26212C;
    --color-border: #E0DDE3;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.2;
}

h1 {
    font-size: 72px;
    letter-spacing: 1.8px;
}

h2 {
    font-size: 48px;
    font-style: italic;
    margin-bottom: 12px;
}

h3 {
    font-size: 28px;
}

p {
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding img {
    height: 40px;
    width: auto;
}

.site-branding .site-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

.site-branding .site-title a {
    color: var(--color-text-dark);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--color-text-dark);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION (Home Page)
   ============================================ */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(54, 41, 61, 0.6), rgba(41, 29, 48, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 24px;
}

.hero-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 24px;
    background: white;
    padding: 12px;
}

.hero-content h1 {
    color: var(--color-cream);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    letter-spacing: 3px;
    color: rgba(247, 245, 242, 0.85);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-purple);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #6B5A78;
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-cream);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
}

.btn-outline:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text);
}

/* ============================================
   FEATURED BOOKS SECTION
   ============================================ */
.featured-books {
    background-color: var(--color-cream);
    border-top: 1px solid var(--color-border);
}

.book-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.book-cover {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.book-cover img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.book-cover:hover img {
    transform: scale(1.02);
}

.book-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    font-style: normal;
}

.book-info p {
    margin-bottom: 24px;
}

.book-genre-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    background-color: var(--color-purple-light);
    color: var(--color-text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background-color: var(--color-cream);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.about-section .about-text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.8;
}

.genre-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.genre-tag {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background-color: transparent;
    color: var(--color-text-dark);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background-color: var(--color-lavender-bg);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--color-text-dark);
}

.newsletter-section p {
    max-width: 500px;
    margin: 0 auto 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-purple);
}

.newsletter-form button {
    padding: 14px 24px;
}

/* ============================================
   BOOKS PAGE
   ============================================ */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-style: italic;
}

.page-header p {
    margin-top: 12px;
}

.books-grid .book-card {
    margin-bottom: 48px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page-content {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.about-page-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 24px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-purple);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-cream);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-branding img {
    height: 36px;
    width: auto;
}

.footer-branding span {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-nav a:hover {
    color: var(--color-text-dark);
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: var(--color-text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        border-bottom: 1px solid var(--color-border);
        padding: 20px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        min-height: 70vh;
    }

    .book-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
