/* Retro Style Enhancements for Yabloko-Sup Website */

/* ========== RETRO COLOR SCHEME ========== */
:root {
    /* Retro Colors */
    --retro-red: #c0392b;
    --retro-orange: #e67e22;
    --retro-yellow: #f1c40f;
    --retro-beige: #f6e6cb;
    --retro-brown: #6d4c41;
    --retro-cream: #fffbef;
    --retro-navy: #34495e;
    --retro-teal: #16a085;
    
    /* Overrides */
    --primary-color: var(--retro-red);
    --secondary-color: var(--retro-orange);
    --accent-color: var(--retro-yellow);
    --dark-color: var(--retro-navy);
    --bg-color: var(--retro-cream);
}

/* ========== RETRO TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Playfair+Display:wght@400;700;900&family=Roboto+Slab:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto Slab', serif;
    background-color: var(--retro-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    text-transform: none;
    font-weight: 900;
}

/* ========== RETRO DESIGN ELEMENTS ========== */
/* Retro Line Decorator */
.retro-line {
    height: 5px;
    width: 100px;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 8px,
        var(--retro-orange) 8px,
        var(--retro-orange) 16px
    );
    margin: 0 auto var(--spacing-md);
}

.article-header .retro-line,
.legal-header .retro-line {
    margin-left: 0;
    margin-right: auto;
}

/* Retro Buttons */
.btn-primary, .btn-secondary {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

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

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

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

/* Retro Borders and Shadows */
.service-card,
.blog-preview-card,
.blog-card,
.related-card,
.testimonial-content,
.subscription-form {
    border: 2px solid #e0d6c2;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Retro Navigation */
nav ul li a {
    position: relative;
    font-family: 'Oswald', sans-serif;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 3px,
        var(--retro-orange) 3px,
        var(--retro-orange) 6px
    );
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Retro Banner */
.banner {
    background-color: var(--retro-beige);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
}

.banner-content h2 {
    position: relative;
    display: inline-block;
}

.banner-content h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: -10px;
    left: 0;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 8px,
        var(--retro-orange) 8px,
        var(--retro-orange) 16px
    );
}

/* Retro Blog Banner */
.blog-banner {
    background-color: var(--retro-red);
    position: relative;
    overflow: hidden;
}

.blog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
}

/* Retro Section Headers */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '★';
    color: var(--retro-orange);
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.section-header h2::before {
    left: -40px;
}

.section-header h2::after {
    right: -40px;
}

/* Retro Process Steps */
.step-number {
    position: relative;
    z-index: 1;
    border: 2px solid var(--retro-brown);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 5px,
        transparent 5px,
        transparent 10px
    );
    width: calc(100% + var(--spacing-md));
    z-index: 0;
}

.process-step:last-child::before {
    content: none;
}

/* Retro Service Cards */
.service-card {
    position: relative;
    background-color: var(--retro-cream);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--retro-brown);
    opacity: 0.2;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) rotate(1deg);
}

/* Retro Testimonial Slider */
.testimonial-content {
    position: relative;
    background-color: var(--retro-cream);
}

.testimonial-content::before {
    content: '❝';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    color: var(--retro-red);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

/* Retro Footer */
footer {
    background-color: var(--retro-navy);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 30px,
        var(--retro-orange) 30px,
        var(--retro-orange) 60px,
        var(--retro-yellow) 60px,
        var(--retro-yellow) 90px
    );
}

/* Retro Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background-color: var(--retro-cream);
    border: 2px solid #e0d6c2;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--retro-orange);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(230, 126, 34, 0.2);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--retro-brown);
    border-radius: 3px;
    background-color: var(--retro-cream);
    position: relative;
    cursor: pointer;
    margin-top: 3px;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--retro-red);
    font-weight: bold;
}

/* Retro Blog Cards */
.blog-preview-card,
.blog-card {
    background-color: var(--retro-cream);
    position: relative;
    overflow: hidden;
}

.blog-preview-card::after,
.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 20px,
        var(--retro-orange) 20px,
        var(--retro-orange) 40px
    );
    transform: translateY(5px);
    transition: transform 0.3s ease;
}

.blog-preview-card:hover::after,
.blog-card:hover::after {
    transform: translateY(0);
}

/* Retro Article Styling */
.article-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.article-content h3 {
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
}

.article-content h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(
        90deg,
        var(--retro-red),
        var(--retro-red) 5px,
        var(--retro-orange) 5px,
        var(--retro-orange) 10px
    );
}

/* Retro Tags */
.article-tags a {
    background-color: var(--retro-beige);
    border: 1px solid #e0d6c2;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--retro-red);
    border-color: var(--retro-red);
    transform: rotate(2deg);
}

/* Retro Modal */
.modal-content {
    background-color: var(--retro-cream);
    border: 3px solid var(--retro-brown);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.cookie-option {
    border-bottom: 1px dashed #e0d6c2;
}

/* Retro Cookie Banner */
.cookie-banner {
    background-color: var(--retro-navy);
    border-top: 5px solid var(--retro-red);
}

/* Thanks Page */
.thanks-icon svg {
    color: var(--retro-red);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .section-header h2::before,
    .section-header h2::after {
        display: none;
    }
    
    .process-step::before {
        width: 0;
    }
}
