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

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

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #2d3436;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Comic border effect */
.comic-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 15px solid #000;
    pointer-events: none;
    z-index: 1000;
    box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 12px #ff6b6b;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 50%, #6c5ce7 100%);
    margin: 30px;
    border: 8px solid #000;
    box-shadow: 15px 15px 0 #ff6b6b, 15px 15px 0 8px #000;
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        0 5%, 3% 0, 10% 2%, 20% 0, 30% 2%, 40% 0, 50% 2%, 60% 0, 70% 2%, 80% 0, 90% 2%, 97% 0, 100% 5%,
        100% 95%, 97% 100%, 90% 98%, 80% 100%, 70% 98%, 60% 100%, 50% 98%, 40% 100%, 30% 98%, 20% 100%, 10% 98%, 3% 100%, 0 95%
    );
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    z-index: 1;
    pointer-events: none;
}

.explosion-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffd93d 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

.starburst {
    position: absolute;
    font-size: 3rem;
    animation: rotate-pulse 4s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(3px 3px 0 #000);
}

.starburst-1 {
    top: 20px;
    left: 10%;
    animation-delay: 0s;
}

.starburst-2 {
    top: 30px;
    right: 10%;
    animation-delay: 1s;
}

.starburst-3 {
    bottom: 20px;
    left: 50%;
    animation-delay: 2s;
}

.comic-badge {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    background: #ff6b6b;
    color: #ffd93d;
    padding: 10px 20px;
    border: 4px solid #000;
    border-radius: 50%;
    text-shadow: 3px 3px 0 #000;
    box-shadow: 5px 5px 0 #000;
    z-index: 4;
    animation: wiggle 1.5s ease-in-out infinite;
}

.comic-badge.top-left {
    top: -20px;
    left: 50px;
    transform: rotate(-20deg);
}

.comic-badge.top-right {
    top: -20px;
    right: 50px;
    transform: rotate(20deg);
    background: #6c5ce7;
    animation-delay: 0.5s;
}

.halftone-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Header pizza animations */
.header-pizza {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 0 3px #000;
    z-index: 2;
    animation: pizza-bounce 3s ease-in-out infinite;
    transition: background-image 0.5s ease-in-out;
}

.left-pizza {
    left: 20px;
}

.right-pizza {
    right: 20px;
    animation-delay: 1.5s;
}

@keyframes pizza-bounce {
    0%, 100% { 
        transform: translateY(-50%) scale(1) rotate(0deg); 
    }
    50% { 
        transform: translateY(-60%) scale(1.1) rotate(5deg); 
    }
}

.title {
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.title-wrapper {
    display: inline-block;
    background: #fff;
    padding: 20px 40px;
    border: 8px solid #000;
    box-shadow: 10px 10px 0 #000, 10px 10px 0 10px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
    position: relative;
}

.title-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: repeating-linear-gradient(
        45deg,
        #ffd93d,
        #ffd93d 10px,
        #ff6b6b 10px,
        #ff6b6b 20px
    );
    z-index: -1;
    border: 8px solid #000;
}

.coppa {
    display: inline-block;
    color: #ff6b6b;
    font-size: 7rem;
    text-shadow: 6px 6px 0 #000, 4px 4px 0 #ffd93d;
    animation: bounce-shake 2s infinite;
    letter-spacing: 5px;
}

.mikol {
    display: inline-block;
    color: #6c5ce7;
    font-size: 7rem;
    text-shadow: 6px 6px 0 #000, 4px 4px 0 #00d2d3;
    animation: bounce-shake 2s infinite 0.2s;
    letter-spacing: 5px;
}

.edition-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.edition {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 4px 4px 0 #000;
    transform: rotate(-3deg);
    display: inline-block;
    padding: 15px 30px;
    background: #ff6b6b;
    border: 6px solid #000;
    box-shadow: 8px 8px 0 #000;
    position: relative;
    animation: wiggle 2s ease-in-out infinite;
}

.edition::before {
    content: '★';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 2rem;
    color: #ffd93d;
    text-shadow: 2px 2px 0 #000;
    animation: spin 3s linear infinite;
}

.edition::after {
    content: '★';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 2rem;
    color: #ffd93d;
    text-shadow: 2px 2px 0 #000;
    animation: spin 3s linear infinite reverse;
}

.year-badge {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #000;
    background: #ffd93d;
    padding: 10px 20px;
    border: 5px solid #000;
    border-radius: 50%;
    box-shadow: 6px 6px 0 #000;
    transform: rotate(5deg);
    animation: bounce 2s ease-in-out infinite;
}

.slogan-main {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.slogan-text {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #fff;
    background: #000;
    padding: 15px 30px;
    border: 5px solid #ffd93d;
    box-shadow: 8px 8px 0 #ffd93d;
    display: inline-block;
    text-shadow: 3px 3px 0 #ff6b6b;
    animation: flash-border 2s ease-in-out infinite;
    position: relative;
}

.slogan-text::before,
.slogan-text::after {
    content: '';
    position: absolute;
    background: #ff6b6b;
    border: 3px solid #000;
}

.slogan-text::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: -20px;
    transform: rotate(45deg);
}

.slogan-text::after {
    width: 40px;
    height: 40px;
    bottom: -20px;
    right: -20px;
    transform: rotate(45deg);
}

main {
    padding: 20px;
}

/* Pizza Carousel */
.pizza-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.pizza-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fff;
    border: 8px solid #000;
    box-shadow: 15px 15px 0 #000;
    overflow: hidden;
    border-radius: 20px;
}

