/* ═══════════════════════════════════════════
   TOOLORA P4 — SEO Pro Styles
═══════════════════════════════════════════ */

/* ── Language Switcher ──────────────────── */
.tlr4-lang-switcher {
  position: relative;
  display: inline-block;
  margin: 12px 28px;
}
.tlr4-lang-current {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text2);
  padding: 7px 14px; border-radius: 50px;
  font-size: .85rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tlr4-lang-current:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
  border-color: var(--primary);
}
.tlr4-lang-dropdown {
  display: none;
  position: absolute; top: 110%; left: 0; z-index: 200;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
}
.tlr4-lang-dropdown.open { display: block; }
.tlr4-lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: .88rem; font-weight: 600;
  color: var(--text2); text-decoration: none;
  transition: background .15s, color .15s;
}
.tlr4-lang-item:hover { background: var(--hover-bg); color: var(--hover-text); }
.tlr4-lang-active { color: var(--primary) !important; background: rgba(108,99,255,.07); }

/* ── Comparison Table ───────────────────── */
.tlr4-comparison { max-width: 860px; margin: 0 auto; }
.tlr4-comp-hero {
  text-align: center; padding: 32px 20px 24px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tlr4-comp-title { font-size: 1.6rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.tlr4-comp-sub   { font-size: .95rem; color: var(--text2); }

.tlr4-comp-table {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.tlr4-comp-header {
  display: grid; grid-template-columns: 2fr 1.5fr 1.5fr;
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
}
.tlr4-comp-row {
  display: grid; grid-template-columns: 2fr 1.5fr 1.5fr;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.tlr4-comp-row:last-child { border-bottom: none; }
.tlr4-comp-row:hover { background: var(--hover-bg); }
.tlr4-comp-cell {
  padding: 13px 16px; font-size: .88rem;
}
.tlr4-comp-feature { font-weight: 700; color: var(--text); }
.tlr4-comp-us   { color: var(--success); font-weight: 700; }
.tlr4-comp-them { color: var(--text3); }
.tlr4-comp-header .tlr4-comp-us   { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); }
.tlr4-comp-header .tlr4-comp-them { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); }
.tlr4-comp-header .tlr4-comp-feature { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); }

.tlr4-comp-verdict {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.tlr4-comp-verdict h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.tlr4-comp-verdict p  { font-size: .9rem; color: var(--text2); line-height: 1.7; }

/* ── Blog Grid ──────────────────────────── */
.tlr4-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; padding: 8px 0;
}
.tlr4-blog-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tlr4-blog-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.tlr4-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(108,99,255,.16);
  border-color: var(--primary);
  color: var(--text);
}
.tlr4-blog-card:hover::after { transform: scaleX(1); }
.tlr4-blog-icon  { font-size: 2rem; line-height: 1; }
.tlr4-blog-cat   { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); }
.tlr4-blog-title { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.tlr4-blog-excerpt { font-size: .82rem; color: var(--text2); line-height: 1.5; flex: 1; }
.tlr4-blog-read  { font-size: .78rem; font-weight: 800; color: var(--primary); margin-top: 6px; opacity: 0; transition: opacity .2s; }
.tlr4-blog-card:hover .tlr4-blog-read { opacity: 1; }

/* ── Embed box ──────────────────────────── */
.tlr4-embed-box {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.tlr4-embed-code {
  font-family: monospace; font-size: .82rem;
  background: var(--surface); color: var(--text);
  padding: 12px; border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all; line-height: 1.6;
  cursor: text; transition: border-color .2s;
}
.tlr4-embed-code:hover { border-color: var(--primary); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 600px) {
  .tlr4-comp-table  { font-size: .8rem; }
  .tlr4-comp-cell   { padding: 10px 10px; }
  .tlr4-blog-grid   { grid-template-columns: 1fr; }
  .tlr4-lang-switcher { margin: 10px 16px; }
}
