/*
 Theme Name:   Top10AI Modern
 Theme URI:    https://top10ai.com
 Description:  Modern redesign child theme for Top10AI.com — premium AI tools review site
 Author:       Top10AI
 Author URI:   https://top10ai.com
 Template:     hello-elementor
 Version:      4.1.0
 License:      GNU General Public License v2 or later
 Text Domain:  top10ai-modern
*/

/* ==========================================================================
   1. CSS Custom Properties — Design Tokens
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #3C52EB;
  --color-primary-light: #EEF0FF;
  --color-primary-dark: #2A3BC7;
  --color-primary-rgb: 60, 82, 235;

  --color-bg: #FAFBFC;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-text-secondary: #6B7280;
  --color-text-muted: #9CA3AF;
  --color-border: #E5E7EB;

  --color-success: #10B981;
  --color-success-light: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-light: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-light: #FEF2F2;

  --color-footer-bg: #111827;
  --color-footer-text: #F9FAFB;
  --color-footer-muted: #9CA3AF;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.625rem;

  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 768px;
  --header-height: 72px;
}

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   2. Global Reset & Base Styles
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body, body.flavor-flavor, .flavor-flavor {
  font-family: var(--font-sans) !important;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0; padding: 0;
}

/* Elementor font: scoped to theme content only, not global Elementor widgets */
.t10-content .elementor-widget-text-editor,
.t10-content .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-sans);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

::selection { background-color: var(--color-primary); color: #fff; }

/* ==========================================================================
   3. Header — Sticky, Blur Backdrop
   ========================================================================== */

.site-header, header.site-header, #masthead, .elementor-location-header {
  position: sticky !important;
  top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), background var(--transition-base);
  height: auto; min-height: var(--header-height);
}

.site-header.scrolled, .elementor-location-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.95) !important;
}

.site-header .elementor-container,
.site-header > .elementor-section-wrap > .elementor-section > .elementor-container {
  max-width: var(--container-max) !important;
  margin: 0 auto; padding: 0 var(--space-6);
  display: flex; align-items: center;
  min-height: var(--header-height);
}

.site-header .site-branding img,
.site-header .elementor-widget-theme-site-logo img,
.site-header .elementor-widget-image img {
  height: 36px !important; width: auto !important; object-fit: contain;
}

.site-header nav a, .site-header .elementor-nav-menu a,
.site-header .elementor-widget-nav-menu a {
  font-size: var(--text-sm) !important;
  font-weight: var(--font-medium) !important;
  color: var(--color-text) !important;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-transform: none !important; letter-spacing: 0 !important;
}

.site-header nav a:hover, .site-header .elementor-nav-menu a:hover,
.site-header .elementor-widget-nav-menu a:hover {
  color: var(--color-primary) !important;
  background: var(--color-primary-light);
}

.site-header .sub-menu, .site-header .elementor-nav-menu--dropdown {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: var(--space-2) !important; min-width: 200px;
}

.site-header .sub-menu a:hover,
.site-header .elementor-nav-menu--dropdown a:hover {
  background: var(--color-primary-light) !important;
}

.site-header .elementor-menu-toggle {
  border: none !important; background: none !important; padding: var(--space-2);
}

.site-header .elementor-menu-toggle svg,
.site-header .elementor-menu-toggle i {
  color: var(--color-text) !important; font-size: 24px;
}

/* Header search */
.t10-header-search {
  position: relative; flex: 0 1 360px; margin: 0 var(--space-6);
}
.t10-header-search input {
  width: 100%;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-10);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-family: var(--font-sans);
  background: var(--color-bg); color: var(--color-text);
  transition: all var(--transition-fast); outline: none;
}
.t10-header-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
  background: var(--color-surface);
}
.t10-header-search::before {
  content: ''; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; pointer-events: none;
}

/* Header category pills */
.t10-header-pills { display: flex; gap: var(--space-2); align-items: center; }
.t10-header-pills a {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs); font-weight: var(--font-medium);
  color: var(--color-text-secondary); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  transition: all var(--transition-fast); white-space: nowrap;
}
.t10-header-pills a:hover {
  color: var(--color-primary); border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ==========================================================================
   4. Footer — Dark Theme
   ========================================================================== */

.site-footer, footer.site-footer, #colophon, .elementor-location-footer {
  background: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
  padding: var(--space-16) 0 var(--space-8) !important;
}

.site-footer .elementor-container {
  max-width: var(--container-max) !important;
  margin: 0 auto; padding: 0 var(--space-6);
}

.site-footer h3, .site-footer h4, .site-footer .elementor-heading-title {
  color: var(--color-footer-text) !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-semibold) !important;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: var(--space-4) !important;
}

