/* ═══════════════════════════════════════════════════════════════
   AK PRINT SEVA — Smart PDF Compressor & Side-by-Side Studio
   2-Column Layout · Live Preview Beside Upload · Single & Bulk
   ═══════════════════════════════════════════════════════════════ */

:root {
    --v-brand: #FF6B00;
    --v-brand-light: #FFA048;
    --v-brand-bg: rgba(255, 107, 0, 0.12);
    --v-blue: #3B82F6;
    --v-blue-light: #60A5FA;
    --v-blue-bg: rgba(59, 130, 246, 0.12);
    --v-green: #10B981;
    --v-green-light: #34D399;
    --v-green-bg: rgba(16, 185, 129, 0.12);
    --v-orange: #FF6B00;
    --v-orange-light: #FBBF24;
    --v-orange-bg: rgba(255, 107, 0, 0.12);
    --v-teal: #14B8A6;
    --v-bg: #F4F7FB;
    --v-surface: #FFFFFF;
    --v-border: #E2E8F0;
    --v-border-hover: #CBD5E1;
    --v-text-hi: #0F2744;
    --v-text-mid: #475569;
    --v-text-lo: #94A3B8;
    --v-radius: 14px;
    --v-radius-sm: 9px;
    --v-shadow: 0 4px 18px rgba(15, 39, 68, 0.06);
}

