/* Core Party Styles */
:root { 
    --bg-main: #0c051a; 
    --bg-article: #160a2c; 
    --border-color: #2e1559; 
    --text-color: #e2e8f0; 
    --text-muted: #9482b5; 
    --code-bg: #1f0f3a; 
    
    /* Neon & Party Accents */
    --accent-gold: #FFD700;
    --accent-pink: #FF007F;
    --accent-cyan: #00F0FF;
}

html { height: 100%; width: 100%; overflow-x: hidden; scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* Confetti / Starry Night Background effect */
body { 
    background-color: var(--bg-main); 
    background-image: radial-gradient(circle at 15% 50%, rgba(255, 0, 127, 0.05), transparent 25%), radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05), transparent 25%);
    min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; color: var(--text-color); display: flex; flex-direction: column; 
}

/* Home Button */
.home-back-btn { position: absolute; top: 20px; left: 20px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 12px; border-radius: 6px; background: rgba(22, 10, 44, 0.8); border: 1px solid var(--border-color); backdrop-filter: blur(4px); z-index: 100; transition: all 0.2s; }
.home-back-btn:hover { color: #fff; border-color: var(--accent-pink); background: rgba(22, 10, 44, 1); box-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }

/* Reading Progress Bar */
.reading-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: 10000; pointer-events: none; }
.reading-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold)); transition: width 0.1s ease-out; box-shadow: 0 0 10px var(--accent-pink); }

/* Main Content & Layout */
.main-content-wrapper { flex-grow: 1; padding: 60px 20px 40px; box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.article-container { min-width: 0; }

.article-header { border-bottom: 1px solid var(--border-color); margin-bottom: 2.5rem; padding-bottom: 1.5rem; margin-top: 1rem; }
.hero-image-container { width: 100%; margin-bottom: 2rem; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--border-color); }
.hero-image { width: 100%; height: auto; display: block; }
.article-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1.2; margin: 0 0 1rem 0; text-wrap: balance; font-weight: 900; text-shadow: 0 2px 10px rgba(255, 0, 127, 0.3); }
.article-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--accent-cyan); font-size: 0.95rem; font-weight: 600; }

/* Table of Contents */
.toc-container { position: sticky; top: 40px; background-color: var(--bg-article); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
.toc-title { font-size: 1.2rem; color: var(--accent-gold); margin-top: 0; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.4; }
.toc-list a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: block; }
.toc-list a:hover { color: var(--accent-pink); }

/* Typography */
article { font-size: 1.15rem; line-height: 1.8; }
article h2 { font-size: 2rem; color: #fff; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 3.5rem; margin-bottom: 1.5rem; scroll-margin-top: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
article h3 { font-size: 1.5rem; color: var(--accent-cyan); margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 40px; }
article p, article li { margin-bottom: 1.5rem; }
article strong { color: #fff; font-weight: 700; }
article ul, article ol { padding-left: 25px; }

/* Images & Screenshots */
.image-wrapper { text-align: center; margin: 2rem 0; }
.article-image { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.6); }
.screenshot-lg { width: 100%; max-width: 800px; display: block; margin: 0 auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.7); border: 1px solid var(--border-color); }
.screenshot-md { max-width: 250px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.6); border: 1px solid var(--border-color); }
.screenshot-sm { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 1px solid var(--border-color); margin-bottom: 15px;}
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; } .ml-20 { margin-left: 20px; }
.text-center { text-align: center; }