.site-footer a {
  color: var(--color-footer-muted) !important;
  font-size: var(--text-sm); transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--color-footer-text) !important; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: var(--space-2); }

.t10-newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.t10-newsletter input[type="email"] {
  flex: 1; padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); color: var(--color-footer-text);
  font-size: var(--text-sm); font-family: var(--font-sans);
  outline: none; transition: border-color var(--transition-fast);
}
.t10-newsletter input[type="email"]::placeholder { color: var(--color-footer-muted); }
.t10-newsletter input[type="email"]:focus { border-color: var(--color-primary); }
.t10-newsletter button {
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary); color: #fff; border: none;
  border-radius: var(--radius-md); font-size: var(--text-sm);
  font-weight: var(--font-semibold); font-family: var(--font-sans);
  cursor: pointer; transition: background var(--transition-fast); white-space: nowrap;
}
.t10-newsletter button:hover { background: var(--color-primary-dark); }

.t10-footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-4);
}
.t10-footer-bottom p, .t10-footer-bottom span {
  color: var(--color-footer-muted); font-size: var(--text-xs); margin: 0;
}

.t10-footer-social { display: flex; gap: var(--space-3); }
.t10-footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); color: var(--color-footer-muted) !important;
  transition: all var(--transition-fast);
}
.t10-footer-social a:hover { background: var(--color-primary); color: #fff !important; }

.t10-affiliate-disclosure {
  text-align: center; padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs); color: var(--color-footer-muted);
  background: rgba(255,255,255,0.03); border-radius: var(--radius-md);
  margin-top: var(--space-6);
}

/* ==========================================================================
   5. Cards — Base Styles, Hover States
   ========================================================================== */

.t10-card, .elementor-post, .elementor-widget-posts .elementor-post {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) !important;
  overflow: hidden; transition: all var(--transition-base);
}
.t10-card:hover, .elementor-post:hover {
  box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px);
}

.t10-card__image, .elementor-post__thumbnail {
  aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.t10-card__image img, .elementor-post__thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.t10-card:hover .t10-card__image img, .elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.03);
}

.t10-card__content, .elementor-post__text { padding: var(--space-5) !important; }

.t10-card__badge {
  display: inline-block; padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs); font-weight: var(--font-semibold);
  color: var(--color-primary); background: var(--color-primary-light);
  border-radius: var(--radius-full); margin-bottom: var(--space-3);
}

.t10-card__title, .elementor-post__title {
  font-size: var(--text-lg) !important; font-weight: var(--font-bold) !important;
  color: var(--color-text) !important; line-height: var(--leading-tight);
  margin: 0 0 var(--space-2) !important;
}
.t10-card__title a, .elementor-post__title a { color: inherit !important; }
.t10-card__title a:hover, .elementor-post__title a:hover { color: var(--color-primary) !important; }

.t10-card__excerpt, .elementor-post__excerpt {
  font-size: var(--text-sm) !important; color: var(--color-text-secondary) !important;
  line-height: var(--leading-normal); margin: 0 !important;
}

.t10-card__meta, .elementor-post__meta-data {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.t10-card__meta-avatar { width: 28px; height: 28px; border-radius: var(--radius-full); object-fit: cover; }

/* Tool card */
.t10-tool-card {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: var(--space-4); align-items: center;
  padding: var(--space-5); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.t10-tool-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.t10-tool-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  object-fit: contain; background: var(--color-bg); padding: var(--space-1);
}
.t10-tool-card__info { min-width: 0; }
.t10-tool-card__name { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-text); margin: 0 0 var(--space-1); }
.t10-tool-card__desc { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t10-tool-card__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* Rating pill */
.t10-rating {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--color-primary); background: var(--color-primary-light);
  border-radius: var(--radius-full); white-space: nowrap;
}
.t10-rating--lg { padding: var(--space-2) var(--space-4); font-size: var(--text-base); }

.t10-price { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.t10-price--free { color: var(--color-success); font-weight: var(--font-semibold); }

/* ==========================================================================
   6. Tables — Styled Headers, Striped Rows
   ========================================================================== */

.entry-content table, .elementor-widget-text-editor table, .t10-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; margin: var(--space-6) 0; font-size: var(--text-sm);
}
.entry-content table thead th, .t10-table thead th {
  background: var(--color-primary) !important; color: #fff !important;
  font-weight: var(--font-semibold); padding: var(--space-3) var(--space-4);
  text-align: left; font-size: var(--text-sm); border: none !important;
}
.entry-content table tbody td, .t10-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border); color: var(--color-text);
}
.entry-content table tbody tr:last-child td, .t10-table tbody tr:last-child td { border-bottom: none; }
.entry-content table tbody tr:nth-child(even), .t10-table tbody tr:nth-child(even) { background: var(--color-bg); }
.entry-content table tbody tr:hover, .t10-table tbody tr:hover { background: var(--color-primary-light); }

