/* P6 (Fal.AI) CSS - Mystical Theme */
:root {
    --bg-color: #0f0a1c;
    --text-color: #e2d9f3;
    --text-muted: #9c8eaf;
    --card-bg: #1a122e;
    --border-color: #3b2a5c;
    --primary-color: #a78bfa; /* Light Violet/Goldish feel */
    --primary-hover: #c4b5fd;
    --badge-bg: #2e1f4d;
    --input-bg: #23183b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.navbar { background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.8rem; font-weight: 700; color: #facc15; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 10px rgba(250,204,21,0.3); }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-family: 'Cinzel', serif; letter-spacing: 1px; }
.nav-links a:hover { color: #facc15; }

.ad-placeholder { background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--border-color); display: flex; justify-content: center; align-items: center; color: var(--text-muted); font-size: 0.9rem; margin: 20px auto; border-radius: 8px; }
.top-ad { width: 728px; height: 90px; max-width: 100%; }
.in-article-ad { width: 100%; height: 100px; margin-bottom: 25px; }

.hero { padding: 50px 0 40px; background: radial-gradient(circle at center, rgba(139,92,246,0.1) 0%, transparent 70%); }
.hero h1 { font-size: 2.8rem; color: #facc15; margin-bottom: 15px; text-shadow: 0 0 15px rgba(250,204,21,0.2); }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.workspace { margin-bottom: 60px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

.card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; }
.card-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.card-header h2 { font-size: 1.3rem; font-weight: 600; color: #facc15; }
.card-body { padding: 30px; position: relative; min-height: 400px; }

.form-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); font-size: 0.95rem; font-family: 'Cinzel', serif; letter-spacing: 1px; }
input, textarea, select { width: 100%; padding: 15px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; color: #fff; font-family: inherit; font-size: 1rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px rgba(167,139,250,0.3); }
.primary-btn { width: 100%; background: linear-gradient(45deg, #7c3aed, #4c1d95); color: #fff; border: 1px solid #8b5cf6; padding: 16px; font-size: 1.1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.primary-btn:hover { background: linear-gradient(45deg, #8b5cf6, #5b21b6); box-shadow: 0 0 15px rgba(139,92,246,0.5); }

/* Blurring & Paywall */
.relative { position: relative; }
.blurred-text-container { position: relative; margin-top: 20px; }
.blurred-content { filter: blur(6px); color: transparent; text-shadow: 0 0 10px rgba(250,204,21,0.6); user-select: none; transition: filter 0.5s; }
.paywall-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(26,18,46,0.95); padding: 30px; border-radius: 12px; border: 1px solid #facc15; text-align: center; width: 90%; box-shadow: 0 0 40px rgba(0,0,0,0.8); z-index: 10; backdrop-filter: blur(5px); }
.paywall-overlay h3 { color: #facc15; margin-bottom: 10px; font-size: 1.3rem; }
.paywall-overlay p { color: var(--text-color); margin-bottom: 20px; font-size: 0.95rem; }
.paywall-btn { background: #facc15; color: #000; border: none; padding: 12px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; width: 100%; font-size: 1rem; transition: background 0.3s; }
.paywall-btn:hover { background: #fef08a; }

/* Loading */
.loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,18,46,0.9); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 20; backdrop-filter: blur(2px); }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(250,204,21,0.2); border-top: 3px solid #facc15; border-radius: 50%; animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--text-muted); padding: 40px 20px; font-style: italic; font-family: 'Cinzel', serif; }

.mystique-bg { background: linear-gradient(135deg, rgba(46,31,77,0.5) 0%, rgba(26,18,46,0.5) 100%); padding: 20px; border-radius: 8px; border: 1px solid rgba(139,92,246,0.2); }

.seo-content { margin-bottom: 60px; }
.seo-card { border-radius: 12px; padding: 40px; }
.seo-card h2 { font-size: 1.8rem; color: #facc15; margin-bottom: 20px; }
.seo-card p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.8; }

.legal-container { max-width: 900px; margin: 60px auto; padding: 40px; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); }
.legal-container h1 { font-size: 2.2rem; color: #facc15; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; font-family: 'Cinzel', serif; }
.legal-container p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.8; }

.footer { padding: 30px 0; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; margin-top: 40px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
