@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Roboto:wght@400;700&display=swap');

:root {
    --retro-red: #FF4757;
    --retro-yellow: #FFC048;
    --retro-blue: #3742FA;
    --retro-green: #2ED573;
    --retro-pink: #FF3838;
    --cream: #FFF8E1;
    --dark-brown: #3C2A21;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(45deg, var(--cream) 25%, transparent 25%),
                linear-gradient(-45deg, var(--cream) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--cream) 75%),
                linear-gradient(-45deg, transparent 75%, var(--cream) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #FFF5E6;
    color: var(--dark-brown);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--retro-red), var(--retro-pink));
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 4.5rem;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px var(--retro-yellow),
                 8px 8px 0px var(--retro-blue);
    position: relative;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.burger-emoji {
    font-size: 3rem;
    margin: 0 10px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

nav {
    background: var(--retro-yellow);
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    background: var(--retro-red);
    color: white;
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

main {
    padding: 60px 0;
}

.intro {
    text-align: center;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 4px solid var(--retro-blue);
}

.intro h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--retro-red);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px var(--retro-yellow);
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-brown);
}

.burger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.burger-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.burger-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none; /* This prevents the pseudo-element from blocking clicks */
    z-index: 1;
}

.burger-card:hover::before {
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.burger-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.burger-card.featured {
    border-color: var(--retro-red);
    background: linear-gradient(135deg, #FFE0E0, white);
}

.burger-card.classic {
    border-color: var(--retro-blue);
    background: linear-gradient(135deg, #E0E8FF, white);
}

.burger-card.trendy {
    border-color: var(--retro-green);
    background: linear-gradient(135deg, #E0FFE8, white);
}

.burger-card.local {
    border-color: var(--retro-yellow);
    background: linear-gradient(135deg, #FFF8E0, white);
}

.burger-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-brown);
    position: relative;
    z-index: 10; /* Ensure the heading and link are above any pseudo-elements */
}

.burger-card h3 a {
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    z-index: 10; /* Ensure the link is clickable above other elements */
    display: inline-block; /* Makes the link area more stable */
}

.burger-card h3 a:hover {
    color: var(--retro-red);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Ensure all content is above the animated pseudo-element */
.burger-card > * {
    position: relative;
    z-index: 5;
}

.location {
    font-weight: bold;
    color: var(--retro-red);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    margin-bottom: 15px;
    line-height: 1.7;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--retro-green);
    margin-bottom: 15px;
}

.specialty {
    background: var(--retro-yellow);
    color: var(--dark-brown);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-section {
    background: var(--dark-brown);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--retro-yellow);
}

.tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--retro-yellow);
}

.tip h3 {
    color: var(--retro-yellow);
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
}

footer {
    background: var(--retro-red);
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .burger-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .tips {
        grid-template-columns: 1fr;
    }
}