/* Callouts & App Promo */
.app-promo-box { background: linear-gradient(135deg, #1f0f3a 0%, #0c051a 100%); padding: 40px; border-radius: 16px; margin: 3rem 0; border: 1px solid var(--accent-pink); box-shadow: 0 10px 40px rgba(255, 0, 127, 0.15); text-align: center; }
.neon-text { color: var(--accent-gold); font-size: 2.2rem !important; margin-top: 0; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); margin-bottom: 15px; }
.feature-list { list-style: none !important; padding: 0 !important; margin: 20px 0 30px 0 !important; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { color: #fff; font-weight: 600; font-size: 1.1rem; }

/* 2-Column Feature Grid */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 3rem 0; }
.feature-card { background: var(--bg-article); padding: 25px; border-radius: 16px; border: 1px solid var(--border-color); text-align: center; display: flex; flex-direction: column; }
.feature-card h4 { color: var(--accent-cyan); font-size: 1.3rem; margin-top: 0; margin-bottom: 15px; }
.feature-card p { font-size: 0.95rem; color: var(--text-color); flex-grow: 1; }

.flex-align-center { display: flex; align-items: center; flex-wrap: wrap; }

/* CTAs */
.download-btn { display: inline-block; padding: 15px 30px; border-radius: 8px; font-weight: 800; text-decoration: none; transition: all 0.2s; text-align: center; letter-spacing: 0.5px; }
.cta-glow { background: linear-gradient(90deg, #FF007F, #FF7A00); color: #fff; box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4); border: none; }
.cta-glow:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255, 0, 127, 0.6); color: #fff; }
.cta-solid { background: var(--accent-gold); color: #000; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.cta-solid:hover { background: #fff; transform: translateY(-3px); color: #000; }
.cta-massive { padding: 20px 45px; font-size: 1.3rem; border-radius: 12px; text-transform: uppercase; }
.text-link { color: var(--accent-pink); font-weight: bold; text-decoration: none; margin-top: 10px; display: inline-block; }
.text-link:hover { text-decoration: underline; }

/* Tables */
.table-wrapper { overflow-x: auto; margin: 2.5rem 0; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
table { width: 100%; border-collapse: collapse; background: var(--bg-article); text-align: left; font-size: 1rem; }
th { background: var(--code-bg); color: var(--accent-gold); padding: 15px; font-weight: bold; border-bottom: 2px solid var(--border-color); text-transform: uppercase; }
td { padding: 15px; border-bottom: 1px solid var(--border-color); }
tr:nth-child(even) { background: rgba(0,0,0,0.2); }

/* FAQ Accordion */
.faq-section { margin-bottom: 3rem; }
details.faq-item { background: var(--bg-article); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 12px; padding: 18px; cursor: pointer; transition: background-color 0.2s; }
details.faq-item:hover { background: var(--code-bg); border-color: var(--accent-cyan); }
details.faq-item summary { font-weight: bold; color: #fff; outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-pink); }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { margin-top: 15px; color: var(--text-color); margin-bottom: 0; }

/* Author Badge */
.author-trust-badge { background-color: var(--code-bg); padding: 25px; border-radius: 16px; display: flex; align-items: center; gap: 20px; margin-top: 4rem; border: 1px solid var(--border-color); }
.author-avatar { width: 70px; height: 70px; min-width: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold)); display: flex; justify-content: center; align-items: center; font-size: 2.5rem; box-shadow: 0 4px 15px rgba(255,0,127,0.3); }
.author-trust-badge h4 { margin: 0 0 5px 0; color: #fff; font-size: 1.2rem; }
.author-trust-badge p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Sticky Mobile CTA */
.mobile-app-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(12, 5, 26, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--accent-pink); padding: 12px 20px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; z-index: 9999; box-shadow: 0 -5px 20px rgba(255,0,127,0.2); }
.mobile-app-cta-left { display: flex; align-items: center; gap: 12px; }
.mobile-app-cta-icon { width: 45px; height: 45px; border-radius: 10px; border: 1px solid var(--border-color); }
.mobile-app-cta-title { color: white; font-weight: bold; font-size: 1rem; line-height: 1.2; }
.mobile-app-cta-subtitle { color: var(--accent-gold); font-size: 0.85rem; font-weight: 600;}
.mobile-app-cta-btn { padding: 8px 20px; border-radius: 8px; font-weight: bold; font-size: 0.95rem; text-decoration: none; }

@media (min-width: 993px) { .mobile-app-cta { display: none !important; } }

/* Responsive Styles */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .toc-container { display: none; }
}
@media (max-width: 768px) {
    .main-content-wrapper { padding: 60px 15px 80px; }
    .features-grid { grid-template-columns: 1fr; }
    .app-promo-box { padding: 30px 20px; }
    .screenshot-md { max-width: 100%; margin-left: 0; margin-top: 20px; }
    .home-back-btn { top: 10px; left: 10px; font-size: 0.8rem; padding: 6px 10px; }
    .article-header h1 { font-size: 1.8rem; }
}