/* ===== CSS Variables (shadcn-inspired) ===== */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --primary: 262 83% 58%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --border: 214.3 31.8% 91.4%;
    --radius: 1rem;
    
    /* Cute colors */
    --pink: #ff6b9d;
    --purple: #8b5cf6;
    --blue: #60a5fa;
    --yellow: #fbbf24;
    --green: #34d399;
    --orange: #fb923c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ddd6fe 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Cute background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header & Navigation ===== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}

.nav-link:hover {
    background: hsl(var(--accent));
    color: var(--purple);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--purple);
    color: white;
}

/* ===== Main Content ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: calc(var(--radius) * 2);
    margin-bottom: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 3px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--purple);
    border-color: var(--purple);
}

.btn-secondary:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-3px);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-emoji {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.float-emoji:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-emoji:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.float-emoji:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

.float-emoji:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== Sections ===== */
.features, .showcase {
    background: white;
    padding: 3rem 2rem;
    border-radius: calc(var(--radius) * 2);
    margin-bottom: 3rem;
    border: 3px solid hsl(var(--border));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.section-title {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Feature Cards ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
    border: 3px solid hsl(var(--border));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--purple);
    border: 3px solid var(--purple);
}

.card-1 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.card-2 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.card-3 { background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%); }

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* ===== Skit Cards ===== */
.skit-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 3px solid hsl(var(--border));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
}

.skit-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.skit-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: wiggle 3s ease-in-out infinite;
}

.skit-card h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--purple);
}

.skit-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.skit-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.skit-link:hover {
    gap: 1rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
    background: white;
    border-top: 3px solid hsl(var(--border));
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1rem;
}

.footer-text {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid,
    .skit-preview {
        grid-template-columns: 1fr;
    }
}

/* ===== Generator Page ===== */
.generator-page, .examples-page, .about-page {
    background: white;
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 3px solid hsl(var(--border));
}

.generator-page h1, .examples-page h1, .about-page h1 {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.generator-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 1.1rem;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 3px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.skit-result {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ddd6fe 100%);
    border-radius: var(--radius);
    border: 3px solid hsl(var(--border));
}

.skit-result h2 {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.skit-output {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 3px solid hsl(var(--border));
}

.skit-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
    border-radius: calc(var(--radius) / 2);
    border-left: 5px solid var(--purple);
}

.skit-section:nth-child(2) {
    border-left-color: var(--pink);
}

.skit-section:nth-child(3) {
    border-left-color: var(--orange);
}

.skit-section:nth-child(4) {
    border-left-color: var(--blue);
}

.skit-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.skit-section p {
    line-height: 1.8;
    white-space: pre-line;
    color: hsl(var(--foreground));
}

/* ===== Examples Page ===== */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.example-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
    padding: 2rem;
    border-radius: var(--radius);
    border: 3px solid hsl(var(--border));
    transition: all 0.3s ease;
    position: relative;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
    border-radius: var(--radius) var(--radius) 0 0;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.example-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
}

.example-content strong {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
}

/* ===== About Page ===== */
.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
    border-radius: var(--radius);
    border: 3px solid hsl(var(--border));
}

.about-section h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
}

.about-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    border: 3px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.audience-card h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--purple);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.audience-card p {
    color: hsl(var(--muted-foreground));
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--purple);
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 3px solid var(--purple);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-3px);
}

.fun-facts {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    list-style-position: inside;
    border: 3px solid hsl(var(--border));
}

.fun-facts li {
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.fun-facts li::marker {
    content: '✨ ';
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: var(--radius);
    color: white;
    margin-top: 3rem;
    border: 3px solid var(--purple);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.3);
}

.cta-section h2 {
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--purple);
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generator-page, .examples-page, .about-page {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .generator-page, .examples-page, .about-page {
        padding: 2rem 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
}
