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

:root {
    --primary-color: #ff4757;
    --secondary-color: #5352ed;
    --background-color: #f1f2f6;
    --text-color: #2f3542;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--background-color);
    color: var(--text-color);
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
}

.hero-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.form-control {
    border: 3px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    padding: 0.8rem;
}

.btn-create {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.btn-create:hover {
    transform: scale(1.05);
    background-color: #ff6b81;
}

.hero-result {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    display: none;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.hero-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.hero-backstory {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 1rem;
}

.progress-indicator {
    display: none;
    text-align: center;
    padding: 2rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
}

@keyframes flying {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.progress-indicator .hero-loader {
    font-size: 3rem;
    animation: flying 2s infinite ease-in-out;
    display: inline-block;
    margin-bottom: 1rem;
}

.progress-indicator p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'Comic Neue', cursive;
    animation: bounce 1s infinite;
}

@keyframes loadPizza {
    0% { clip-path: polygon(50% 50%, 50% 0%, 50% 0%); }
    12.5% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%); }
    25% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%); }
    37.5% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%); }
    50% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%); }
    62.5% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%); }
    75% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%); }
    87.5% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%); }
    100% { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%); }
}

.generating-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pizza-loader {
    width: 200px;
    height: 200px;
    background: #FFE5B4;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
}

.pizza-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FF6B6B;
    border-radius: 50%;
    animation: loadPizza 2s linear infinite;
}

.pizza-toppings {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, #8B0000 5px, transparent 6px),
        radial-gradient(circle at 70% 70%, #8B0000 5px, transparent 6px),
        radial-gradient(circle at 50% 40%, #8B0000 5px, transparent 6px),
        radial-gradient(circle at 40% 60%, #006400 5px, transparent 6px),
        radial-gradient(circle at 60% 50%, #006400 5px, transparent 6px);
}

.loading-text {
    font-size: 24px;
    font-family: 'Comic Neue', cursive;
    color: #FF6B6B;
    text-align: center;
    margin-top: 20px;
    animation: bounce 0.5s infinite alternate;
}

.error-message {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    display: none;
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Gallery Styles */
.gallery-section {
    padding: 2rem 0;
}

.hero-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 300px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.hero-card:hover .hero-overlay {
    bottom: 0;
}

.hero-card:hover .gallery-image {
    transform: scale(1.05);
}

.hero-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Bangers', cursive;
}

.hero-overlay p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}


.seo-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.seo-content h2 {
    font-family: 'Bangers', cursive;
    color: var(--primary-color);
}

/* How it Works Section */
.how-it-works {
    background-color: white;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Bangers', cursive;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: var(--primary-color);
    font-family: 'Bangers', cursive;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    color: var(--secondary-color);
}

.seo-content ul {
    list-style-type: none;
    padding-left: 0;
}

.seo-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.seo-content ul li:before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* How it Works Section */
.how-it-works {
    background-color: white;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Bangers', cursive;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: var(--primary-color);
    font-family: 'Bangers', cursive;
    margin-bottom: 1rem;
}
