/* SnapDownloadHub — Main Stylesheet */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #DC2626;
  --red-light: #FEF2F2;
  --red-dark: #B91C1C;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --blue-dark: #1D4ED8;
  --green: #10B981;
  --green-light: #ECFDF5;
  --green-dark: #059669;
  --text: #111827;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-gray: #F9FAFB;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --t: 0.2s ease;
  --max: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
button, input, textarea, select { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: all var(--t);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; height: 64px; gap: 1.5rem; position: relative;
}
.logo { font-size: 1.35rem; font-weight: 800; white-space: nowrap; letter-spacing: -0.025em; flex-shrink: 0; }
.logo-snap { color: var(--red); }
.logo-download { color: var(--blue); }

.nav-links {
  display: flex; align-items: center; gap: 0.15rem; margin-left: auto; flex-wrap: wrap;
}
.nav-links > li > a {
  padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all var(--t);
  display: block;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--blue); background: var(--blue-light); }
.nav-cta-btn { background: var(--red) !important; color: #fff !important; font-weight: 600 !important; }
.nav-cta-btn:hover { background: var(--red-dark) !important; }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 240px; padding: 0.5rem; z-index: 300;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text); transition: all var(--t);
}
.dropdown-menu a:hover { background: var(--bg-gray); color: var(--blue); }
.dropdown-menu .tool-icon-sm {
  width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 0.5rem; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === AD SLOTS === */
.ad-slot { text-align: center; overflow: hidden; }
.ad-placeholder {
  background: var(--bg-gray); border: 2px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.25rem;
  color: var(--text-secondary); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.ad-leaderboard .ad-placeholder { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-rectangle .ad-placeholder { height: 250px; max-width: 300px; margin: 0 auto; }
.ad-sidebar .ad-placeholder { height: 600px; max-width: 160px; }
.ad-banner-section { padding: 0.75rem 0; background: var(--bg-gray); border-bottom: 1px solid var(--border); }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #FAFAFA 40%, #FEF2F2 100%);
  padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -8%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; left: -4%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent-red { color: var(--red); }
.hero h1 .accent-blue { color: var(--blue); }
.hero p.lead { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* === SECTION COMMON === */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: #111827; color: #fff; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--red); margin-bottom: 0.5rem;
}

/* === TOOL CARDS (HOME) === */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all var(--t); position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.tool-card.red::before { background: var(--red); }
.tool-card.blue::before { background: var(--blue); }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: transparent; }
.tool-icon-lg {
  width: 64px; height: 64px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.9rem; margin-bottom: 1.25rem;
}
.tool-icon-lg.red { background: var(--red-light); }
.tool-icon-lg.blue { background: var(--blue-light); }
.tool-card h3 { margin-bottom: 0.5rem; }
.tool-card > p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 0.92rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tool-tag {
  padding: 0.2rem 0.6rem; background: var(--bg-gray); border-radius: 999px;
  font-size: 0.72rem; color: var(--text-secondary); font-weight: 500;
}

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.feature-card {
  text-align: center; padding: 1.75rem 1.25rem; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--t);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 2.25rem; margin-bottom: 0.875rem; display: block; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-secondary); }

/* === HOW IT WORKS === */
.how-tabs { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.how-tab {
  padding: 0.6rem 1.5rem; border-radius: 999px; border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.875rem;
  transition: all var(--t); color: var(--text-secondary);
}
.how-tab.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.how-panel { display: none; }
.how-panel.active { display: block; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 1.25rem; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto 1rem; color: #fff; position: relative;
}
.step-num.red { background: var(--red); }
.step-num.blue { background: var(--blue); }
.step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.82rem; color: var(--text-secondary); }

/* === WHY SECTION === */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 1.25rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 30px; height: 30px; min-width: 30px; background: var(--green-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--green);
  font-size: 0.85rem; font-weight: 700; margin-top: 2px;
}
.why-item h4 { font-size: 0.975rem; margin-bottom: 0.2rem; }
.why-item p { font-size: 0.85rem; color: var(--text-secondary); }
.why-visual {
  background: linear-gradient(135deg, var(--blue-light), var(--red-light));
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.why-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.why-stat {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
  text-align: center;
}
.why-stat-num { font-size: 2rem; font-weight: 800; }
.why-stat-num.red { color: var(--red); }
.why-stat-num.blue { color: var(--blue); }
.why-stat-num.green { color: var(--green); }
.why-stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.875rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  transition: background var(--t); gap: 1rem;
}
.faq-q:hover { background: var(--bg-gray); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all var(--t); line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue-light); color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 1.5rem 1.2rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* === SEO CONTENT BLOCK === */
.seo-block {
  background: var(--bg-gray); border-radius: var(--radius-lg); padding: 3rem;
  max-width: 900px; margin: 0 auto;
}
.seo-block h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.seo-block h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.1rem; color: var(--blue); }
.seo-block p { color: var(--text-secondary); margin-bottom: 0.875rem; font-size: 0.92rem; line-height: 1.75; }
.seo-block ul { padding-left: 1.5rem; list-style: disc; }
.seo-block ul li { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 0.4rem; line-height: 1.6; }

