/*
Theme Name: Crochet Master
Theme URI: https://crochetmaster.com
Author: Crochet Master Team
Author URI: https://crochetmaster.com
Description: A simple, elegant theme for showcasing crochet items with a beautiful catalog layout
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crochetmaster
*/

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

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #FFF8E1 0%, #fff 100%);
}

a {
    color: #FF6B9D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E91E63;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #26C6DA 100%);
    padding: 1.5rem 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: none;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-title a {
    color: #fff;
}

.site-description {
    color: #FFD54F;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #0D47A1;
    background: #FFD54F;
    border-bottom-color: transparent;
}

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

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.catalog-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #FFD54F;
}

.catalog-item:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    border-color: #FF6B9D;
}

.catalog-item-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF8E1 50%, #E1F5FE 100%);
}

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

.catalog-item:hover .catalog-item-image img {
    transform: scale(1.05);
}

.catalog-item-content {
    padding: 1.5rem;
}

.catalog-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #E91E63;
    font-weight: 700;
}

.catalog-item-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, #FF6B9D 0%, #E91E63 100%);
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.4);
    border: 2px solid #fff;
}

.read-more:hover {
    background: linear-gradient(135deg, #FFB300 0%, #F9A825 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.5);
}

/* Single Post */
.single-post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    color: #0D47A1;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: #26C6DA;
    font-size: 0.95rem;
}

.single-post-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #26C6DA 0%, #0D47A1 100%);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.site-footer a {
    color: #FFD54F;
    font-weight: 600;
}

.site-footer a:hover {
    color: #FF6B9D;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.8rem;
    color: #E91E63;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.page-description {
    color: #666;
    font-size: 1.1rem;
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #26C6DA 0%, #4DD0E1 30%, #F9A825 70%, #FFB300 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(249, 168, 37, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(38, 198, 218, 0.2) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF6B9D 0%, #E91E63 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFB300 0%, #F9A825 100%);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #0D47A1;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #fff;
}

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

.section-title {
    font-size: 2.8rem;
    color: #E91E63;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.title-underline {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #FF6B9D 0%, #FFB300 50%, #26C6DA 100%);
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(255, 107, 157, 0.3);
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

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

.about-text h3 {
    color: #E91E63;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: #FFB300;
    font-size: 1.8rem;
    font-weight: bold;
}

.feature-text {
    color: #E91E63;
    font-weight: 600;
}

.about-image-placeholder {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-placeholder svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(38, 198, 218, 0.3));
}

/* Custom Orders Section */
.custom-orders-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF8E1 50%, #E1F5FE 100%);
    position: relative;
    overflow: hidden;
}

.custom-orders-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(38, 198, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.custom-orders-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.custom-orders-content h2 {
    font-size: 2.8rem;
    color: #E91E63;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.custom-orders-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.custom-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
}

.custom-list li {
    color: #555;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.custom-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #FFB300;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Featured Products Section */
.featured-products-section {
    padding: 4rem 0;
    background: #fff;
}

.item-categories {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.item-categories a {
    color: #26C6DA;
    font-weight: 600;
}

.item-categories a:hover {
    color: #FF6B9D;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.no-products-message {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.placeholder-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFF8E1 100%);
}

.yarn-ball-pattern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFB300 50%, #26C6DA 100%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Call to Action Section */
.cta-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #FF6B9D 0%, #E91E63 50%, #FFB300 100%);
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255,255,255,.05) 35px,
        rgba(255,255,255,.05) 70px
    );
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .custom-logo {
        max-height: 90px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .main-navigation {
        margin-top: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .hero-banner {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}
