:root {
    --primary-color: #f9f9f9;
    --secondary-color: #ffffff;
    --accent-color: #2196F3;
    --text-color: #333333;
    --text-light: #333333;
    --link-color: #1976D2;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(249,249,249,0.95), rgba(255,255,255,0.95));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-button {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    background-color: #1976D2;
    color: white;
    text-decoration: none;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

.book-cover {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--accent-color);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto;
    background-color: white;
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.blog-filters {
    margin-bottom: 2rem;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    color: var(--text-color);
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.category-filters h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

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

.blog-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.category-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--accent-color);
}

.post-meta {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-image-container {
    margin: 2rem 0;
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero-image {
        width: 90%;
        margin: 0 auto;
    }
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
}

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

.post-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.blog-post {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.8;
    margin-top: 2rem;
}

.post-content h2 {
    color: var(--text-color);
    margin: 2.5rem 0 1.2rem;
    font-size: 1.8rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.divider-line {
    color: var(--accent-color);
    text-align: center;
    margin: 2rem 0;
}

.recommended-books {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 80%;
}

@media (max-width: 768px) {
    .recommended-books {
        width: 70%;
    }
}

.section-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 2rem 0;
    list-style: none;
}

.book-list li {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.book-list li:hover {
    transform: translateY(-5px);
}

.book-cover-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #f5f5f5;
}

.book-title {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.book-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.badge-favorite {
    background-color: #4285f4;
    color: white;
}

.badge-best {
    background-color: #34a853;
    color: white;
}

.book-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.book-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: #f5f5f5;
    transition: background 0.3s ease;
}

.book-link:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.book-link i {
    margin-right: 0.5rem;
}

.spotify-embed {
    margin: 2rem 0;
}

.post-navigation {
    margin-top: 2rem;
    text-align: center;
}

.back-to-blog {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog:hover {
    text-decoration: underline;
}

nav {
    background: var(--secondary-color);
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 1rem;
    }

    .book-cover {
        margin: 2rem auto;
        transform: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post {
        padding: 1.5rem;
    }
    .post-navigation {
        margin-top: 2rem;
        text-align: center;
    }
    nav a {
        margin: 0 0.8rem;
    }
}

/* Amazon Deals Button Styles */
.amazon-deals-button {
    padding: 1.5rem;
    margin: 2.5rem auto;
    max-width: 600px;
    position: relative;
}

.amazon-deals-button .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #4285F4, #34A5FF);
    border: none;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.5px;
}

.amazon-deals-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.amazon-deals-button .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
    background: linear-gradient(135deg, #34A5FF, #4285F4);
}

.amazon-deals-button .btn:hover::before {
    left: 100%;
}

.amazon-deals-button .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.2);
}

.amazon-deals-button .fab {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.amazon-deals-button .btn:hover .fab {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .amazon-deals-button {
        padding: 1rem;
        margin: 2rem auto;
    }

    .amazon-deals-button .btn {
        padding: 1rem 1.8rem;
        font-size: 1rem;
        width: 90%;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

footer {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}