[data-theme="dark"] {
    --v-bg: #070D18;
    --v-surface: #0E1726;
    --v-border: rgba(255, 255, 255, 0.09);
    --v-border-hover: rgba(255, 255, 255, 0.2);
    --v-text-hi: #F8FAFC;
    --v-text-mid: #94A3B8;
    --v-text-lo: #64748B;
    --v-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.compressor-app-page {
    background: var(--v-bg);
    color: var(--v-text-hi);
    min-height: 85vh;
    padding-bottom: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ═══ HERO SECTION ═══ */
.compressor-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 20px;
    border-bottom: 1px solid var(--v-border);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
    text-align: center;
}
[data-theme="dark"] .compressor-hero {
    background: linear-gradient(180deg, rgba(14, 23, 38, 0.95) 0%, rgba(7, 13, 24, 0.98) 100%);
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; }
.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--v-brand) 0%, transparent 70%);
    top: -200px; left: -60px;
}
.shape-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--v-blue) 0%, transparent 70%);
    top: -150px; right: 5%;
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--v-brand-bg);
    border: 1px solid rgba(255, 107, 0, 0.35);
    padding: 5px 14px; border-radius: 50px;
    font-size: 0.76rem; font-weight: 800;
    color: var(--v-brand);
    margin-bottom: 12px;
}
.pill-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--v-green);
    box-shadow: 0 0 8px var(--v-green);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 900; color: var(--v-text-hi);
    line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 8px;
}
.hero-gradient-word {
    color: var(--v-brand);
    background: linear-gradient(135deg, #FF6B00 0%, #E85D04 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero-gradient-word {
    background: linear-gradient(135deg, #FBBF24 0%, #FB923C 50%, #FF6B00 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 0.88rem; color: var(--v-text-mid);
    line-height: 1.55; max-width: 680px; margin: 0 auto;
}

/* ═══ MAIN STUDIO CONTAINER ═══ */
.studio-main-container {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 20px;
}

/* ═══ SINGLE CENTERED WORKSPACE ═══ */
.studio-compress-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* COMPACT UPLOAD DROPZONE */
.upload-dropzone-compact {
    background: var(--v-surface);
    border: 2px dashed rgba(255, 107, 0, 0.45);
    border-radius: var(--v-radius);
    padding: 22px 24px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--v-shadow);
    transition: all 0.2s ease;
}
.upload-dropzone-compact:hover, .upload-dropzone-compact.dragover {
    border-color: var(--v-brand);
    background: var(--v-brand-bg);
    transform: translateY(-1px);
}
.upload-dropzone-compact input[type="file"] {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 5;
}

.udc-inner {
    display: flex; align-items: center; gap: 16px; position: relative; z-index: 2;
}
.udc-icon {
    font-size: 34px; flex-shrink: 0;
}
.udc-text { flex: 1; min-width: 0; }
.udc-text h3 { font-size: 1rem; font-weight: 800; color: var(--v-text-hi); margin: 0 0 3px; }
.udc-text p { font-size: 0.76rem; color: var(--v-text-mid); margin: 0; }

.btn-add-pdf-vibrant {
    background: linear-gradient(135deg, #FF6B00 0%, #E85D04 100%);
    color: #fff; font-size: 0.82rem; font-weight: 800; padding: 10px 18px;
    border-radius: 8px; border: none; cursor: pointer; display: inline-flex;
    align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35); pointer-events: none;
}

/* LIVE SIZE CARD */
.live-size-card {
    background: var(--v-surface); border: 1px solid var(--v-border);
    border-radius: var(--v-radius); padding: 18px 20px;
    box-shadow: var(--v-shadow);
}
.lsc-top-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.lsc-heading {
    display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 800; color: var(--v-text-hi);
}
.lsc-size-pill {
    font-family: 'JetBrains Mono', monospace; font-size: 1.15rem; font-weight: 900;
    color: var(--v-brand); background: var(--v-brand-bg);
    border: 1px solid rgba(255, 107, 0, 0.35); padding: 4px 14px; border-radius: 8px;
}

/* SLIDER WITH BUTTONS */
.slider-with-buttons {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.btn-step-control {
    background: var(--v-bg); border: 1px solid var(--v-border);
    color: var(--v-text-hi); font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; font-weight: 800;
    padding: 7px 12px; border-radius: 6px; cursor: pointer; flex-shrink: 0; transition: all 0.15s ease;
}
.btn-step-control:hover {
    background: var(--v-brand-bg); border-color: var(--v-brand); color: var(--v-brand);
}

.slider-track-wrap { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.custom-studio-slider {
    width: 100%; height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, var(--v-green), var(--v-brand) 50%, #EF4444);
    outline: none; -webkit-appearance: none; cursor: pointer;
}
.custom-studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 3px solid var(--v-brand);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.8); cursor: grab;
}
.slider-steps-text {
    display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; color: var(--v-text-lo); font-weight: 600;
}

/* QUICK PRESET ROW */
.quick-preset-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding-top: 12px; border-top: 1px solid var(--v-border);
}
.qpr-label { font-size: 0.76rem; font-weight: 700; color: var(--v-text-mid); }
.btn-quick-kb {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700;
    background: var(--v-bg); border: 1px solid var(--v-border);
    color: var(--v-text-hi); padding: 5px 10px; border-radius: 6px; cursor: pointer;
    transition: all 0.15s ease;
}
.btn-quick-kb:hover { border-color: var(--v-brand); color: var(--v-brand); }
.btn-quick-kb.active {
    background: var(--v-brand); border-color: var(--v-brand); color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

.direct-input-box {
    display: inline-flex; align-items: center; margin-left: auto;
    background: var(--v-bg); border: 1px solid var(--v-border);
    border-radius: 6px; padding: 3px 8px;
}
.direct-input-box input {
    width: 60px; background: transparent; border: none; color: var(--v-text-hi);
    font-family: 'JetBrains Mono', monospace; font-size: 0.80rem; font-weight: 800;
    outline: none; text-align: center;
}
.direct-input-box span { font-size: 0.70rem; color: var(--v-text-lo); font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* MASTER ACTION BAR */
.studio-action-bar {
    display: flex; align-items: center; gap: 12px;
}
.btn-master-action {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 0.94rem; padding: 13px 22px; border-radius: 10px;
    border: none; cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.btn-compress-all {
    background: linear-gradient(135deg, #FF6B00 0%, #E85D04 100%); color: #fff;
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.38);
}
.btn-compress-all:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-zip-download {
    background: linear-gradient(135deg, #10B981, #059669); color: #fff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.38);
}

.btn-clear-queue {
    background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444; width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
    transition: all 0.15s;
}
.btn-clear-queue:hover { background: rgba(239, 68, 68, 0.2); }

/* QUEUE LIST WRAP */
.studio-files-queue-wrap {
    background: var(--v-surface); border: 1px solid var(--v-border);
    border-radius: var(--v-radius); padding: 16px 18px;
    box-shadow: var(--v-shadow);
    max-height: 420px; overflow-y: auto;
}
.sfq-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.86rem; font-weight: 800; color: var(--v-text-hi); margin-bottom: 12px;
}
.sfq-header small { color: var(--v-text-lo); font-size: 0.72rem; font-weight: 500; }
.sfq-list { display: flex; flex-direction: column; gap: 10px; }

.sfq-card {
    background: var(--v-bg); border: 1px solid var(--v-border);
    border-radius: var(--v-radius-sm); padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; transition: all 0.15s ease;
}
.sfq-card:hover { border-color: var(--v-brand); }
.sfq-card.is-completed { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.04); }

.sfq-icon { font-size: 20px; flex-shrink: 0; }
.sfq-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sfq-name {
    font-size: 0.86rem; font-weight: 800; color: var(--v-text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sfq-meta {
    font-family: 'JetBrains Mono', monospace; font-size: 0.70rem; color: var(--v-text-mid);
}
.sfq-res-text {
    font-family: 'JetBrains Mono', monospace; font-size: 0.80rem; font-weight: 800; color: var(--v-green);
}

.btn-sfq-down {
    background: linear-gradient(135deg, #10B981, #059669); color: #fff; font-size: 0.76rem; font-weight: 800;
    padding: 6px 14px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35); transition: all 0.15s ease;
}
.btn-sfq-down:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sfq-del {
    background: transparent; border: none; color: var(--v-text-lo); font-size: 13px; cursor: pointer; padding: 4px 6px;
}
.btn-sfq-del:hover { color: #ef4444; }

/* 🌟 HIGH-RANKING GOOGLE SEO SECTION */
.seo-guide-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--v-border);
}
.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.seo-feat-card {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--v-shadow);
  transition: transform 0.2s ease;
}
.seo-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--v-brand);
}
.sfc-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.sfc-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--v-text-hi);
  margin-bottom: 4px;
}
.sfc-desc {
  font-size: 0.74rem;
  color: var(--v-text-mid);
  line-height: 1.4;
}

