/*
Theme Name: Book Summary 101
Theme URI: http://example.com/book-summary-101
Author: Your Name
Author URI: http://example.com
Description: A clean book summary theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, books, clean
*/

/* --- PASTE YOUR ORIGINAL CSS BELOW THIS LINE --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo i {
    font-size: 2rem;
    color: #64b5f6;
}

.logo a {
    text-decoration: none;
    color: white;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #64b5f6;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a2a6c;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-bar form {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #64b5f6;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #1a2a6c;
}

/* Book Grid */
.books-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-header h3 {
    font-size: 1.8rem;
    color: #1a2a6c;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #64b5f6;
    background: white;
    color: #64b5f6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: #64b5f6;
    color: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.book-cover {
    height: 350px;
    overflow: hidden;
    position: relative;
}

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

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

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #64b5f6;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2a6c;
    margin-bottom: 5px;
}

.book-title a {
    color: inherit;
    text-decoration: none;
}

.book-author {
    color: #666;
    margin-bottom: 15px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-rating i {
    color: #ffd700;
}

.book-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #64b5f6;
    color: white;
}

.btn-primary:hover {
    background: #1a2a6c;
}

.btn-secondary {
    background: #f8f9fa;
    color: #1a2a6c;
    border: 2px solid #64b5f6;
}

.btn-secondary:hover {
    background: #64b5f6;
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}
.page-numbers.current {
    background: #64b5f6;
    color: white;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    color: #64b5f6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #64b5f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
/* --- Comment Section Styles --- */

.comments-area {
    margin: 40px auto;
    padding: 30px;
    background: #f9f9f9;
    border-top: 2px solid #2c3e50; /* Matches your footer color */
    max-width: 800px;
}

.comments-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.comment-list li.comment {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.comment-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 15px;
    display: block;
    color: #2c3e50;
}

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

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Submit Button - Matches your site theme */
.comment-form .submit-btn {
    background-color: #2c3e50; /* Dark blue from your footer */
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form .submit-btn:hover {
    background-color: #34495e;
}