:root {
    --bg-color: #0d0f17;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #7b61ff;
    --primary-hover: #9b88ff;
    --text-primary: #ffffff;
    --text-muted: #a0a5b5;
    --success: #10b981;
    --font-main: 'Outfit', sans-serif;
    --card-radius: 16px;
    --transition-snappy: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(13, 15, 23, 0.8);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a0a5b5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.adsense-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .lucide {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden; /* Ensure it stays within container */
}

#dynamic-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px; /* Room for scrollbar */
    max-width: 100%;
}

/* Elegant Scrollbar for Desktop/Windows users */
#dynamic-nav-links::-webkit-scrollbar {
    height: 4px;
}
#dynamic-nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
#dynamic-nav-links::-webkit-scrollbar-thumb {
    background: rgba(123, 97, 255, 0.5);
    border-radius: 4px;
}
#dynamic-nav-links::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-snappy);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    transition: var(--transition-snappy);
    margin-right: 1rem;
}
.search-bar:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(123, 97, 255, 0.2);
}
.search-bar .lucide {
    color: var(--text-muted);
    width: 18px; height: 18px;
}

/* AdSense Styling */
.adsense-container {
    display: none; /* Hide until ready to enable */
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    overflow: hidden;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--surface-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.grid-ad {
    grid-column: 1 / -1;
    margin: 1rem 0;
}
#search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    width: 150px;
    transition: width var(--transition-snappy);
}
#search-input:focus {
    width: 220px;
}
#search-input::placeholder {
    color: var(--text-muted);
}

/* App Container */
#app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 60vh;
}

/* Typography elements */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Grid System */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Prompt Card */
.prompt-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition-snappy);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.prompt-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(123, 97, 255, 0.15);
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Quick Copy Button */
.quick-copy {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-snappy);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
    z-index: 5;
    border: none;
    cursor: pointer;
}

.prompt-card:hover .quick-copy {
    opacity: 1;
    transform: translateY(0);
}

.quick-copy:hover {
    background: var(--primary-hover);
    transform: scale(1.1) !important;
}

.quick-copy.copied {
    background: var(--success);
    width: auto;
    padding: 0 10px;
    border-radius: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--surface-color);
    border: 1px dashed var(--surface-border);
    border-radius: 20px;
}

.empty-state .lucide {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Detail View */
.detail-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.4s ease;
}

.detail-image-wrapper {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    align-self: start;
    position: sticky;
    top: 6rem;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.prompt-box {
    background: #000;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.prompt-text {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-snappy);
    width: fit-content;
}

.copy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: var(--success);
}

/* Premium PRO Banners */
.premium-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0 1.5rem;
}

.banner-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-primary);
    min-height: 80px;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-radius: 20px;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-snappy);
}

.banner-content:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

/* Glass Shimmer Animation for Banner */
.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shimmerSwipe 6s infinite;
}

@keyframes shimmerSwipe {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.pro-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pro-badge .lucide {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

.ig-glass-badge {
    background: linear-gradient(135deg, #f09433, #dc2743, #bc1888, #f09433);
    background-size: 300% 300%;
    animation: gradientFlow 4s ease infinite;
    position: relative;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ig-glass-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px 8px 0 0;
}

.btn-upgrade {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition-snappy);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
    animation: buttonPulse 2.5s infinite;
}

.btn-upgrade::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineSweep 4s infinite;
    z-index: -1;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes shineSweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-upgrade:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.05);
}

.ig-badge {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite, smoothFloat 3s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    padding: 0.3rem 0.8rem;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes smoothFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.grid-banner {
    grid-column: 1 / -1;
    margin: 1.5rem 0;
}

@media (max-width: 600px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* More Button */
.more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(123, 97, 255, 0.1);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
    background: #08090d;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-snappy);
}

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

.footer-contact {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-snappy);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-color);
}

/* Instructions Card */
.instructions-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.instructions-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.instruction-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(123, 97, 255, 0.3);
}

.step-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.step-text strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .detail-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-image-wrapper {
        position: static !important;
    }
    
    .detail-title {
        font-size: 2rem;
    }
}

/* Static Pages (About, Privacy, etc) */
.static-page {
    max-width: 800px;
    margin: 4rem auto;
    line-height: 1.8;
    animation: fadeIn 0.5s ease;
}

.static-page h1 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-page h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.static-page p, .static-page li {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.static-page ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}
