/* Hand-drawn aesthetic styles for futuree-heroo.com */

/* Import Google Fonts for hand-drawn feel */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Patrick+Hand&display=swap');

/* Hand-drawn animations */
@keyframes draw {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

@keyframes bounce-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Hand-drawn typography */
.hero-title,
.section-title,
.page-title,
.article-title,
.thanks-title {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    position: relative;
}

.hero-subtitle,
.blog-intro,
.article-intro {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
}

/* Hand-drawn underlines */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 3'%3E%3Cpath d='M2 1.5 Q30 0.5 60 1.5 T118 1.5' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 3'%3E%3Cpath d='M2 1.5 Q50 0.5 100 1.5 T198 1.5' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
}

/* Hand-drawn borders and shapes */
.recipe-card,
.service-card,
.testimonial-card,
.article-card,
.product-card,
.featured-card,
.related-card {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.recipe-card::before,
.service-card::before,
.testimonial-card::before,
.article-card::before,
.product-card::before,
.featured-card::before,
.related-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Cpath d='M5 5 Q150 2 295 5 Q298 100 295 195 Q150 198 5 195 Q2 100 5 5' stroke='%23d4442e' stroke-width='2' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover::before,
.service-card:hover::before,
.testimonial-card:hover::before,
.article-card:hover::before,
.product-card:hover::before,
.featured-card:hover::before,
.related-card:hover::before {
    opacity: 1;
}

/* Hand-drawn buttons */
.btn-primary,
.btn-secondary,
.btn-recipe,
.btn-submit,
.social-link {
    position: relative;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-secondary::before,
.btn-recipe::before,
.btn-submit::before,
.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M5 5 Q50 2 95 5 Q98 20 95 35 Q50 38 5 35 Q2 20 5 5' stroke='%23b8381f' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-recipe:hover::before,
.btn-submit:hover::before,
.social-link:hover::before {
    opacity: 1;
}

.btn-primary:hover,
.btn-recipe:hover,
.btn-submit:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Hand-drawn navigation */
.nav-link {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 2'%3E%3Cpath d='M1 1 Q25 0.5 49 1' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hand-drawn form elements */
.form-group input {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 68, 46, 0.3);
}

/* Hand-drawn dividers */
.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 2'%3E%3Cpath d='M1 1 Q75 0.5 150 1 T299 1' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
}

/* Hand-drawn arrows and decorative elements */
.article-link::after {
    content: '→';
    font-family: 'Patrick Hand', cursive;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.article-link:hover::after {
    transform: translateX(3px);
}

.featured-link::after {
    content: '✎';
    font-family: 'Patrick Hand', cursive;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.featured-link:hover::after {
    animation: wiggle 0.5s ease-in-out;
}

/* Hand-drawn icons enhancement */
.section-icon,
.service-icon,
.product-icon,
.expectation-icon,
.thanks-image,
.hero-image,
.about-hero-image,
.story-illustration {
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.section-icon:hover,
.service-icon:hover,
.product-icon:hover,
.expectation-icon:hover {
    animation: bounce-soft 0.6s ease-in-out infinite;
}

/* Hand-drawn tooltips and highlights */
.tips-box {
    position: relative;
    border: 2px solid #b8381f;
    background: linear-gradient(135deg, #d4442e 0%, #b8381f 100%);
}

.tips-box::before {
    content: '💡';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.article-conclusion {
    position: relative;
    border-left: 4px solid #d4442e;
    border-left-style: dashed;
}

.article-conclusion::before {
    content: '✨';
    position: absolute;
    top: 10px;
    left: -12px;
    background: white;
    padding: 2px;
    border-radius: 50%;
    font-size: 1rem;
}

/* Hand-drawn social media icons */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link.facebook::before {
    content: '📘';
    font-size: 1.2rem;
}

.social-link.instagram::before {
    content: '📸';
    font-size: 1.2rem;
}

.social-link.twitter::before {
    content: '🐦';
    font-size: 1.2rem;
}

.social-link.youtube::before {
    content: '🎥';
    font-size: 1.2rem;
}

/* Hand-drawn loading animations */
.recipe-image,
.article-img,
.featured-image,
.related-image,
.article-featured-image {
    position: relative;
    transition: all 0.3s ease;
}

.recipe-image:hover,
.article-img:hover,
.featured-image:hover,
.related-image:hover {
    transform: rotate(1deg) scale(1.02);
    filter: sepia(10%) saturate(120%) brightness(105%);
}

/* Hand-drawn breadcrumbs */
.breadcrumb {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
}

.breadcrumb::before {
    content: '🏠';
    margin-right: 5px;
}

/* Hand-drawn stats */
.stat-number {
    font-family: 'Kalam', cursive;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 2'%3E%3Cpath d='M1 1 Q15 0.5 30 1 T59 1' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Hand-drawn testimonial quotes */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #d4442e;
    font-family: 'Kalam', cursive;
    opacity: 0.3;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: 50px;
    right: 20px;
    font-size: 3rem;
    color: #d4442e;
    font-family: 'Kalam', cursive;
    opacity: 0.3;
}

/* Hand-drawn cookie banner */
.cookie-banner {
    border-top: 3px solid #d4442e;
    border-top-style: dashed;
}

.cookie-modal-content {
    border: 2px solid #d4442e;
    border-style: dashed;
}

/* Hand-drawn recipe steps */
.recipe-steps {
    position: relative;
    counter-reset: step-counter;
}

.recipe-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
}

.recipe-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #d4442e;
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kalam', cursive;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(-5deg);
}

/* Hand-drawn ingredients list */
.ingredients-list li::before {
    content: '🥄';
    margin-right: 8px;
}

/* Hand-drawn legal page elements */
.legal-content h2::before {
    content: '📋';
    margin-right: 10px;
}

.legal-content h3::before {
    content: '▶';
    margin-right: 8px;
    color: #d4442e;
}

/* Hand-drawn newsletter info */
.newsletter-details .newsletter-item::before {
    content: '✉️';
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Hand-drawn expectations */
.expectation-item h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 2'%3E%3Cpath d='M1 1 Q10 0.5 20 1 T39 1' stroke='%23d4442e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Mobile hand-drawn adjustments */
@media (max-width: 768px) {
    .hero-title,
    .section-title,
    .page-title,
    .article-title,
    .thanks-title {
        font-size: 2rem;
    }
    
    .hero-subtitle,
    .blog-intro,
    .article-intro {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-recipe,
    .btn-submit {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* Hand-drawn animations for scroll */
@media (prefers-reduced-motion: no-preference) {
    .recipe-card,
    .service-card,
    .testimonial-card,
    .article-card,
    .product-card {
        animation: bounce-soft 2s ease-in-out infinite;
        animation-delay: calc(var(--delay, 0) * 0.2s);
    }
    
    .recipe-card:nth-child(1) { --delay: 1; }
    .recipe-card:nth-child(2) { --delay: 2; }
    .recipe-card:nth-child(3) { --delay: 3; }
    .recipe-card:nth-child(4) { --delay: 4; }
}

/* Hand-drawn focus states */
*:focus {
    outline: 2px dashed #d4442e;
    outline-offset: 2px;
}

/* Hand-drawn selection */
::selection {
    background: rgba(212, 68, 46, 0.3);
    color: #2c3e50;
}

::-moz-selection {
    background: rgba(212, 68, 46, 0.3);
    color: #2c3e50;
}