/* ==========================================================================
   7. Buttons — Primary, Secondary, CTA
   ========================================================================== */

.t10-btn, .t10-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  font-family: var(--font-sans); color: #fff;
  background: var(--color-primary); border: none;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-fast); text-decoration: none;
  line-height: 1.5;
}
.t10-btn:hover, .t10-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.t10-btn:active { transform: translateY(0); }

.t10-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  font-family: var(--font-sans); color: var(--color-primary);
  background: var(--color-primary-light); border: 1px solid transparent;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-fast); text-decoration: none;
}
.t10-btn-secondary:hover { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }

.t10-btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); padding: var(--space-4) var(--space-8);
  font-size: var(--text-base); font-weight: var(--font-bold);
  font-family: var(--font-sans); color: #fff; background: var(--color-primary);
  border: none; border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-base); text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
}
.t10-btn-cta:hover {
  background: var(--color-primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4); color: #fff;
}
.t10-btn-cta::after { content: '\2192'; font-size: 1.1em; transition: transform var(--transition-fast); }
.t10-btn-cta:hover::after { transform: translateX(3px); }

.t10-btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2) 0; font-size: var(--text-sm);
  font-weight: var(--font-semibold); color: var(--color-primary);
  background: none; border: none; cursor: pointer;
  transition: color var(--transition-fast); text-decoration: none;
}
.t10-btn-ghost:hover { color: var(--color-primary-dark); }
.t10-btn-ghost::after { content: '\2192'; transition: transform var(--transition-fast); }
.t10-btn-ghost:hover::after { transform: translateX(3px); }

/* ==========================================================================
   8. Typography
   ========================================================================== */

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  color: var(--color-text); line-height: var(--leading-tight); font-weight: var(--font-bold); margin-top: 0;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--color-text); line-height: var(--leading-normal); margin: 0 0 var(--space-4); }

.entry-content, .elementor-widget-theme-post-content {
  max-width: var(--container-narrow); margin: 0 auto;
}

/* ==========================================================================
   9. Review Pages — Elementor CSS Overrides
   ========================================================================== */

.elementor-inner-section { border-radius: var(--radius-lg) !important; }
.elementor-widget-wrap { border-radius: var(--radius-lg); }

.elementor-section[data-settings] > .elementor-container {
  max-width: var(--container-max) !important; padding: 0 var(--space-6);
}

.elementor-widget-image img { border-radius: var(--radius-lg); }

.elementor-icon-list-items { gap: var(--space-2); }
.elementor-icon-list-item { padding: var(--space-2) 0 !important; }
.elementor-icon-list-icon i { color: var(--color-primary) !important; }
.elementor-icon-list-text { font-size: var(--text-sm) !important; color: var(--color-text-secondary) !important; }

.elementor-star-rating { color: var(--color-warning) !important; }
.elementor-divider-separator { border-color: var(--color-border) !important; }

.elementor-button-wrapper .elementor-button {
  padding: var(--space-4) var(--space-8) !important;
  font-size: var(--text-base) !important; border-radius: var(--radius-md) !important;
  font-weight: var(--font-bold) !important;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
  transition: all var(--transition-base) !important;
}
.elementor-button-wrapper .elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.35) !important;
}

.elementor-testimonial, .elementor-widget-testimonial {
  background: var(--color-surface) !important;
  border-left: 4px solid var(--color-primary) !important;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
  padding: var(--space-6) !important; box-shadow: var(--shadow-sm) !important;
}

.elementor-price-table {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important; overflow: hidden;
  transition: all var(--transition-base);
}
.elementor-price-table:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.elementor-price-table__header { background: var(--color-primary) !important; padding: var(--space-6) !important; }

.elementor-tab-title {
  font-family: var(--font-sans) !important; font-weight: var(--font-semibold) !important;
  font-size: var(--text-sm) !important; color: var(--color-text-secondary) !important;
  padding: var(--space-3) var(--space-5) !important; border: none !important;
  border-bottom: 2px solid transparent !important; transition: all var(--transition-fast);
}
.elementor-tab-title.elementor-active, .elementor-tab-title:hover {
  color: var(--color-primary) !important; border-bottom-color: var(--color-primary) !important;
}
.elementor-tab-content { padding: var(--space-6) !important; font-size: var(--text-sm); color: var(--color-text-secondary); }

