/* style.css */
:root {
  --primary-red: #E74C3C;
  --hover-red: #C0392B;
  --dark-header: #1A1A2E;
  --body-bg: #FFFFFF;
  --alt-bg: #F8F8F8;
  --text-main: #2C3E50;
  --border-color: #E0E0E0;
  --success-green: #27AE60;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.site-header {
  background-color: var(--dark-header);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { color: var(--primary-red); }
.logo-icon-svg { flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 700; color: white; letter-spacing: -0.3px; }
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: white; text-decoration: none; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-red); }
.theme-toggle {
  background: none; border: none; font-size: 20px; cursor: pointer; color: white; margin-left: 10px;
}
.hamburger { display: none; background: none; border: none; font-size: 24px; color: white; cursor: pointer; }

/* ================= HERO & BUTTONS ================= */
.hero { text-align: center; padding: 80px 0; background-color: var(--alt-bg); }
.hero h1 { font-size: 42px; margin-bottom: 20px; color: var(--text-main); }
.hero p { font-size: 18px; color: #555; max-width: 600px; margin: 0 auto 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; min-height: 48px; min-width: 120px;
  background-color: var(--primary-red); color: white;
  border: none; border-radius: 6px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: var(--transition); font-size: 16px;
}
.btn:hover { background-color: var(--hover-red); }
.btn-success { background-color: var(--success-green); }
.btn-success:hover { background-color: #219653; }
.btn-outline { background-color: transparent; border: 2px solid var(--primary-red); color: var(--primary-red); }
.btn-outline:hover { background-color: var(--primary-red); color: white; }
.btn-small { padding: 8px 16px; min-height: 36px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Animations */
.animate-float { animation: float 3s ease-in-out infinite; display: inline-block; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* ================= FEATURES ================= */
.features-section { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: var(--body-bg); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); text-align: center; transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.feature-icon { font-size: 40px; margin-bottom: 15px; display: block; }
.feature-card h3 { margin-bottom: 10px; color: var(--text-main); }

/* ================= HOW IT WORKS ================= */
.how-it-works { background: var(--alt-bg); padding: 60px 0; text-align: center; }
.how-it-works h2 { margin-bottom: 40px; }
.steps-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.step { flex: 1; min-width: 250px; }
.step-number { width: 40px; height: 40px; background: var(--primary-red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 15px; font-size: 20px; }

/* ================= INFO SECTIONS ================= */
.info-section { padding: 60px 0; }
.info-section h2 { text-align: center; margin-bottom: 30px; }
.comparison-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.comparison-table th, .comparison-table td { border: 1px solid var(--border-color); padding: 15px; text-align: left; }
.comparison-table th { background-color: var(--alt-bg); font-weight: 600; }
.info-content { max-width: 800px; margin: 0 auto; text-align: justify; }

/* ================= TRUST BADGES ================= */
.trust-badges { background-color: var(--primary-red); color: white; padding: 30px 0; }
.badges-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; font-weight: 600; font-size: 18px; }

/* ================= FAQ ACCORDION ================= */
.faq-section { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 40px; }
.faq-item { border: 1px solid var(--border-color); margin-bottom: 15px; border-radius: 6px; overflow: hidden; }
.faq-question { width: 100%; background: var(--alt-bg); border: none; padding: 20px; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); font-family: inherit;}
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; background: var(--body-bg); }
.faq-item.active .faq-answer { padding: 20px; max-height: 500px; overflow-y: auto; }

/* ================= CTA CARDS SECTIONS ================= */
.cta-section { padding: 60px 0; text-align: center; background: var(--alt-bg); }
.cta-grid { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.cta-card { display: block; padding: 40px; background: var(--body-bg); border: 2px solid var(--primary-red); border-radius: 8px; text-decoration: none; color: var(--text-main); font-weight: bold; font-size: 20px; transition: var(--transition); min-width: 300px; }
.cta-card:hover { background: var(--primary-red); color: white; }

/* ================= CONVERTER WIDGET ================= */
.converter-section { padding: 60px 0; flex: 1; }
.page-title { text-align: center; margin-bottom: 10px; }
.page-intro { text-align: center; color: #555; max-width: 700px; margin: 0 auto 40px; }
.converter-widget { background: var(--body-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; max-width: 800px; margin: 0 auto 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.drop-zone { border: 2px dashed var(--border-color); padding: 50px 20px; text-align: center; border-radius: 8px; cursor: pointer; transition: var(--transition); margin-bottom: 25px; position: relative; }
.drop-zone input[type="file"] { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.drop-zone.dragover { background: var(--alt-bg); border-color: var(--primary-red); }
.drop-zone-icon { font-size: 48px; color: #aaa; margin-bottom: 15px; display: inline-block; }
.drop-zone-text { font-size: 18px; color: #555; }
.drop-zone-subtext { font-size: 14px; color: #888; margin-top: 5px; }

.preview-section { display: none; text-align: center; margin-bottom: 25px; }
.preview-image { max-width: 100%; max-height: 300px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 10px; }
.file-info { font-weight: 500; color: #555; margin-bottom: 15px; }

.settings-section { margin-bottom: 25px; text-align: center; display: none; }
.quality-slider { width: 100%; max-width: 400px; margin: 15px auto; }
.slider-container { display: flex; align-items: center; gap: 15px; justify-content: center; }
/* Input Range */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--primary-red); cursor: pointer; margin-top: -8px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: var(--border-color); border-radius: 4px; }

.controls { text-align: center; margin-bottom: 20px; display: none; }
.progress-container { width: 100%; height: 10px; background: var(--border-color); border-radius: 5px; margin-bottom: 20px; overflow: hidden; display: none; }
.progress-bar { width: 0%; height: 100%; background: var(--primary-red); transition: width 0.3s; }

.output-section { display: none; border-top: 1px solid var(--border-color); padding-top: 25px; text-align: center; }
.output-info { margin-bottom: 20px; font-weight: bold; color: var(--success-green); }

/* Batch Conversion */
.batch-section { display: none; margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.batch-list { list-style: none; padding: 0; margin-bottom: 20px; }
.batch-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 10px; background: var(--alt-bg); flex-wrap: wrap; gap: 10px; }
.batch-item-info { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 200px; }
.batch-item-name { word-break: break-all; }
.batch-item-actions { display: flex; gap: 10px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; color: white; display: inline-block; white-space: nowrap; }
.badge-pending { background: #888; }
.badge-converting { background: #F2C94C; }
.badge-done { background: var(--success-green); }
.badge-error { background: var(--primary-red); }

/* Interactive Toasts */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;}
.toast { padding: 15px 25px; border-radius: 6px; color: white; font-weight: 500; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: slideInRight 0.3s forwards; pointer-events: auto; }
.toast.success { background-color: var(--success-green); }
.toast.error { background-color: var(--primary-red); }
.toast.info { background-color: #2D9CDB; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ================= AD SLOTS ================= */
.ad-slot { display: none; }

/* ================= CONTENT PAGES ================= */
.content-page { padding: 60px 0; max-width: 800px; margin: 0 auto; flex: 1; }
.content-page h1 { margin-bottom: 30px; font-size: 36px; }
.content-page h2 { margin: 40px 0 20px; font-size: 24px; }
.content-page h3 { margin: 25px 0 15px; font-size: 20px; }
.content-page p { margin-bottom: 20px; line-height: 1.8; }
.content-page ul, .content-page ol { margin-left: 20px; margin-bottom: 20px; line-height: 1.8; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; }
.form-control { padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; font-size: 16px; background: var(--body-bg); color: var(--text-main); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ================= FOOTER ================= */
.site-footer { background-color: var(--dark-header); color: #fff; padding: 60px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.footer-col p { color: #aaa; margin-bottom: 15px; font-size: 14px;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; color: #aaa; font-size: 14px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: #aaa; font-size: 20px; text-decoration: none; transition: var(--transition); }
.social-icons a:hover { color: white; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-header); flex-direction: column; padding: 20px; text-align: center; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
  .nav-links.active { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .batch-item { flex-direction: column; align-items: stretch; text-align: center; }
  .batch-item-info { flex-direction: column; align-items: center; justify-content: center; }
  .batch-item-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .drop-zone { padding: 30px 10px; }
  .content-page { padding: 40px 0; }
}
