/* ==========================================
   Teresa Lasher Theme - Main Stylesheet
   ========================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --footer-bg: #4a4a4a;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

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

a:hover {
    color: var(--secondary-color);
}

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

/* ==========================================
   Header Styles
   ========================================== */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.site-branding .logo img {
    max-width: 200px;
    height: auto;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    justify-content: center;
}

.main-navigation .nav-menu li a {
    font-weight: 500;
    font-size: 15px;
    text-transform: capitalize;
    padding: 10px 0;
    position: relative;
}

.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item a {
    color: var(--secondary-color);
}

.main-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu li a:hover::after,
.main-navigation .nav-menu li.current-menu-item a::after {
    width: 100%;
}

/* ==========================================
   Hero Banner Styles
   ========================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color);
    padding: 40px 20px;
    padding-top: 60%;
    width: 100%;
    max-width: 1200px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   Books Section Styles
   ========================================== */
.books-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-cover {
    width: 240px;
    height: 360px;
    margin-bottom: 25px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background-color: #f5f5f5;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-content {
    width: 100%;
}

.book-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.book-status {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
}

.book-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}

.book-description p {
    margin-bottom: 12px;
}

.book-description em {
    font-style: italic;
}

.book-description .book-cta {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

.btn-purchase {
    display: inline-block;
    padding: 14px 35px;
    background-color: #000;
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-purchase:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================
   Blog Grid Styles
   ========================================== */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-color);
}

.blog-card-title a:hover {
    color: var(--secondary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-card-meta span {
    display: inline-block;
}

.blog-card-meta .author {
    font-weight: 500;
    color: var(--text-color);
}

/* ==========================================
   Single Post Styles
   ========================================== */
.single-post {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    margin: 30px 0;
    border-radius: 8px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form label {
    font-size: 14px;
    font-weight: 500;
}

.newsletter-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn-submit {
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form .btn-submit:hover {
    background-color: #d35400;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background-color: var(--background-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ==========================================
   Page Styles
   ========================================== */
.page-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
}

.page-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.page-text h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.page-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.page-text p {
    margin-bottom: 20px;
}

/* ==========================================
   Contact Page Styles
   ========================================== */
.contact-page .page-header {
    margin-bottom: 20px;
}

.contact-page .page-title {
    font-size: 48px;
    font-weight: 700;
}

.contact-page .page-text {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.contact-form-column {
    background-color: #f8f8f8;
    padding: 60px 50px;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background-color: var(--white);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

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

.btn-send-message {
    padding: 18px 50px;
    background-color: #000;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-send-message:hover {
    background-color: #222;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-send-message:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-image-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.contact-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Comments Styles
   ========================================== */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

.comment-list .comment {
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}

.comment-body {
    position: relative;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    font-style: normal;
}

.comment-metadata {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-metadata a {
    color: var(--text-light);
}

.comment-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.comment-content p {
    margin-bottom: 15px;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.comment-form {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.comment-form .submit,
.comment-form .btn {
    padding: 14px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.comment-form .submit:hover,
.comment-form .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.no-comments {
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

.comment-navigation {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.comment-navigation a {
    padding: 10px 20px;
    background-color: var(--background-light);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.comment-navigation a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .main-navigation .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .hero-banner {
        height: 35vh;
        min-height: 200px;
    }
    
    .hero-overlay {
        padding: 20px 15px;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.4;
        max-width: 90%;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .book-cover {
        width: 240px;
        height: 360px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-column {
        padding: 40px 30px;
    }
    
    .contact-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 15px 0;
    }
    
    .site-branding .logo img {
        max-width: 150px;
    }
    
    .main-navigation .nav-menu {
        gap: 15px;
    }
    
    .main-navigation .nav-menu li a {
        font-size: 14px;
    }
    
    .hero-banner {
        height: 25vh;
        min-height: 150px;
        max-height: 200px;
    }
    
    .hero-overlay {
        padding: 15px 10px;
        padding-top: 0;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.3;
        max-width: 95%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .book-title {
        font-size: 20px;
    }
    
    .book-cover {
        width: 200px;
        height: 300px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
}