.seo-article-block {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 24px;
  box-shadow: var(--v-shadow);
}
.seo-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--v-text-hi);
  margin-bottom: 10px;
}
.seo-article-block p {
  font-size: 0.84rem;
  color: var(--v-text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.seo-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--v-text-hi);
  margin: 20px 0 12px;
}
.seo-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.faq-item {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 8px;
  padding: 12px 14px;
}
.faq-q {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--v-text-hi);
  margin-bottom: 4px;
}
.faq-a {
  font-size: 0.76rem;
  color: var(--v-text-mid);
  line-height: 1.45;
  margin: 0;
}

/* 🏷️ SEO TAGS CLOUD */
.seo-tags-cloud-wrap {
  border-top: 1px solid var(--v-border);
  padding-top: 16px;
  margin-top: 20px;
}
.seo-tags-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--v-text-hi);
  margin-bottom: 10px;
}
.seo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-tag {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  color: var(--v-text-mid);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  transition: all 0.15s ease;
}
.seo-tag:hover {
  background: var(--v-brand-bg);
  color: var(--v-brand);
  border-color: var(--v-brand);
}

/* ═══ TOAST ═══ */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; max-width: 320px;
}
.toast {
    background: #0f172a; border: 1px solid var(--v-border); border-radius: 8px;
    padding: 9px 12px; font-size: 0.76rem; color: #fff; display: flex;
    align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.toast-success { border-left: 3px solid var(--v-green); }
.toast-error { border-left: 3px solid #f87171; }
.toast-info { border-left: 3px solid var(--v-blue); }

.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .studio-2col-layout { grid-template-columns: 1fr; }
    .studio-right-deck { position: static; }
    .pdk-canvas-viewport { min-height: 350px; }
    .seo-features-grid { grid-template-columns: 1fr 1fr; }
    .seo-faq-grid { grid-template-columns: 1fr; }
}
