/*
Theme Name: Toolora
Theme URI: https://toptrendy.org
Description: Top Trendy AI Tools — Premium, 2026 Electric Orange & Sunset Amber AI Tool Discovery & Authority theme for toptrendy.org.
Version: 1.3.0
Author: Top Trendy AI Engineering Team
Author URI: https://toptrendy.org
Text Domain: toolora
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ----------------------------------------------------
   1. ELECTRIC SUNSET ORANGE DESIGN TOKENS
---------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Dark: Obsidian Noir & Electric Sunset Orange */
  --background: #09090c;
  --foreground: #f4f4f5;
  --card: #121216;
  --card-subtle: #18181f;
  --card-border: #23232c;
  --card-hover-border: #f97316;
  --card-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  
  /* Electric Orange Gradient & Accent Tokens */
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #f97316 50%, #fb923c 100%);
  --primary-glow: rgba(249, 115, 22, 0.38);
  --accent: #fb923c;
  --orange-light: #fdba74;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --muted: #71717a;
  --muted-foreground: #a1a1aa;
  --border: #22222a;
  --input-bg: #0c0c10;
  --table-header: rgba(255, 255, 255, 0.03);
  --table-row-hover: rgba(255, 255, 255, 0.02);
  --header-bg: rgba(9, 9, 12, 0.88);
  --footer-bg: #050507;
  --radius: 0.85rem;
  --radius-lg: 1.15rem;
}

[data-theme="light"] {
  /* Light: Warm Titanium & Vivid Sunset Orange */
  --background: #fafafa;
  --foreground: #09090b;
  --card: #ffffff;
  --card-subtle: #f4f4f5;
  --card-border: #e4e4e7;
  --card-hover-border: #ea580c;
  --card-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  
  /* Electric Orange Gradient & Accent Tokens */
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #fb923c 100%);
  --primary-glow: rgba(234, 88, 12, 0.28);
  --accent: #f97316;
  --orange-light: #fed7aa;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  
  --muted: #a1a1aa;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --input-bg: #ffffff;
  --table-header: #f4f4f5;
  --table-row-hover: #fafafa;
  --header-bg: rgba(250, 250, 250, 0.92);
  --footer-bg: #09090b;
  --radius: 0.85rem;
  --radius-lg: 1.15rem;
}

/* ----------------------------------------------------
   2. GLOBAL BASE STYLES & TYPOGRAPHY
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------------
   3. HEADER & NAVIGATION
---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo .logo-bolt {
  font-size: 1.35rem;
}

.brand-logo .logo-text {
  color: var(--foreground);
}

.brand-logo .logo-highlight {
  color: var(--primary);
  text-shadow: 0 0 16px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Dark/Light Switcher Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--foreground);
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  background: var(--card-subtle);
  border-color: var(--primary);
  transform: rotate(15deg) scale(1.05);
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-block; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: inline-block; }

/* ----------------------------------------------------
   4. BUTTONS & UI CONTROLS
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 26px var(--primary-glow);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--card-subtle);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Badges */
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.28);
  letter-spacing: 0.02em;
}

[data-theme="light"] .tool-badge {
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.22);
}

/* ----------------------------------------------------
   5. IN-PAGE JUMP BAR & HERO VERDICT
---------------------------------------------------- */
.jump-pill-bar {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.jump-pill-bar a {
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-foreground);
  background: var(--card-subtle);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.jump-pill-bar a:hover {
  color: var(--foreground);
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.hero-verdict-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.hero-verdict-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.score-box-display {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 170px;
}

/* ----------------------------------------------------
   6. EDITORIAL REVIEW ARTICLE & CARDS
---------------------------------------------------- */
.tool-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.editorial-article {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--card-shadow);
}

.editorial-article section {
  margin-bottom: 3.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}

.editorial-article section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.editorial-article h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.editorial-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.editorial-article p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Rating Meter Bars */
.rating-bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-bar-label {
  width: 200px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.rating-bar-track {
  flex: 1;
  height: 9px;
  background: var(--card-subtle);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rating-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 9999px;
}

.rating-bar-score {
  width: 45px;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
}

/* Pros and Cons Boxes */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cons-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Tables */
.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.editorial-table th {
  background: var(--table-header);
  color: var(--muted-foreground);
  font-weight: 700;
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.editorial-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.editorial-table tr:last-child td {
  border-bottom: none;
}

.editorial-table tr:hover td {
  background: var(--table-row-hover);
}

/* FAQ Native Details Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.faq-card {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  transition: all 0.15s ease;
}

.faq-card[open] {
  border-color: var(--primary);
}

.faq-card summary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: bold;
}
.faq-card[open] summary::after { content: "−"; }

.faq-card .faq-content {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ----------------------------------------------------
   7. SIDEBAR & CATALOG GRIDS
---------------------------------------------------- */
.sticky-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.alt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
}

.alt-item:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.alt-item:last-child {
  border-bottom: none;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Tool Grid for Archive */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 3.5rem 0;
  margin-top: 5rem;
  background: var(--footer-bg);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ----------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
---------------------------------------------------- */
@media (max-width: 960px) {
  .tool-detail-layout {
    grid-template-columns: 1fr !important;
  }
  .sticky-sidebar {
    position: static;
  }
  .editorial-article {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .rating-bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .rating-bar-label {
    width: 100%;
  }
  .rating-bar-track {
    width: 100%;
  }
  .hero-verdict-box {
    padding: 1.5rem;
  }
}