/* === TOOL PAGES === */
.tool-hero { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.tool-hero.blue-hero { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.tool-hero.red-hero { background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%); }
.tool-hero .badge-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.875rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.875rem;
}
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }
.tool-hero h1 { margin-bottom: 0.75rem; }
.tool-hero p { color: var(--text-secondary); font-size: 1rem; max-width: 540px; }

.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.tool-layout.full { grid-template-columns: 1fr; }

.tool-wrapper {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow);
}

/* URL Input (Thumbnail Tool) */
.url-input-group { display: flex; gap: 0.75rem; }
.url-input {
  flex: 1; min-width: 0; padding: 0.875rem 1.25rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.975rem; transition: border-color var(--t);
  color: var(--text); background: #fff;
}
.url-input:focus { outline: none; border-color: var(--red); }
.url-input::placeholder { color: #9CA3AF; }
.error-msg {
  display: none; color: var(--red); font-size: 0.875rem; margin-top: 0.75rem; padding: 0.75rem 1rem;
  background: var(--red-light); border-radius: var(--radius-sm); border-left: 3px solid var(--red);
}
.error-msg.show { display: flex; align-items: center; gap: 0.5rem; }

.thumbnails-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.thumb-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--t); }
.thumb-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.thumb-img-wrap { aspect-ratio: 16/9; background: #0a0a0a; overflow: hidden; position: relative; }
.thumb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-unavailable {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: #555; font-size: 0.78rem; flex-direction: column; gap: 0.5rem; padding: 1rem;
}
.thumb-info { padding: 0.875rem; }
.thumb-label { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.15rem; }
.thumb-dims { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.thumb-info .btn { width: 100%; }

.thumb-loading { text-align: center; padding: 3rem 0; color: var(--text-secondary); }
.thumb-loading .spinner-large {
  width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--red);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}

/* Image Compressor Tool */
.dropzone {
  border: 3px dashed var(--border); border-radius: var(--radius-lg); padding: 3rem 2rem;
  text-align: center; cursor: pointer; transition: all var(--t); background: var(--bg-gray);
  position: relative;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--blue); background: var(--blue-light); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone-icon { font-size: 3rem; margin-bottom: 0.875rem; }
.dropzone h3 { margin-bottom: 0.4rem; }
.dropzone p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.25rem; }
.dropzone .file-types { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.file-type-badge {
  padding: 0.2rem 0.6rem; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);
}

