/* Retro CSS Styles */
:root {
    /* Retro color palette */
    --retro-primary: #ff6b6b;
    --retro-secondary: #4ecdc4;
    --retro-accent: #ffd166;
    --retro-dark: #293241;
    --retro-light: #fff7ed;
    
    /* Overriding base colors with retro theme */
    --primary-color: var(--retro-primary);
    --secondary-color: var(--retro-secondary);
    --accent-color: var(--retro-accent);
    --dark-color: var(--retro-dark);
    --light-color: var(--retro-light);
    
    /* Retro fonts */
    --retro-heading-font: 'Staatliches', 'Impact', cursive;
    --retro-body-font: 'Space Mono', monospace;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Space+Mono:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: var(--retro-heading-font);
    letter-spacing: 1px;
    text-transform: uppercase;
}

body {
    font-family: var(--retro-body-font);
    background-color: var(--retro-light);
    background-image: 
        radial-gradient(#4ecdc4 2px, transparent 2px),
        radial-gradient(#ff6b6b 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    background-attachment: fixed;
}

/* Container with paper texture */
.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Retro buttons */
.btn {
    font-family: var(--retro-heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 var(--retro-dark);
    transform: translate(-3px, -3px);
}

.btn:hover {
    box-shadow: 1px 1px 0 var(--retro-dark);
    transform: translate(-1px, -1px);
}

.btn-outline {
    box-shadow: 3px 3px 0 var(--retro-primary);
}

.btn-outline:hover {
    box-shadow: 1px 1px 0 var(--retro-primary);
}

/* Header with retro pattern */
.header {
    position: relative;
    background-color: white;
    background-image: linear-gradient(45deg, var(--retro-light) 25%, transparent 25%, transparent 75%, var(--retro-light) 75%, var(--retro-light)),
                      linear-gradient(45deg, var(--retro-light) 25%, transparent 25%, transparent 75%, var(--retro-light) 75%, var(--retro-light));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Logo */
.logo a {
    font-family: var(--retro-heading-font);
    font-size: 2rem;
    color: var(--retro-primary);
    text-shadow: 2px 2px 0 var(--retro-dark);
}

/* Navigation */
.main-nav a {
    font-family: var(--retro-heading-font);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--retro-light), white);
    position: relative;
}

.hero-text h1 {
    color: var(--retro-primary);
    text-shadow: 3px 3px 0 var(--retro-dark);
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.hero-wave svg {
    fill: white;
}

/* Cards with retro styling */
.service-card, 
.plan-card, 
.blog-card,
.benefit-card,
.testimonial-card {
    border: 2px solid var(--retro-dark);
    box-shadow: 5px 5px 0 var(--retro-dark) !important;
    transform: translate(-5px, -5px) !important;
    transition: all 0.3s ease;
}

.service-card:hover, 
.plan-card:hover, 
.blog-card:hover,
.benefit-card:hover {
    box-shadow: 2px 2px 0 var(--retro-dark) !important;
    transform: translate(-2px, -2px) !important;
}

.plan-card.featured {
    border-color: var(--retro-primary);
    box-shadow: 5px 5px 0 var(--retro-primary) !important;
}

.plan-card.featured:hover {
    box-shadow: 2px 2px 0 var(--retro-primary) !important;
}

.plan-badge {
    background-color: var(--retro-accent);
    color: var(--retro-dark);
    font-family: var(--retro-heading-font);
    letter-spacing: 1px;
}

/* Icons with retro colors */
.service-icon svg,
.benefit-icon svg {
    fill: var(--retro-primary);
}

/* Section headers */
.section-header h2,
.section-subheader h3 {
    color: var(--retro-primary);
    text-shadow: 2px 2px 0 var(--retro-dark);
    position: relative;
    display: inline-block;
}

.section-header h2:after,
.section-subheader h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--retro-accent);
}

/* Footer with retro pattern */
.footer {
    background-color: var(--retro-dark);
    background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05)),
                      linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.footer-logo h3 {
    font-family: var(--retro-heading-font);
    color: var(--retro-primary);
    text-shadow: 2px 2px 0 black;
}

/* Cookie banner with retro styling */
.cookie-banner {
    border: 2px solid var(--retro-dark);
    box-shadow: 5px 5px 0 var(--retro-dark) !important;
}

.cookie-banner h3 {
    color: var(--retro-primary);
}

/* Blog specific retro styles */
.blog-hero-content h1 {
    color: var(--retro-primary);
    text-shadow: 3px 3px 0 var(--retro-dark);
}

.article-category {
    background-color: var(--retro-accent);
    color: var(--retro-dark);
    font-family: var(--retro-heading-font);
}

.blog-category {
    color: var(--retro-primary);
    font-family: var(--retro-heading-font);
}

.article-header h1 {
    color: var(--retro-primary);
    text-shadow: 2px 2px 0 var(--retro-dark);
}

.article-content h2 {
    color: var(--retro-primary);
    font-family: var(--retro-heading-font);
    letter-spacing: 1px;
}

.article-quote {
    border-left: 4px solid var(--retro-accent);
}

/* Retro-styled form elements */
.form-control {
    border: 2px solid var(--retro-dark);
    border-radius: 0;
    background-color: var(--retro-light);
}

.form-control:focus {
    border-color: var(--retro-primary);
    box-shadow: 3px 3px 0 var(--retro-primary);
}

/* Decorative elements */
.section:before,
.section:after {
    content: '';
    display: block;
    height: 10px;
    background-image: 
        linear-gradient(45deg, var(--retro-accent) 25%, transparent 25%, transparent 75%, var(--retro-accent) 75%, var(--retro-accent)),
        linear-gradient(45deg, var(--retro-accent) 25%, transparent 25%, transparent 75%, var(--retro-accent) 75%, var(--retro-accent));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    margin: 20px 0;
}

/* Retro animations */
@keyframes retro-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.featured-article-image img,
.subscription-image img {
    animation: retro-pulse 4s infinite;
}

/* Retro details */
::selection {
    background-color: var(--retro-accent);
    color: var(--retro-dark);
}

/* Retro responsive adjustments */
@media (max-width: 768px) {
    .hero-text h1,
    .blog-hero-content h1,
    .article-header h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 var(--retro-dark);
    }
    
    .section-header h2:after,
    .section-subheader h3:after {
        width: 60px;
    }
}