.elementor-accordion-item {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important; margin-bottom: var(--space-3) !important; overflow: hidden;
}
.elementor-accordion-icon { color: var(--color-primary) !important; }
.elementor-alert { border-radius: var(--radius-lg) !important; border: none !important; padding: var(--space-4) var(--space-5) !important; }

/* ==========================================================================
   10. Blog Posts — Article Layout, Content Styling
   ========================================================================== */

.t10-article-header {
  max-width: var(--container-narrow); margin: 0 auto var(--space-8);
  padding: var(--space-8) var(--space-6) 0;
}
.t10-article-header__category {
  display: inline-block; padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs); font-weight: var(--font-semibold);
  color: var(--color-primary); background: var(--color-primary-light);
  border-radius: var(--radius-full); margin-bottom: var(--space-4);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.t10-article-header h1 {
  font-size: var(--text-4xl) !important; font-weight: var(--font-bold);
  color: var(--color-text); line-height: var(--leading-tight); margin: 0 0 var(--space-5);
}
.t10-article-header__meta {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6);
}
.t10-article-header__meta img { width: 36px; height: 36px; border-radius: var(--radius-full); object-fit: cover; }
.t10-article-header__meta-divider { width: 3px; height: 3px; border-radius: var(--radius-full); background: var(--color-text-muted); }

.t10-article-header__featured-image {
  border-radius: var(--radius-xl); overflow: hidden;
  margin: 0 auto var(--space-8); max-width: var(--container-max);
}
.t10-article-header__featured-image img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }

/* Table of Contents */
.t10-toc {
  position: sticky; top: calc(var(--header-height) + var(--space-6));
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  max-height: calc(100vh - var(--header-height) - var(--space-12)); overflow-y: auto;
}
.t10-toc__title {
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--color-text); margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border);
}
.t10-toc__list { list-style: none; padding: 0; margin: 0; }
.t10-toc__list li { margin-bottom: var(--space-1); }
.t10-toc__list a {
  display: block; padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-secondary);
  border-radius: var(--radius-sm); transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}
.t10-toc__list a:hover, .t10-toc__list a.active {
  color: var(--color-primary); background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

/* Content styling */
.t10-content h2 { font-size: var(--text-3xl) !important; margin: var(--space-10) 0 var(--space-4); padding-top: var(--space-4); }
.t10-content h3 { font-size: var(--text-2xl) !important; margin: var(--space-8) 0 var(--space-3); }
.t10-content p { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--color-text); margin: 0 0 var(--space-5); }
.t10-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(var(--color-primary-rgb), 0.3); transition: text-decoration-color var(--transition-fast); }
.t10-content a:hover { text-decoration-color: var(--color-primary); }
.t10-content img { border-radius: var(--radius-lg); margin: var(--space-6) 0; }
.t10-content ul, .t10-content ol { margin: 0 0 var(--space-5); padding-left: var(--space-6); }
.t10-content li { margin-bottom: var(--space-2); line-height: var(--leading-normal); color: var(--color-text); }

/* Blockquote */
.t10-content blockquote, .entry-content blockquote {
  border-left: 4px solid var(--color-primary) !important;
  background: var(--color-primary-light); margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-style: normal;
}
.t10-content blockquote p { font-size: var(--text-lg); color: var(--color-text); margin: 0; }

