/* CSS Variables for Theme */
:root {
    --bg-primary: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
    --bg-secondary: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
    --text-primary: #1a1a1a;
    --text-secondary: #FF1493;
    --accent-color: #FF1493;
    --accent-hover: #FF69B4;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 20, 147, 0.2);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #2D1B69 0%, #1a0d3a 100%);
    --bg-secondary: linear-gradient(135deg, #4A148C 0%, #6A1B9A 100%);
    --text-primary: #E1BEE7;
    --text-secondary: #CE93D8;
    --accent-color: #CE93D8;
    --accent-hover: #E1BEE7;
    --card-bg: rgba(45, 27, 105, 0.9);
    --border-color: rgba(206, 147, 216, 0.3);
}

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

body {
    font-family: 'Dancing Script', cursive;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.bg-white {
    background: var(--bg-primary);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .toggle-icon {
    transform: rotate(180deg);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 90px;
    z-index: 1000;
}

.language-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Dancing Script', cursive;
}

.language-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.language-toggle:active {
    transform: scale(0.95);
}

.language-icon {
    font-size: 16px;
}

.language-text {
    font-size: 14px;
    font-weight: 600;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    background: url('assets/Screenshot 2025-10-02 at 07-12-44 Pin på Noah Candoris.png') center/cover no-repeat;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 182, 193, 0.3);
    z-index: 1;
}

.decorative-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.heart {
    position: absolute;
    width: 2rem;
    height: 2rem;
    transform: rotate(-45deg);
    opacity: 0.7;
}

.heart:before,
.heart:after {
    content: '';
    width: 2rem;
    height: 2rem;
    position: absolute;
    left: 1rem;
    top: 0;
    background: #FF1493;
    border-radius: 1rem 1rem 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-1 {
    top: 5rem;
    right: 20%;
    width: 3rem;
    height: 3rem;
}

.heart-1:before,
.heart-1:after {
    width: 3rem;
    height: 3rem;
    left: 1.5rem;
}

.heart-1:after {
    left: 0;
}

.heart-2 {
    top: 10rem;
    left: 10%;
    width: 4rem;
    height: 4rem;
}

.heart-2:before,
.heart-2:after {
    width: 4rem;
    height: 4rem;
    left: 2rem;
    background: #FF69B4;
}

.heart-2:after {
    left: 0;
}

.heart-3 {
    bottom: 5rem;
    right: 30%;
    width: 2.5rem;
    height: 2.5rem;
}

.heart-3:before,
.heart-3:after {
    width: 2.5rem;
    height: 2.5rem;
    left: 1.25rem;
}

.heart-3:after {
    left: 0;
}

.icon {
    position: absolute;
    font-size: 1.5rem;
}

.icon-1 {
    top: 2.5rem;
    left: 15%;
    transform: rotate(-12deg);
}

.icon-2 {
    bottom: 5rem;
    left: 35%;
}

.icon-3 {
    top: 6rem;
    left: 45%;
    transform: rotate(6deg);
}

.icon-4 {
    bottom: 8rem;
    left: 15%;
    transform: rotate(-12deg);
    font-size: 1rem;
}

.icon-5 {
    bottom: 3rem;
    left: 20%;
    transform: rotate(-6deg);
    font-size: 1.75rem;
}

.icon-6 {
    top: 4rem;
    left: 12%;
    transform: rotate(12deg);
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.text-primary {
    color: #FF1493;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 1.5rem;
    }
}

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

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-image {
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Categories Section */
.categories-section {
    background: var(--bg-secondary);
    padding: 6rem 1rem;
    transition: background 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 4rem;
    }
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
}

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

/* Category 1 - Picture Books - Bright cyan background */
.category-1 {
    background-color: #4CC9F0;
}

.category-1 .category-image {
    transform: scale(1.1);
}

.category-1:hover .category-image {
    transform: scale(1.25);
}

/* Category 2 - Coloring Books - Warm yellow background */
.category-2 {
    background-color: #F9C74F;
}

.category-2:hover .category-image {
    transform: scale(1.1);
}

/* Category 3 - Printable PDFs - Soft green background with special rotation */
.category-3 {
    background-color: #90BE6D;
}

.category-3 .category-image {
    transform: rotate(3deg) scale(1.1);
}

.category-3:hover .category-image {
    transform: rotate(3deg) scale(1.25);
}

.category-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.category-content-box {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 1rem;
    width: 100%;
    max-width: 90%;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Icon colors matching the original */
.category-1 .category-icon {
    color: #eab308; /* yellow-500 */
}

.category-2 .category-icon {
    color: #ef4444; /* red-500 */
}

.category-3 .category-icon {
    color: #22c55e; /* green-500 */
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
    line-height: 1.4;
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
    padding: 3rem 1rem;
}

.featured-card {
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
    padding: 2rem;
}

@media (min-width: 768px) {
    .featured-card {
        padding: 2rem;
    }
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr 1fr;
    }
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C5C71;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 1.875rem;
    }
}

.featured-subtitle {
    color: rgba(44, 92, 113, 0.9);
}

.featured-subtitle-small {
    display: block;
    font-size: 1.25rem;
    color: rgba(44, 92, 113, 0.7);
    font-weight: 400;
    margin-top: 0.25rem;
}

.featured-description {
    margin-top: 0.75rem;
    color: #6b7280;
}

.featured-price {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C5C71;
}

.featured-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.featured-image-link {
    display: block;
    transition: transform 0.3s ease;
}

.featured-image-link:hover {
    transform: scale(1.05);
}

.featured-book-image {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    max-height: 400px;
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: contain;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(44, 92, 113, 0.3);
}

.indicator.active,
.indicator:hover {
    background-color: #2C5C71;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #FFB6C1 100%);
    padding: 4rem 1rem;
}

.about-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #FF1493;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-description {
    font-size: 1.125rem;
    color: #1f2937;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 6rem 1rem;
    background-color: #2C5C71;
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.blog-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.arrow {
    transition: transform 0.3s ease;
}

.blog-link:hover .arrow {
    transform: translateX(4px);
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    position: relative;
    border-radius: 1rem;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-card-1 {
    background: linear-gradient(to bottom right, #F5F0E8, #fff);
}

.blog-card-2 {
    background: linear-gradient(to bottom right, #EDE7DF, #fff);
}

.blog-date {
    font-size: 0.875rem;
    color: rgba(44, 92, 113, 0.7);
}

.blog-card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.blog-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.blog-card-summary {
    margin-top: 0.5rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #FFB6C1 100%);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

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

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-family: 'Dancing Script', cursive;
}

.newsletter-description {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .newsletter-input-group {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Dancing Script', cursive;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-primary);
    opacity: 0.7;
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Dancing Script', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-message--success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-message--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-message--info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Newsletter decorative hearts */
.newsletter-section::before {
    content: '💕';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.newsletter-section::after {
    content: '🧶';
    position: absolute;
    top: 60%;
    right: 15%;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-description {
        font-size: 1.1rem;
    }
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-card {
    background: linear-gradient(to bottom right, white, #FEFCF8);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #D4A574, #B8956A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C4941F;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, rgba(212, 165, 116, 0.2), rgba(184, 149, 106, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A574;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #B8956A;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(44, 92, 113, 0.2);
    margin-top: 1rem;
    padding-top: 2rem;
}

.footer-copyright {
    color: rgba(44, 92, 113, 0.7);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.5s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.5s ease-out;
}

/* Books Page Styles */
.books-header {
    background: url('assets/Screenshot 2025-10-02 at 07-13-49 snoopy wallpaper.png') center/cover no-repeat;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.books-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 182, 193, 0.3);
    z-index: 1;
}

.books-header-content {
    position: relative;
    z-index: 20;
    text-align: center;
}

.go-home-btn {
    display: inline-block;
    background-color: #FF1493;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.go-home-btn:hover {
    background-color: #FF69B4;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2C5C71;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: rgba(44, 92, 113, 0.8);
}

.back-arrow {
    font-size: 1.25rem;
}

.books-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2C5C71;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .books-title {
        font-size: 3rem;
    }
}

.books-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.filter-section {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #FFC0CB;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
    max-width: 64rem;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-select,
.filter-input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #2C5C71;
}

.clear-filters-btn {
    padding: 0.75rem 1.5rem;
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: fit-content;
}

.clear-filters-btn:hover {
    background-color: #4b5563;
}

/* Pattern Card Simple Style */
.pattern-card-simple .book-content {
    display: none;
}

.see-details-btn {
    background-color: #FF1493;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.see-details-btn:hover {
    background-color: #FF69B4;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Pattern Details Modal */
.pattern-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pattern-details-modal {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-details-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
}

.close-details-btn:hover {
    color: #FF1493;
}

.pattern-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-image {
    max-height: 300px;
    object-fit: cover;
}

.product-image {
    max-height: 200px;
    object-fit: cover;
}

.image-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-indicators .indicator.active {
    background: #FF1493;
}

.image-indicators .indicator:hover {
    background: #FF69B4;
}

.details-image {
    display: none;
}

.details-image.active {
    display: block;
}

.single-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pattern-details-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pattern-category {
    color: #FF1493;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pattern-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.pattern-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.pattern-description {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.pattern-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pattern-difficulty,
.pattern-pages,
.pattern-time {
    background: #FFE4E1;
    color: #FF1493;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.pattern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pattern-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.pattern-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.pattern-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF1493;
}

.pattern-download-btn {
    background-color: #FF1493;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pattern-download-btn:hover {
    background-color: #FF69B4;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pattern-details-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pattern-details-modal {
        margin: 1rem;
        max-height: 95vh;
    }
}

/* Comments Section */
.comments-section {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
    padding: 4rem 0;
}

/* Pattern Comments Section in Modal */
.pattern-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #FFB6C1;
}

.pattern-comments-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FF1493;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pattern-comments-list {
    margin-bottom: 2rem;
}

.pattern-comment-form {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #FFB6C1;
}

.pattern-comment-form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FF1493;
    margin-bottom: 1rem;
    text-align: center;
}

.comments-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF1493;
    text-align: center;
    margin-bottom: 1rem;
}

.comments-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.comment-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF1493;
}

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

.form-file {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    cursor: pointer;
}

.form-help {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    direction: rtl;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #fbbf24;
}

.comment-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.comments-display {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comments-display-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #FF1493;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid #FF1493;
}

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

.comment-author {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

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

.comment-rating .star {
    color: #fbbf24;
    font-size: 1.2rem;
}

.comment-pattern {
    background: #FFE4E1;
    color: #FF1493;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.comment-text {
    color: #4b5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.comment-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
}

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

.no-comments {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

.books-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #FFB6C1 100%);
}

.books-results {
    max-width: 80rem;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.results-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2C5C71;
}

.results-count {
    color: #6b7280;
    font-size: 0.875rem;
}

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

.book-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.book-card-picture {
    border-left: 4px solid #4CC9F0;
}

.book-card-coloring {
    border-left: 4px solid #F9C74F;
}

.book-card-printable {
    border-left: 4px solid #90BE6D;
}

.book-card-journal {
    border-left: 4px solid #C084FC; /* purple tone for journals */
}

.book-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-image-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background-color: #2C5C71;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.book-link:hover {
    background-color: rgba(44, 92, 113, 0.9);
}

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

.book-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.book-description {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.book-tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.book-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C5C71;
}

.book-buy-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 24rem;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .blog-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .books-title {
        font-size: 2rem;
    }
    
    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