.pizza-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pizza-slide.active {
    opacity: 1;
    animation: slideIn 0.5s ease-out;
}

.pizza-slide img {
    width: 90%;
    height: 400px;
    object-fit: cover;
    border: 6px solid #ff6b6b;
    border-radius: 15px;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
}

.pizza-caption {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #000;
    text-shadow: 2px 2px 0 #ffd93d;
    margin-top: 15px;
}

/* Comic bubbles */
.comic-bubble {
    position: absolute;
    background: #fff;
    border: 5px solid #000;
    border-radius: 50%;
    padding: 20px;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    text-shadow: 2px 2px 0 #ff6b6b;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.comic-bubble.left {
    top: -30px;
    left: -50px;
    transform: rotate(-15deg);
}

.comic-bubble.right {
    top: -30px;
    right: -50px;
    transform: rotate(15deg);
    animation-delay: 0.5s;
}

.comic-bubble::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 5px solid #000;
    border-radius: 50%;
    bottom: -40px;
}

.comic-bubble.left::after {
    left: 30px;
}

.comic-bubble.right::after {
    right: 30px;
}

/* Slogans */
.slogans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.slogan-box {
    background: #fff;
    border: 6px solid #000;
    padding: 30px;
    text-align: center;
    box-shadow: 8px 8px 0 #000;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s;
}

.slogan-box:nth-child(1) { --rotation: 2deg; background: #ff6b6b; }
.slogan-box:nth-child(2) { --rotation: -1deg; background: #ffd93d; }
.slogan-box:nth-child(3) { --rotation: 1deg; background: #6c5ce7; color: #fff; }
.slogan-box:nth-child(4) { --rotation: -2deg; background: #00d2d3; }

.slogan-box:hover {
    transform: rotate(0deg) scale(1.05);
}

.slogan-box h2 {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* Info section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.comic-panel {
    background: #fff;
    border: 6px solid #000;
    padding: 30px;
    box-shadow: 10px 10px 0 #000;
    position: relative;
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.1) 20px
    );
    z-index: -1;
}

.comic-panel h3 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 15px;
}

.comic-panel p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: bold;
}

/* Photo Strip Section */
.photo-strip-section {
    margin: 60px 0;
    padding: 40px 0;
    background: #fff;
    border-top: 10px solid #000;
    border-bottom: 10px solid #000;
    overflow: hidden;
    position: relative;
}

.photo-strip-section::before,
.photo-strip-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.photo-strip-section::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.photo-strip-section::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.strip-title {
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.photo-strip-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.photo-strip {
    display: flex;
    gap: 30px;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
}

.photo-strip:hover {
    animation-play-state: paused;
}

.photo-item {
    flex-shrink: 0;
    position: relative;
    width: 300px;
    height: 350px;
    background: #fff;
    border: 6px solid #000;
    box-shadow: 8px 8px 0 #000;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.photo-item:nth-child(even) {
    transform: rotate(2deg);
}

.photo-item:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 20;
}

.photo-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffd93d;
    border-top: 4px solid #000;
    padding: 15px;
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: #000;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    color: #fff;
    margin: 40px 30px 30px;
    border: 6px solid #000;
    box-shadow: 10px 10px 0 #ff6b6b;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
}

footer a {
    color: #ffd93d;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

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

@keyframes bounce-shake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes rotate-pulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

@keyframes flash-border {
    0%, 100% { border-color: #ffd93d; }
    50% { border-color: #ff6b6b; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 40px 15px;
        margin: 15px;
    }
    
    .title-wrapper {
        padding: 15px 25px;
    }
    
    .coppa, .mikol {
        font-size: 4rem;
        letter-spacing: 2px;
    }
    
    .comic-badge {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .comic-badge.top-left,
    .comic-badge.top-right {
        top: -15px;
    }
    
    .comic-badge.top-left {
        left: 20px;
    }
    
    .comic-badge.top-right {
        right: 20px;
    }
    
    .edition {
        font-size: 1.8rem;
        padding: 10px 20px;
    }
    
    .year-badge {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .slogan-text {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .starburst {
        font-size: 2rem;
    }
    
    .pizza-carousel {
        height: 400px;
    }
    
    .pizza-slide img {
        height: 300px;
    }
    
    .comic-bubble {
        display: none;
    }
    
    .slogan-box h2 {
        font-size: 1.3rem;
    }
}
