* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Header */
.header {
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Main */
.main {
    padding: 3rem 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.welcome-content p {
    margin-bottom: 1rem;
    color: #374151;
}

/* Genre Filter */
.genre-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #f3f4f6;
}

.filter-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.book-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    transition: box-shadow 0.2s;
    height: 100%;
}

.book-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.book-card.hidden {
    display: none;
}

.book-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.book-cover-placeholder {
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.video-container {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.video-container video {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

.video-placeholder {
    background-color: rgba(243, 244, 246, 0.3);
    border: 2px dashed rgba(107, 114, 128, 0.3);
    border-radius: 0.5rem;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-placeholder p {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 500;
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 3.6em;
}

.book-genre {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.book-series {
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.7);
    font-style: italic;
}

.book-footer {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.purchase-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sample-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.sample-btn:hover {
    background-color: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer p {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation */
.main-nav {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.main-nav a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Footer Links */
.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.about-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.about-content {
    padding: 2rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.author-photo-section {
    position: sticky;
    top: 2rem;
}

.author-photo {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.author-bio-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.bio-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #374151;
}

.bio-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.bio-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.bio-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #374151;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    color: #ffffff;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.cta-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.875rem 2rem;
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-button.secondary {
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.cta-button.secondary:hover {
    background-color: #eff6ff;
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Social Media Section */
.social-media-section {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.social-media-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

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

.social-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.social-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.social-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-card p {
    font-size: 0.875rem;
    color: #6b7280;
}

.social-card.amazon i { color: #FF9900; }
.social-card.facebook i { color: #1877F2; }
.social-card.twitter i { color: #1DA1F2; }
.social-card.instagram i { color: #E4405F; }
.social-card.linkedin i { color: #0A66C2; }
.social-card.goodreads i { color: #553B08; }

.social-share-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    text-align: center;
}

.social-share-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.linkedin { background-color: #0A66C2; }

/* Blog Section */
.blog-section {
    padding: 3rem 0;
}

.blog-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

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

.blog-post {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.blog-post:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.blog-post-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-post-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
}

.blog-post-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.blog-category {
    padding: 0.25rem 0.75rem;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    text-align: center;
    color: #ffffff;
}

.newsletter-section h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

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

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.875rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background-color: #374151;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-photo-section {
        position: relative;
        top: 0;
    }
    
    .author-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.comments-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.comment-form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-form-container h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form select,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.star-rating .star {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.submit-btn {
    padding: 0.875rem 2rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Comments Display */
.comments-display h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comment-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.commenter-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.commenter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.commenter-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-rating {
    display: flex;
    gap: 0.25rem;
}

.comment-rating .star {
    font-size: 1.25rem;
    color: #d1d5db;
}

.comment-rating .star.filled {
    color: #fbbf24;
}

.comment-book-title {
    font-size: 0.875rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
}

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

.action-btn {
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background-color: #e5e7eb;
}

.load-more-comments {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 0.875rem 2rem;
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background-color: #eff6ff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .comment-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