.compress-controls {
  background: var(--bg-gray); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: center;
}
.ctrl-group { display: flex; flex-direction: column; gap: 0.4rem; }
.ctrl-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.slider-row { display: flex; align-items: center; gap: 0.75rem; }
.quality-slider {
  flex: 1; appearance: none; height: 6px; background: var(--border); border-radius: 3px;
  outline: none; cursor: pointer;
}
.quality-slider::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; background: var(--blue); border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.quality-val { font-weight: 700; color: var(--blue); min-width: 36px; text-align: right; font-size: 0.9rem; }
.format-select {
  padding: 0.5rem 0.875rem; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.875rem; background: #fff; cursor: pointer; color: var(--text);
}
.format-select:focus { outline: none; border-color: var(--blue); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.results-summary { font-size: 0.875rem; color: var(--text-secondary); }
.results-summary strong { color: var(--green); font-weight: 700; }
.results-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.img-results { display: flex; flex-direction: column; gap: 0.875rem; }
.img-result-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem;
  background: #fff; transition: all var(--t);
}
.img-result-card:hover { box-shadow: var(--shadow); }
.result-thumb {
  width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm);
  background: var(--bg-gray);
}
.result-name {
  font-weight: 600; font-size: 0.875rem; margin-bottom: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px;
}
.result-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; flex-wrap: wrap; }
.result-orig { color: var(--text-secondary); }
.result-arrow { color: var(--border); }
.result-comp { font-weight: 700; color: var(--green); }
.saving-pill {
  display: inline-block; padding: 0.1rem 0.45rem; background: var(--green-light);
  color: var(--green); border-radius: 999px; font-size: 0.7rem; font-weight: 700;
}
.progress-track { height: 3px; background: var(--bg-gray); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 2px; transition: width 0.3s; }
.result-btns { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: all var(--t); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-img {
  height: 190px; display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.blog-img.blue { background: linear-gradient(135deg, var(--blue-light), #BFDBFE); }
.blog-img.red { background: linear-gradient(135deg, var(--red-light), #FECACA); }
.blog-img.green { background: linear-gradient(135deg, var(--green-light), #A7F3D0); }
.blog-img.purple { background: linear-gradient(135deg, #F5F3FF, #DDD6FE); }
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.blog-meta .dot { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.blog-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 0.3rem; }
.blog-link:hover { text-decoration: underline; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.contact-info-block h3 { margin-bottom: 0.875rem; font-size: 1.2rem; }
.contact-info-block > p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.75rem; }
.contact-item { display: flex; gap: 0.875rem; align-items: flex-start; margin-bottom: 1.25rem; }
.ci-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.ci-icon.red { background: var(--red-light); }
.contact-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.1rem; }
.contact-item p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.925rem; transition: border-color var(--t); color: var(--text); background: #fff;
}
.form-input:focus { outline: none; border-color: var(--blue); }
textarea.form-input { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success { display: none; padding: 1rem; background: var(--green-light); border-radius: var(--radius-sm); color: var(--green); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; border-left: 3px solid var(--green); }
.form-success.show { display: flex; align-items: center; gap: 0.5rem; }

/* === PAGE HERO (non-tool pages) === */
.page-hero { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-secondary); font-size: 1rem; }

/* === BREADCRUMB === */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.75rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--border); user-select: none; }

/* === LEGAL PAGES === */
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal-wrap h2 { margin-top: 2.5rem; margin-bottom: 0.875rem; font-size: 1.3rem; color: var(--text); padding-top: 2.5rem; border-top: 1px solid var(--border); }
.legal-wrap h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-wrap h3 { margin-top: 1.5rem; margin-bottom: 0.6rem; font-size: 1.05rem; }
.legal-wrap p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.75; font-size: 0.92rem; }
.legal-wrap ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.legal-wrap ul li { color: var(--text-secondary); margin-bottom: 0.4rem; line-height: 1.6; font-size: 0.92rem; }
.legal-date { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* === FOOTER === */
.footer { background: #0F172A; color: #94A3B8; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-size: 1.35rem; }
.footer-brand > p { margin-top: 0.875rem; font-size: 0.82rem; line-height: 1.7; color: #64748B; max-width: 260px; }
.footer-col h4 { color: #F1F5F9; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: #64748B; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-divider { border-top: 1px solid #1E293B; margin-bottom: 2rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: #64748B; }
.footer-bottom-links a:hover { color: #fff; }

/* === TOAST === */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: #1F2937; color: #fff;
  padding: 0.875rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem;
  box-shadow: var(--shadow-xl); z-index: 9999; transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease; max-width: 320px; display: flex; align-items: center; gap: 0.5rem;
  border-left: 3px solid #fff;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); border-color: var(--green-dark); }
.toast.error { background: var(--red); border-color: var(--red-dark); }

/* === SPINNER === */
.spinner {
  width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === SIDEBAR AD LAYOUT === */
.page-layout-with-sidebar { display: grid; grid-template-columns: 1fr 180px; gap: 2rem; align-items: start; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .page-layout-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem;
    box-shadow: var(--shadow); gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; background: var(--bg-gray); border-radius: var(--radius-sm); padding-left: 0.75rem; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .hero-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .tool-wrapper { padding: 1.5rem; }
  .url-input-group { flex-direction: column; }
  .url-input-group .btn { width: 100%; }
  .compress-controls { grid-template-columns: 1fr; }
  .img-result-card { grid-template-columns: 60px 1fr; }
  .result-btns { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .seo-block { padding: 2rem 1.5rem; }
  .why-visual { display: none; }
  .how-tabs { gap: 0.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .thumbnails-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .tool-wrapper { padding: 1.25rem; }
  .contact-form-card { padding: 1.5rem; }
}
