/*
Theme Name: Knjiga Theme
Author: Gemini
Description: A custom theme for the Knjiga website.
Version: 1.0
*/

/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #222;
    margin-bottom: 0.8em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background-color: #5d4037; /* Darker brown for header */
    color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #4a332e;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: #ffd700; /* Gold for logo */
}

.navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation li {
    display: inline-block;
    margin-left: 20px;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero-section {
    background-color: #795548; /* Lighter brown from CTA section */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffd700; /* Gold for main headline */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-button {
    background-color: #ffd700; /* Gold */
    color: #5d4037; /* Dark brown */
    border: 2px solid #ffd700;
}

.primary-button:hover {
    background-color: #e0b800;
    color: #333;
}

/* Two-column Layout */
.two-columns {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.two-columns .column {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

/* Three-column Layout */
.three-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.three-columns .column {
    flex: 1;
    min-width: 250px; /* Adjust as needed */
}

.three-columns .text-column {
    flex: 2; /* Give more space to the text */
}

.three-columns img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

/* Book Overview Section */
.book-overview-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

.book-overview-section h3 {
    color: #5d4037;
    font-size: 2em;
}

.book-overview-section .book-cover img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.book-description .key-themes {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.book-description .key-themes li {
    background-color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #5d4037;
}


/* Author Section */
.author-section {
    background-color: #fff;
    padding: 60px 0;
}

.author-section h3 {
    color: #5d4037;
    font-size: 2em;
}

.author-section .author-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50%; /* For a circular author image */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.read-more {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.author-bio-centered {
    text-align: center;
}

/* Reverse column order for author section */
.reversed-columns {
    flex-direction: row-reverse;
}

/* Call to Action Bottom Section */
.cta-bottom-section {
    background-color: #795548; /* Slightly lighter brown */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-bottom-section h3 {
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-bottom-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.secondary-button {
    background-color: #fff;
    color: #795548;
    border: 2px solid #fff;
}

.secondary-button:hover {
    background-color: #e0e0e0;
    color: #5d4037;
}

.cta-bottom-section .price {
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 20px;
    color: #ffd700;
}

/* Footer */
.footer {
    background-color: #3e2723; /* Darkest brown */
    color: #b0b0b0;
    padding: 30px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #b0b0b0;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5d4037;
    width: 120px; /* Adjust width as needed */
    margin-right: 20px;
}

.form-group .input-wrapper {
    flex: 1;
    min-width: 200px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.contact-form .button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .navigation ul {
        margin-top: 15px;
    }
    .navigation li {
        margin: 0 10px;
    }
    .hero-section h2 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .two-columns {
        flex-direction: column;
    }
    .reversed-columns {
        flex-direction: column; /* Revert to default for small screens */
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    .form-group label {
        width: 100%; /* Full width labels on small screens */
        margin-right: 0;
        text-align: left;
    }
}