/* Verdict box */
.t10-verdict {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius-xl); padding: var(--space-8);
  margin: var(--space-8) 0; text-align: center;
}
.t10-verdict__score { font-size: 3rem; font-weight: var(--font-bold); line-height: 1; margin-bottom: var(--space-2); }
.t10-verdict__label { font-size: var(--text-sm); opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.t10-verdict__text { font-size: var(--text-lg); line-height: var(--leading-normal); max-width: 500px; margin: 0 auto var(--space-6); }
.t10-verdict .t10-btn-cta { background: #fff; color: var(--color-primary); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.t10-verdict .t10-btn-cta:hover { background: #f0f0f0; color: var(--color-primary-dark); }

/* Pros & Cons */
.t10-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: var(--space-6) 0; }
.t10-pros, .t10-cons { border-radius: var(--radius-lg); padding: var(--space-5); }
.t10-pros { background: var(--color-success-light); border: 1px solid rgba(16,185,129,0.2); }
.t10-cons { background: var(--color-danger-light); border: 1px solid rgba(239,68,68,0.2); }
.t10-pros__title, .t10-cons__title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); font-weight: var(--font-bold); margin: 0 0 var(--space-4); }
.t10-pros__title { color: #059669; }
.t10-cons__title { color: #DC2626; }
.t10-pros ul, .t10-cons ul { list-style: none; padding: 0; margin: 0; }
.t10-pros li, .t10-cons li { padding: var(--space-2) 0; padding-left: var(--space-6); position: relative; font-size: var(--text-sm); color: var(--color-text); line-height: var(--leading-normal); }
.t10-pros li::before { content: '\2713'; position: absolute; left: 0; color: var(--color-success); font-weight: var(--font-bold); }
.t10-cons li::before { content: '\2717'; position: absolute; left: 0; color: var(--color-danger); font-weight: var(--font-bold); }

/* Tip / Warning boxes */
.t10-tip, .t10-warning { border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; display: flex; gap: var(--space-3); align-items: flex-start; }
.t10-tip { background: var(--color-warning-light); border-left: 4px solid var(--color-warning); }
.t10-warning { background: var(--color-danger-light); border-left: 4px solid var(--color-danger); }
.t10-tip__icon, .t10-warning__icon { font-size: var(--text-xl); flex-shrink: 0; line-height: 1; margin-top: 2px; }
.t10-tip__content, .t10-warning__content { flex: 1; min-width: 0; }
.t10-tip__title, .t10-warning__title { font-size: var(--text-sm); font-weight: var(--font-bold); margin: 0 0 var(--space-1); }
.t10-tip__title { color: #92400E; }
.t10-warning__title { color: #991B1B; }
.t10-tip p, .t10-warning p { font-size: var(--text-sm); color: var(--color-text); margin: 0; line-height: var(--leading-normal); }

/* CTA in articles */
.t10-article-cta { text-align: center; margin: var(--space-8) 0; }

/* Ranked items */
.t10-ranked-item {
  display: flex; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  margin: var(--space-5) 0; transition: all var(--transition-base);
}
.t10-ranked-item:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.t10-rank-badge {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--color-primary); color: #fff;
  font-size: var(--text-lg); font-weight: var(--font-bold);
  border-radius: var(--radius-md); flex-shrink: 0;
}
.t10-rank-badge--gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.t10-rank-badge--silver { background: linear-gradient(135deg, #9CA3AF, #6B7280); }
.t10-rank-badge--bronze { background: linear-gradient(135deg, #D97706, #92400E); }

/* FAQ Accordion */
.t10-faq { margin: var(--space-8) 0; }
.t10-faq__title { font-size: var(--text-2xl); font-weight: var(--font-bold); margin: 0 0 var(--space-5); }
.t10-faq__item {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  margin-bottom: var(--space-3); overflow: hidden; transition: all var(--transition-fast);
}
.t10-faq__item:hover { border-color: var(--color-primary); }
.t10-faq__question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: var(--space-4) var(--space-5);
  font-size: var(--text-base); font-weight: var(--font-semibold);
  color: var(--color-text); background: var(--color-surface);
  border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); transition: background var(--transition-fast);
}
.t10-faq__question:hover { background: var(--color-bg); }
.t10-faq__icon {
  font-size: var(--text-xl); color: var(--color-primary);
  transition: transform var(--transition-base); flex-shrink: 0; margin-left: var(--space-4);
}
.t10-faq__item.active .t10-faq__icon { transform: rotate(45deg); }
.t10-faq__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow), padding var(--transition-slow); }
.t10-faq__item.active .t10-faq__answer { max-height: 500px; padding: 0 var(--space-5) var(--space-5); }
.t10-faq__answer p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin: 0; }

/* Related articles */
.t10-related { margin: var(--space-12) 0; padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.t10-related__title { font-size: var(--text-2xl); font-weight: var(--font-bold); margin: 0 0 var(--space-6); }
.t10-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

/* Author bio */
.t10-author { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-6); background: var(--color-bg); border-radius: var(--radius-xl); margin: var(--space-8) 0; }
.t10-author__avatar { width: 64px; height: 64px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0; }
.t10-author__name { font-size: var(--text-base); font-weight: var(--font-bold); color: var(--color-text); margin: 0 0 var(--space-1); }
.t10-author__role { font-size: var(--text-sm); color: var(--color-primary); margin: 0 0 var(--space-3); }
.t10-author__bio { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-normal); margin: 0; }

/* ==========================================================================
   11. Category Pages — Tool Grid, Filter Bar
   ========================================================================== */

.t10-category-header { text-align: center; padding: var(--space-12) var(--space-6); max-width: var(--container-max); margin: 0 auto; }
.t10-category-header h1 { font-size: var(--text-4xl) !important; margin: 0 0 var(--space-3); }
.t10-category-header p { font-size: var(--text-lg); color: var(--color-text-secondary); max-width: 600px; margin: 0 auto var(--space-4); }
.t10-category-header__count { font-size: var(--text-sm); color: var(--color-text-muted); }

.t10-filter-bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  margin: 0 auto var(--space-6); max-width: var(--container-max); flex-wrap: wrap;
}
.t10-filter-bar__label { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-text-secondary); white-space: nowrap; }
.t10-filter-bar__btn {
  padding: var(--space-2) var(--space-4); font-size: var(--text-sm);
  font-weight: var(--font-medium); color: var(--color-text-secondary);
  background: none; border: 1px solid transparent; border-radius: var(--radius-full);
  cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-sans); white-space: nowrap;
}
.t10-filter-bar__btn:hover { color: var(--color-primary); background: var(--color-primary-light); }
.t10-filter-bar__btn.active { color: var(--color-primary); background: var(--color-primary-light); border-color: var(--color-primary); font-weight: var(--font-semibold); }

