:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent-1: #8b5cf6;
    --accent-2: #10b981;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.highlight-gradient {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    padding: 12px 32px;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 95%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-github {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main) !important;
}

/* Hero Section */
.hero {
    padding: 20px 0 20px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
}

/* Search Bar */
.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 24px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px 16px 56px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Stats */
.stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Categories Section */
.categories-section {
    padding: 10px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-header {
    padding: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 24px;
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
}

.modal-body {
    padding: 40px;
}

/* Prompt Styles inside Modal */
.subcategory-block {
    margin-bottom: 48px;
}

.subcategory-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--accent-1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.prompt-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-right: 100px;
}

.prompt-text {
    background: rgba(2, 6, 23, 0.5);
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
    white-space: pre-wrap;
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-copy {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: #020617;
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h3 {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .search-container { flex-direction: column; background: transparent; box-shadow: none; border: none; padding: 0;}
    #searchInput { border-radius: 12px; margin-bottom: 12px; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--glass-border); padding-left: 48px;}
    .search-icon { top: 26px; }
    .btn-primary { width: 100%; padding: 16px; border-radius: 12px; }
    .stats { flex-direction: column; gap: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

/* Ad Wrapper */
.ad-wrapper {
    width: 100%;
    max-width: 970px;
    height: 90px;
    margin: 10px auto;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ad-wrapper::before {
    content: 'Advertisement';
    position: absolute;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: -1;
}
