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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --bg: #111827;
    --bg-secondary: #1f2937;
    --text: #f9fafb;
    --text-secondary: #d1d5db;
    --border: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeInDown 0.6s ease-out;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease-out;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-section {
    margin: 40px 0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.prompt-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary);
}

.prompt-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.prompt-card .category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.prompt-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.prompt-card button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.prompt-card button:hover {
    background: var(--primary-dark);
}

.submit-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 40px;
    margin: 60px 0;
}

.submit-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary);
}

#submitForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#submitForm input,
#submitForm textarea,
#submitForm select {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

#submitForm input:focus,
#submitForm textarea:focus,
#submitForm select:focus {
    outline: none;
    border-color: var(--primary);
}

#submitForm button {
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

#submitForm button:hover {
    background: var(--primary-dark);
}

footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .prompts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .submit-section {
        padding: 20px;
    }
}