.t10-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }

.page-template-default .elementor-section .elementor-container { max-width: var(--container-max) !important; }

.elementor-widget-image-box {
  background: var(--color-surface) !important; border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important; padding: var(--space-5) !important;
  transition: all var(--transition-base) !important;
}
.elementor-widget-image-box:hover { box-shadow: var(--shadow-md) !important; border-color: transparent !important; transform: translateY(-2px); }
.elementor-image-box-title { font-size: var(--text-lg) !important; font-weight: var(--font-bold) !important; margin-bottom: var(--space-2) !important; }
.elementor-image-box-description { font-size: var(--text-sm) !important; color: var(--color-text-secondary) !important; }

/* ==========================================================================
   12. Homepage Sections
   ========================================================================== */

.t10-hero { text-align: center; padding: var(--space-20) var(--space-6) var(--space-12); max-width: var(--container-max); margin: 0 auto; }
.t10-hero h1 { font-size: clamp(2rem, 5vw, var(--text-4xl)) !important; font-weight: var(--font-bold); line-height: var(--leading-tight); margin: 0 0 var(--space-5); max-width: 700px; margin-left: auto; margin-right: auto; }
.t10-hero__subtitle { font-size: var(--text-lg); color: var(--color-text-secondary); max-width: 500px; margin: 0 auto var(--space-8); }

.t10-hero-search { position: relative; max-width: 500px; margin: 0 auto var(--space-8); }
.t10-hero-search input {
  width: 100%; padding: var(--space-4) var(--space-6) var(--space-4) var(--space-12);
  border: 2px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-base); font-family: var(--font-sans);
  background: var(--color-surface); color: var(--color-text);
  transition: all var(--transition-fast); outline: none; box-shadow: var(--shadow-sm);
}
.t10-hero-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1); }
.t10-hero-search::before {
  content: ''; position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%); width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; pointer-events: none;
}

.t10-stats { display: flex; justify-content: center; gap: var(--space-8); flex-wrap: wrap; }
.t10-stat { text-align: center; }
.t10-stat__number { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-primary); display: block; }
.t10-stat__label { font-size: var(--text-sm); color: var(--color-text-muted); }

.t10-featured-row {
  display: flex; gap: var(--space-5); overflow-x: auto;
  padding: var(--space-2) var(--space-6) var(--space-8);
  max-width: var(--container-max); margin: 0 auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.t10-featured-row::-webkit-scrollbar { display: none; }
.t10-featured-row .t10-card { min-width: 280px; flex-shrink: 0; scroll-snap-align: start; }

.t10-bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto;
  gap: var(--space-5); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6) var(--space-12);
}
.t10-bento__item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: all var(--transition-base); position: relative; overflow: hidden; min-height: 200px;
}
.t10-bento__item:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.t10-bento__item--large { grid-column: span 2; grid-row: span 2; min-height: 400px; }
.t10-bento__item--medium { grid-column: span 2; }
.t10-bento__icon { font-size: 2.5rem; margin-bottom: var(--space-4); }
.t10-bento__title { font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--color-text); margin: 0 0 var(--space-2); }
.t10-bento__desc { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0 0 var(--space-4); }
.t10-bento__count { font-size: var(--text-xs); color: var(--color-text-muted); }

.t10-how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); max-width: var(--container-max); margin: 0 auto; padding: var(--space-12) var(--space-6); text-align: center; }
.t10-step { padding: var(--space-6); }
.t10-step__number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--color-primary-light); color: var(--color-primary); font-size: var(--text-xl); font-weight: var(--font-bold); border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.t10-step__title { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-text); margin: 0 0 var(--space-2); }
.t10-step__desc { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; }

.t10-trust { display: flex; justify-content: center; gap: var(--space-8); padding: var(--space-10) var(--space-6); flex-wrap: wrap; }
.t10-trust__badge { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.t10-trust__badge-icon { font-size: var(--text-2xl); color: var(--color-primary); }
.t10-trust__badge-text { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text); }

