/*
Theme Name: FL Downloader Theme
Description: A professional video downloader theme for WordPress
Version: 2.0
Author: Custom
*/

/* CSS Reset and Variables (Dark Mode Default) */
:root {
  --bg-dark: #04091c; 070b19
  --bg-panel: #111827;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255,255,255,0.08);
  --nav-bg: rgba(7, 11, 25, 0.85);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Light Mode Variables */
body.light-mode {
  --bg-dark: #f3f4f6;
  --bg-panel: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-color: rgba(0,0,0,0.08);
  --nav-bg: rgba(243, 244, 246, 0.85);
  --box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }

body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--nav-bg); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.logo { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent-blue); font-style: arial; }
.nav-links { display: flex; gap: 25px; font-size: 14px; font-weight: 500; }
.nav-links li a:hover { color: var(--accent-blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-premium { background: var(--btn-gradient); padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 13px; color: #fff; display: flex; align-items: center; gap: 6px; border: none; cursor: pointer; white-space: nowrap; }
.lang-btn, .theme-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 7px 12px; border-radius: 20px; cursor: pointer; font-size: 13px; }

/* Hero Section */
.hero { text-align: center; padding: 25px 5% 40px; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.highlight-text { background: var(--btn-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }

/* Platform Icons */
.platforms { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.plat-icon { width: 44px; height: 44px; background: var(--bg-panel); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; border: 1px solid var(--border-color); transition: 0.3s; }
.plat-icon:hover { transform: translateY(-3px); border-color: var(--accent-purple); box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2); }

/* Downloader Input Box */
.download-box { background: var(--bg-panel); max-width: 900px; margin: 0 auto; padding: 20px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: var(--box-shadow); text-align: left; }
.input-group { display: flex; gap: 12px; position: relative; flex-direction: row; }
.input-wrapper { flex: 1; display: flex; align-items: center; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 12px; padding: 0 15px; min-width: 0; }
.input-wrapper i { color: var(--text-muted); font-size: 15px; }
.input-wrapper input { flex: 1; background: transparent; border: none; padding: 14px 10px; color: var(--text-main); font-size: 15px; outline: none; width: 100%; min-width: 0; }
.btn-download { background: var(--btn-gradient); border: none; padding: 0 30px; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; white-space: nowrap; height: 52px; }
.btn-download:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }

/* Status & Error Boxes */
.detect-status { text-align: center; margin-top: 15px; font-size: 13px; color: var(--text-muted); font-weight: 500; min-height: 22px; word-break: break-word; }
.detect-status span { color: var(--accent-blue); font-weight: 600; }
.error-box { background: rgba(127, 29, 29, 0.4); border: 1px solid #ef4444; color: #fca5a5; padding: 12px 16px; border-radius: 12px; margin-bottom: 15px; font-size: 13px; display: none; }

/* Result Box for Download & Player */
.result-container { margin-top: 20px; padding: 15px; background: var(--bg-dark); border-radius: 12px; border: 1px solid var(--border-color); display: none; }
.success-alert { display: flex; align-items: center; background: rgba(22, 101, 52, 0.3); border: 1px solid #22c55e; color: #4ade80; padding: 10px 12px; border-radius: 10px; margin-bottom: 15px; gap: 10px; }
.success-alert i { background: #22c55e; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.video-preview-wrap { background: var(--bg-panel); padding: 10px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 15px; }
.video-preview-wrap video { width: 100%; max-height: 350px; background: #000; border-radius: 6px; object-fit: contain; }
.url-display { font-size: 12px; color: var(--text-muted); margin-top: 8px; word-break: break-all; }
.result-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-res { background: #16a34a; color: #fff; padding: 12px 15px; border-radius: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; transition: 0.2s; text-align: center; }
.btn-res:hover { background: #15803d; }

/* FAQ Section Styles */
.faq-section { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; box-shadow: var(--box-shadow); text-align: left; }
.faq-container { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.faq-item { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: 0.3s; }
body.light-mode .faq-item { background: #f8fafc; }
.faq-question { padding: 15px 18px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq-question i { font-size: 12px; transition: transform 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--accent-blue); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 18px; font-size: 12px; color: var(--text-muted); line-height: 1.5; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 18px 15px 18px; }

/* Info Container & Panels */
.info-container { max-width: 900px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 20px; }
.platforms-showcase-panel { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: var(--box-shadow); }
.plat-left h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; text-align: left; }
.plat-left p { font-size: 13px; color: var(--text-muted); text-align: left; }
.plat-icons-grid { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.plat-item-box { width: 38px; height: 38px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.plat-right { text-align: right; }
.plat-right h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.plat-right p { font-size: 12px; color: var(--text-muted); max-width: 180px; }
.format-badges { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.format-badge { background: var(--bg-dark); border: 1px solid var(--border-color); padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--accent-blue); }

/* Features Bar */
.features-bar { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 20px 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; box-shadow: var(--box-shadow); }
.feature-item { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.feature-icon-wrap { width: 42px; height: 42px; background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-text { display: flex; flex-direction: column; justify-content: flex-start; }
.feature-text h5 { font-size: 13px; font-weight: 700; text-align: left; margin-bottom: 2px; line-height: 1.2; }
.feature-text p { font-size: 11px; color: var(--text-muted); text-align: left; line-height: 1.2; }

/* Related Tools / Guide Section */
.related-tools-section { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; box-shadow: var(--box-shadow); text-align: left; }
.related-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 15px; }
.tool-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; transition: 0.3s; }
body.light-mode .tool-card { background: #f8fafc; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--accent-blue); }
.tool-card.featured { border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(139, 92, 246, 0.15); }
.tool-badge-num { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; background: #10b981; color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tool-icon-box { width: 46px; height: 46px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
body.light-mode .tool-icon-box { background: #ffffff; }
.tool-card h5, .tool-card .tool-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.tool-card p { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; min-height: 32px; }
.tool-tags { font-size: 10px; color: var(--text-muted); margin-bottom: 15px; opacity: 0.8; word-break: break-all; }
.btn-tool-action { width: 100%; background: #fff; border: 1px solid var(--border-color); color: #222; padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-block; text-decoration: none; margin-top: auto; }
.btn-tool-action:hover { background: #10b981; border-color: #10b981; color: #fff; }

/* How It Works & Premium Section Wrapper */
.bottom-grid-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; }
.how-it-works-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; box-shadow: var(--box-shadow); display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; text-align: left; }
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 14px; padding: 15px; display: flex; align-items: flex-start; gap: 12px; text-align: left; }
body.light-mode .step-card { background: #f8fafc; }
.step-num { width: 34px; height: 34px; background: var(--accent-blue); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.step-content { display: flex; flex-direction: column; justify-content: flex-start; }
.step-card h6 { font-size: 13px; font-weight: 700; text-align: left; margin-bottom: 2px; line-height: 1.2; }
.step-card p { font-size: 11px; color: var(--text-muted); line-height: 1.3; text-align: left; }

/* Go Premium Card */
.premium-card { background: linear-gradient(135deg, #1e1b4b 0%, #311052 100%); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 20px; padding: 25px; color: #fff; box-shadow: var(--box-shadow); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; text-align: left; }
.premium-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.premium-title h4 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: #fbbf24; margin-bottom: 4px; }
.premium-title p { font-size: 11px; color: #cbd5e1; }
.rocket-icon { font-size: 28px; color: #60a5fa; }
.btn-prem-action { background: #fff; color: #1e1b4b; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 15px; transition: 0.2s; }
.btn-prem-action:hover { background: #f1f5f9; }
.premium-features { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #e2e8f0; }
.premium-features li { display: flex; align-items: center; gap: 8px; }
.premium-features i { color: #34d399; font-size: 11px; }

/* Post Container Styles */
.post-container { max-width: 900px; margin: 40px auto; padding: 40px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 24px; box-shadow: var(--box-shadow); text-align: left; position: relative; overflow: hidden; }
.post-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--btn-gradient); opacity: 0.8; }
.post-container .post-title, .post-container .post-title.entry-title { font-size: 32px; font-weight: 800; color: var(--text-main); margin-bottom: 30px; line-height: 1.3; position: relative; display: inline-block; letter-spacing: -0.5px; }
.post-container .post-title::after { content: ''; position: absolute; width: 100%; height: 4px; bottom: -10px; left: 0; background: var(--btn-gradient); border-radius: 4px; transform: scaleX(0.75); transform-origin: bottom right; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.post-container .post-title:hover::after { transform: scaleX(1); transform-origin: bottom left; box-shadow: 0 0 18px rgba(59, 130, 246, 0.6); }
.post-container .post-body { font-size: 16px; color: var(--text-muted); line-height: 1.9; margin-top: 25px; margin-bottom: 35px; }
.post-container .post-body p { margin-bottom: 22px; }
.post-container .post-body h2, .post-container .post-body h3, .post-container .post-body h4 { color: var(--text-main); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.post-container .post-body ul, .post-container .post-body ol { margin-left: 20px; margin-bottom: 20px; }
.post-container .post-body li { margin-bottom: 8px; }
.post-container .post-body blockquote { border-left: 4px solid var(--accent-blue); padding: 15px 20px; background: var(--bg-dark); border-radius: 0 12px 12px 0; margin: 25px 0; font-style: italic; color: var(--text-main); }
.post-container .post-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 20px 0; border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* Responsive Breakpoints for Mobile & Tablet */
@media (max-width: 1024px) {
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .related-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .bottom-grid-section { grid-template-columns: 1fr; }
  .platforms-showcase-panel { flex-direction: column; text-align: center; }
  .plat-left h3, .plat-left p { text-align: center; }
  .plat-right { text-align: center; }
  .format-badges { justify-content: center; }
  .plat-right p { max-width: 100%; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 4%; }
  .nav-links { display: none; } 
  .logo { font-size: 20px; }
  .lang-btn { display: none; } 
  .hero { padding: 15px 4% 30px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .platforms { gap: 8px; margin-bottom: 20px; }
  .plat-icon { width: 38px; height: 38px; font-size: 17px; }
  
  .download-box { padding: 15px; border-radius: 15px; }
  .input-group { flex-direction: column; gap: 10px; }
  .input-wrapper { padding: 0 10px; height: 48px; }
  .input-wrapper input { padding: 10px; font-size: 14px; }
  .btn-download { width: 100%; height: 48px; padding: 0; justify-content: center; font-size: 14px; }
  
  .result-container { padding: 12px; }
  .btn-res { font-size: 13px; padding: 11px 12px; }

  .features-bar { grid-template-columns: 1fr; padding: 15px; }
  .related-tools-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; }
  .platforms-showcase-panel { padding: 15px; }
  .info-container { margin-top: 20px; max-width: 100%; padding: 0 5px; }
  .post-container { padding: 20px; margin: 15px; border-radius: 18px; }
  .post-container .post-title, .post-container .post-title.entry-title { font-size: 24px; }
}