/* Retro Theme Enhancements */

/* CSS Custom Properties for Retro Colors */
:root {
    --retro-primary: #2E8B57; /* Sea Green */
    --retro-secondary: #FF6B35; /* Burnt Orange */
    --retro-accent: #F7DC6F; /* Soft Yellow */
    --retro-dark: #2C3E50; /* Dark Blue Gray */
    --retro-light: #ECF0F1; /* Light Gray */
    --retro-cream: #FEF9E7; /* Cream */
    --retro-brown: #8B4513; /* Saddle Brown */
    --retro-teal: #008B8B; /* Dark Turquoise */
    
    /* Gradients */
    --retro-gradient-main: linear-gradient(45deg, var(--retro-primary), var(--retro-teal));
    --retro-gradient-warm: linear-gradient(135deg, var(--retro-secondary), #FF8C42);
    --retro-gradient-soft: linear-gradient(135deg, var(--retro-cream), var(--retro-accent));
    
    /* Shadows */
    --retro-shadow-soft: 0 4px 15px rgba(46, 139, 87, 0.15);
    --retro-shadow-medium: 0 8px 25px rgba(46, 139, 87, 0.2);
    --retro-shadow-strong: 0 12px 35px rgba(46, 139, 87, 0.25);
    
    /* Border Radius */
    --retro-radius-small: 8px;
    --retro-radius-medium: 16px;
    --retro-radius-large: 24px;
    --retro-radius-round: 50px;
}

/* Typography - Retro Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--retro-cream);
    color: var(--retro-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Retro Button Styles */
.btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    border-radius: var(--retro-radius-round);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--retro-shadow-soft);
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--retro-gradient-main);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-primary:hover {
    background: var(--retro-primary);
    transform: translateY(-3px);
    box-shadow: var(--retro-shadow-medium);
}

.btn-secondary {
    background: var(--retro-gradient-warm);
    color: white;
}

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

.btn-outline {
    background: transparent;
    color: var(--retro-primary);
    border: 2px solid var(--retro-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--retro-primary);
    color: white;
    box-shadow: var(--retro-shadow-medium);
}