.t10-section-title { font-size: var(--text-3xl); font-weight: var(--font-bold); text-align: center; margin: 0 0 var(--space-2); }
.t10-section-subtitle { font-size: var(--text-base); color: var(--color-text-secondary); text-align: center; margin: 0 0 var(--space-8); }

/* ==========================================================================
   13. Blog Index
   ========================================================================== */

.t10-blog-hero { text-align: center; padding: var(--space-12) var(--space-6) var(--space-6); max-width: var(--container-max); margin: 0 auto; }

.t10-category-pills { display: flex; justify-content: center; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-6) auto; max-width: var(--container-max); padding: 0 var(--space-6); }
.t10-category-pill {
  padding: var(--space-2) var(--space-4); font-size: var(--text-sm);
  font-weight: var(--font-medium); color: var(--color-text-secondary);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--transition-fast); text-decoration: none; font-family: var(--font-sans);
}
.t10-category-pill:hover, .t10-category-pill.active {
  color: var(--color-primary); background: var(--color-primary-light); border-color: var(--color-primary);
}

.t10-featured-post { max-width: var(--container-max); margin: 0 auto var(--space-8); padding: 0 var(--space-6); }
.t10-featured-post .t10-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 320px; }
.t10-featured-post .t10-card__image { aspect-ratio: unset; border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important; }
.t10-featured-post .t10-card__content { display: flex; flex-direction: column; justify-content: center; padding: var(--space-8) !important; }
.t10-featured-post .t10-card__title { font-size: var(--text-2xl) !important; }

.t10-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6) var(--space-12); }
.t10-load-more { text-align: center; padding: var(--space-8) var(--space-6); }

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --text-4xl: 2rem; --text-3xl: 1.5rem; }
  .t10-bento { grid-template-columns: repeat(2, 1fr); }
  .t10-bento__item--large { grid-row: span 1; min-height: 250px; }
  .t10-tools-grid, .t10-blog-grid, .t10-related__grid { grid-template-columns: repeat(2, 1fr); }
  .t10-pros-cons { grid-template-columns: 1fr 1fr; }
  .t10-featured-post .t10-card { grid-template-columns: 1fr; }
  .t10-featured-post .t10-card__image { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; aspect-ratio: 2/1; }
  .t10-toc { position: static; max-height: none; margin-bottom: var(--space-6); }
}

@media (max-width: 768px) {
  :root { --text-4xl: 1.75rem; --text-3xl: 1.375rem; --text-2xl: 1.25rem; --header-height: 60px; }
  body { font-size: var(--text-sm); }
  .t10-header-search, .t10-header-pills { display: none; }
  .site-header .elementor-nav-menu--dropdown {
    position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 280px !important; max-width: 80vw;
    background: var(--color-surface) !important; box-shadow: var(--shadow-xl) !important;
    border-radius: 0 !important; padding: var(--space-16) var(--space-6) var(--space-6) !important;
    overflow-y: auto; z-index: 10000;
  }
  .t10-hero { padding: var(--space-10) var(--space-4) var(--space-8); }
  .t10-bento { grid-template-columns: 1fr; padding: 0 var(--space-4) var(--space-8); }
  .t10-bento__item--large, .t10-bento__item--medium { grid-column: span 1; min-height: 200px; }
  .t10-tools-grid, .t10-blog-grid, .t10-related__grid { grid-template-columns: 1fr; padding: 0 var(--space-4) var(--space-8); }
  .t10-how-it-works { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-8) var(--space-4); }
  .t10-pros-cons { grid-template-columns: 1fr; }
  .t10-trust { gap: var(--space-4); padding: var(--space-6) var(--space-4); }
  .t10-trust__badge { flex: 1; min-width: 140px; justify-content: center; }
  .t10-stats { gap: var(--space-5); }
  .t10-filter-bar { border-radius: var(--radius-lg); padding: var(--space-3); margin: 0 var(--space-4) var(--space-5); }
  .t10-tool-card { grid-template-columns: 40px 1fr; gap: var(--space-3); }
  .t10-tool-card__actions { grid-column: 1 / -1; justify-content: stretch; }
  .t10-tool-card__actions .t10-btn-cta { flex: 1; text-align: center; }
  .t10-article-header { padding: var(--space-5) var(--space-4) 0; }
  .t10-article-header h1 { font-size: var(--text-3xl) !important; }
  .t10-author { flex-direction: column; align-items: center; text-align: center; }
  .t10-category-header { padding: var(--space-8) var(--space-4); }
  .t10-footer-bottom { flex-direction: column; text-align: center; }
  .t10-ranked-item { flex-direction: column; align-items: stretch; }
  .t10-rank-badge { width: 32px; height: 32px; font-size: var(--text-base); }
}

