/* Retro Style Enhancements */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

/* Retro Color Palette Override */
:root {
    --primary-color: #b03a30;
    --secondary-color: #f2b544;
    --dark-color: #39302a;
    --light-color: #f9f3e5;
    --accent-color: #6b8e23;
    --border-color: #d5c5a1;
    --shadow-color: rgba(57, 48, 42, 0.15);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto Slab', serif;
}

/* Paper Texture Background */
body {
    background-color: var(--light-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d5c5a1' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Retro Typography */
body {
    font-family: var(--font-body);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

/* Decorative Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.section-title::before {
    content: '❦';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Retro Buttons */
.btn-primary,
.btn-secondary {
    font-family: var(--font-heading);
    padding: 12px 28px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px var(--shadow-color);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-cookie {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Retro Header */
.main-header {
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 2px 15px var(--shadow-color);
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Retro Cards and Boxes */
.recipe-card,
.blog-post,
.service-item,
.testimonial,
.contact-info {
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.recipe-card:hover,
.blog-post:hover,
.service-item:hover {
    transform: translateY(-5px) rotate(1deg);
}

/* Vintage Pattern for Light Sections */
.about-section,
.blog-section,
.subscription-section {
    background-color: var(--light-color);
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d5c5a1' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Dotted Background for White Sections */
.recipes-section,
.services-section,
.testimonials-section {
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d5c5a1' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Form Styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    background-color: var(--light-color);
    border: 2px solid var(--border-color);
    padding: 14px;
    font-family: var(--font-body);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), 0 0 5px rgba(176, 58, 48, 0.3);
}

/* Footer Styling */
.main-footer {
    background-color: var(--dark-color);
    border-top: 5px solid var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264.888-.14 1.655-1.033 2.875-2.27 3.53-3.917.58-1.48.806-3.34.76-5.58-.038-1.85-.27-3.56-.73-5.118-.236-.796-.504-1.51-.814-2.16H10.268c-.306.645-.57 1.36-.808 2.158-.46 1.558-.692 3.264-.73 5.118-.048 2.243.174 4.102.76 5.583.656 1.645 1.876 2.883 3.525 3.916.17.107.53.24.886.14l-1.525 2.67c-.194.392-.05 1.018.427 1.018h8.775c.47 0 .615-.628.42-1.02l-1.525-2.67zM26.715 0a1.25 1.25 0 0 1 0 2.5H6.25a1.25 1.25 0 0 1 0-2.5h20.465zM84.38 20c.36-.13.72-.264.89-.14 1.653-1.033 2.873-2.27 3.53-3.917.578-1.48.804-3.34.76-5.58-.04-1.85-.272-3.56-.733-5.118-.23-.796-.5-1.51-.812-2.16H73.16c-.307.645-.573 1.36-.808 2.158-.46 1.558-.693 3.264-.73 5.118-.048 2.243.173 4.102.76 5.583.655 1.645 1.875 2.883 3.524 3.916.17.107.53.24.885.14l-1.523 2.67c-.197.392-.05 1.018.425 1.018h8.775c.475 0 .617-.628.423-1.02l-1.523-2.67zM89.91 0a1.25 1.25 0 0 1 0 2.5h-20.47a1.25 1.25 0 0 1 0-2.5H89.91z' fill='%23333' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.footer-nav h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--secondary-color);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    font-family: var(--font-heading);
}

/* Banner Section */
.banner {
    position: relative;
    padding: 100px 0;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d5c5a1' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.banner-content h1 {
    text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
}

/* Retro Tags */
.tag {
    border: 1px dashed var(--border-color);
    background-color: rgba(213, 197, 161, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Article Styling */
.article-content {
    position: relative;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 15px var(--shadow-color);
    border-radius: 5px;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--border-color);
    pointer-events: none;
    z-index: 1;
}

.article-content p,
.article-content ul,
.article-content h2,
.article-content h3 {
    position: relative;
    z-index: 2;
}

/* Cookie Consent Styling */
.cookie-consent {
    background-color: var(--light-color);
    border-top: 2px solid var(--primary-color);
}

.cookie-setting {
    background-color: white;
}

/* Retro Animations */
@keyframes bobbing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-img, 
.service-icon,
.testimonial-icon,
.contact-icon {
    animation: bobbing 3s ease-in-out infinite;
}

/* Retro Mobile Menu */
@media (max-width: 768px) {
    .main-nav {
        background-color: var(--light-color);
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d5c5a1' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    }
    
    .main-nav ul {
        border-top: 2px dashed var(--border-color);
    }
    
    .main-nav li {
        border-bottom: 2px dashed var(--border-color);
        padding: 15px 0;
    }
}

/* Image Frames */
.recipe-img,
.blog-img,
.article-featured-image img,
.about-image img {
    border: 5px solid white;
    box-shadow: 0 0 10px var(--shadow-color);
}

/* Blockquote Styling */
blockquote {
    font-style: italic;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--dark-color);
}

/* Pull Quotes */
.pull-quote {
    float: right;
    width: 200px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.4;
    padding: 20px;
    margin: 20px 0 20px 20px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Retro Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: var(--font-body);
}

th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px;
    font-weight: 700;
}

td {
    padding: 10px;
    border-bottom: 1px dashed var(--border-color);
}

tr:nth-child(even) {
    background-color: var(--light-color);
}