/* Header Retro Styling */
.header {
    background: rgba(254, 249, 231, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(46, 139, 87, 0.1);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--retro-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu a {
    font-weight: 600;
    color: var(--retro-dark);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::after {
    background: var(--retro-gradient-main);
    height: 3px;
    border-radius: 2px;
}

/* Hero Section Retro */
.hero {
    background: var(--retro-gradient-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(46, 139, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(247, 220, 111, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--retro-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--retro-dark);
    opacity: 0.8;
}

/* Section Headers Retro */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--retro-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--retro-gradient-main);
    border-radius: 2px;
}

/* Card Retro Styling */
.service-card,
.product-card,
.testimonial-card,
.blog-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 139, 87, 0.1);
    border-radius: var(--retro-radius-medium);
    box-shadow: var(--retro-shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.product-card::before,
.testimonial-card::before,
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--retro-gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before,
.product-card:hover::before,
.testimonial-card:hover::before,
.blog-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover,
.product-card:hover,
.testimonial-card:hover,
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--retro-shadow-strong);
    border-color: rgba(46, 139, 87, 0.2);
}

/* Service Icons Retro */
.service-icon img {
    filter: drop-shadow(2px 2px 4px rgba(46, 139, 87, 0.2));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* Product Features Tags */
.feature-tag {
    background: var(--retro-gradient-soft);
    color: var(--retro-primary);
    border: 1px solid rgba(46, 139, 87, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Stats Section Retro */
.stat-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 139, 87, 0.1);
    border-radius: var(--retro-radius-medium);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--retro-gradient-main);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    background: var(--retro-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonials Retro */
.testimonial-stars {
    color: var(--retro-accent);
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
}

.testimonial-text {
    position: relative;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: var(--retro-primary);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

/* Newsletter Retro */
.newsletter {
    background: var(--retro-gradient-main);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-form input {
    border-radius: var(--retro-radius-round);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Footer Retro */
.footer {
    background: linear-gradient(135deg, var(--retro-dark), #34495e);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--retro-gradient-main);
}

/* Blog Page Retro */
.blog-hero {
    background: var(--retro-gradient-main);
}

.category-btn {
    border-radius: var(--retro-radius-round);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover,
.category-btn.active {
    background: var(--retro-primary);
    transform: translateY(-2px);
    box-shadow: var(--retro-shadow-soft);
}

/* Article Page Retro */
.article-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--retro-primary);
}

.article-meta {
    font-weight: 600;
}

.article-category {
    background: var(--retro-gradient-soft);
    color: var(--retro-primary);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.tip-box,
.stats-box {
    background: rgba(254, 249, 231, 0.8);
    border-left: 4px solid var(--retro-primary);
    border-radius: var(--retro-radius-small);
    position: relative;
}

.tip-box::before,
.stats-box::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--retro-gradient-main);
    border-radius: 50%;
    opacity: 0.1;
}

.call-to-action {
    background: var(--retro-gradient-main);
    border-radius: var(--retro-radius-medium);
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Tags Retro */
.tag {
    background: var(--retro-gradient-soft);
    color: var(--retro-primary);
    border: 1px solid rgba(46, 139, 87, 0.2);
    border-radius: var(--retro-radius-round);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--retro-primary);
    color: white;
    transform: translateY(-1px);
}

/* Share Buttons Retro */
.share-btn {
    border-radius: var(--retro-radius-round);
    font-weight: 600;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
    background: var(--retro-primary);
    border-color: var(--retro-primary);
    transform: translateY(-3px);
    box-shadow: var(--retro-shadow-medium);
}

/* Cookie Banner Retro */
.cookie-banner {
    background: rgba(46, 139, 87, 0.95);
    backdrop-filter: blur(15px);
    border-top: 3px solid var(--retro-accent);
}

.cookie-modal-content {
    border-radius: var(--retro-radius-medium);
    box-shadow: var(--retro-shadow-strong);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

/* Form Elements Retro */
input, textarea, select {
    border-radius: var(--retro-radius-small);
    border: 2px solid rgba(46, 139, 87, 0.2);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--retro-primary);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
    outline: none;
}

/* Legal Pages Retro */
.legal-content {
    background: var(--retro-cream);
}

.legal-text h2 {
    font-family: 'Playfair Display', serif;
    color: var(--retro-primary);
    border-bottom: 2px solid var(--retro-accent);
    padding-bottom: 0.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--retro-primary);
    border-radius: var(--retro-radius-small);
    backdrop-filter: blur(10px);
}

/* Cookie Table Retro */
.cookie-table table {
    border-radius: var(--retro-radius-medium);
    overflow: hidden;
    box-shadow: var(--retro-shadow-medium);
}

.cookie-table th {
    background: var(--retro-gradient-soft);
    color: var(--retro-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Thank You Page Retro */
.thank-you {
    background: var(--retro-gradient-soft);
}

.thank-you-title {
    font-family: 'Playfair Display', serif;
    color: var(--retro-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.thank-you-details {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 139, 87, 0.1);
    border-radius: var(--retro-radius-medium);
}

.thank-you-offer {
    background: var(--retro-gradient-main);
    border-radius: var(--retro-radius-medium);
    position: relative;
    overflow: hidden;
}

.thank-you-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.social-link {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(46, 139, 87, 0.2);
    border-radius: var(--retro-radius-small);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--retro-primary);
    color: white;
    border-color: var(--retro-primary);
    transform: translateY(-3px);
    box-shadow: var(--retro-shadow-medium);
}

/* Animation Enhancements */
@keyframes retro-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes retro-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes retro-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-banner {
    animation: retro-float 6s ease-in-out infinite;
}

.stat-number {
    animation: retro-pulse 2s ease-in-out infinite;
}

/* Scrollbar Retro */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--retro-light);
}

::-webkit-scrollbar-thumb {
    background: var(--retro-gradient-main);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--retro-primary);
}

/* Selection Retro */
::selection {
    background: var(--retro-primary);
    color: white;
}

::-moz-selection {
    background: var(--retro-primary);
    color: white;
}

/* Responsive Retro Adjustments */
@media (max-width: 768px) {
    :root {
        --retro-radius-medium: 12px;
        --retro-radius-large: 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    :root {
        --retro-cream: #1a1a1a;
        --retro-light: #2a2a2a;
    }
    
    .service-card,
    .product-card,
    .testimonial-card,
    .blog-card {
        background: rgba(42, 42, 42, 0.9);
        border-color: rgba(46, 139, 87, 0.3);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .feature-tag,
    .tag {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner {
        animation: none;
    }
    
    .stat-number {
        animation: none;
    }
}