@media (max-width: 480px) {
  :root { --text-4xl: 1.5rem; --text-3xl: 1.25rem; }
  .t10-hero-search input { padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10); font-size: var(--text-sm); }
  .t10-stats { flex-direction: column; gap: var(--space-3); }
}

/* ==========================================================================
   15. Animations & Utilities
   ========================================================================== */

.t10-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.t10-animate.visible { opacity: 1; transform: translateY(0); }

.t10-stagger > * { opacity: 0; transform: translateY(15px); transition: opacity 0.4s ease, transform 0.4s ease; }
.t10-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.t10-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.t10-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.t10-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.t10-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.t10-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

.t10-skeleton {
  background: linear-gradient(90deg, var(--color-bg) 25%, var(--color-border) 50%, var(--color-bg) 75%);
  background-size: 200% 100%; animation: t10-shimmer 1.5s infinite; border-radius: var(--radius-md);
}
@keyframes t10-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@keyframes t10-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.t10-pulse { animation: t10-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

:target { scroll-margin-top: calc(var(--header-height) + var(--space-6)); }

*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .t10-animate, .t10-stagger > * { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .t10-toc, .t10-filter-bar, .t10-newsletter { display: none !important; }
  body { background: #fff; color: #000; }
  .t10-card, .t10-tool-card, .t10-ranked-item { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ==========================================================================
   16. Language Switcher Dropdown (fixed top-right, build-coded style)
   ========================================================================== */

/* Hide sticky CTA buttons */
.all-articles-cta {
  display: none !important;
}

.t10-lang-dropdown {
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 99999;
}

button.t10-lang-btn,
button.t10-lang-btn:hover,
button.t10-lang-btn:focus,
button.t10-lang-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: var(--font-sans) !important;
  color: #4B5563 !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  transition: all 0.15s !important;
  min-height: auto !important;
  height: auto !important;
  width: auto !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

button.t10-lang-btn:hover {
  border-color: #3C52EB !important;
  color: #3C52EB !important;
  background: #fff !important;
}

.t10-lang-chev {
  transition: transform 0.2s;
}

.t10-lang-open .t10-lang-chev {
  transform: rotate(180deg);
}

.t10-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  max-height: 350px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px;
}

.t10-lang-open .t10-lang-menu {
  display: block;
}

.t10-lang-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: #6B7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.12s;
}

.t10-lang-item:hover {
  color: #3C52EB;
  background: #EEF0FF;
}

.t10-lang-item-active {
  color: #3C52EB;
  background: #EEF0FF;
  font-weight: 600;
}

@media (max-width: 768px) {
  .t10-lang-dropdown {
    top: 10px;
    right: 50px;
  }
  .t10-lang-label {
    display: none;
  }
  .t10-lang-btn {
    padding: 7px 10px;
  }
}

/* ==========================================================================
   17. RTL Support (Arabic)
   ========================================================================== */

[dir="rtl"] body,
[dir="rtl"] body.flavor-flavor,
[dir="rtl"] .flavor-flavor {
  font-family: 'Noto Sans Arabic', var(--font-sans) !important;
}

[dir="rtl"] .t10-lang-panel {
  right: auto;
  left: 0;
}

[dir="rtl"] .t10-toc {
  border-left: none;
}

[dir="rtl"] .t10-toc__list a {
  border-left: none;
  border-right: 2px solid transparent;
}

[dir="rtl"] .t10-toc__list a:hover,
[dir="rtl"] .t10-toc__list a.active {
  border-left-color: transparent;
  border-right-color: var(--color-primary);
}

[dir="rtl"] .t10-tip,
[dir="rtl"] .t10-warning {
  border-left: none;
  border-right: 4px solid;
}

[dir="rtl"] .t10-tip {
  border-right-color: var(--color-warning);
}

[dir="rtl"] .t10-warning {
  border-right-color: var(--color-danger);
}

[dir="rtl"] .t10-content blockquote,
[dir="rtl"] .entry-content blockquote {
  border-left: none !important;
  border-right: 4px solid var(--color-primary) !important;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

[dir="rtl"] .t10-pros li,
[dir="rtl"] .t10-cons li {
  padding-left: 0;
  padding-right: var(--space-6);
}

[dir="rtl"] .t10-pros li::before,
[dir="rtl"] .t10-cons li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .t10-faq__icon {
  margin-left: 0;
  margin-right: var(--space-4);
}

[dir="rtl"] .t10-btn-cta::after,
[dir="rtl"] .t10-btn-ghost::after {
  content: '\2190';
}

[dir="rtl"] .t10-btn-cta:hover::after,
[dir="rtl"] .t10-btn-ghost:hover::after {
  transform: translateX(-3px);
}
