/*
Theme Name: Queskro Custom Premium Theme
Theme URI: https://queskro.com
Author: Aryendra
Description: A premium, modern, SaaS + Community style WordPress theme for Q&A platforms.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: queskro
*/

/* Core Custom Properties */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #7C3AED;
  --secondary-hover: #6D28D9;
  --accent: #06B6D4;
  --accent-hover: #0891B2;
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #111827;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --border: #E2E8F0;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  --font-headings: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px 0 rgba(79, 70, 229, 0.15);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 12px;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Scheme */
[data-theme="dark"] {
  --background: #0B0F19;
  --card-bg: #111827;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --border: #1F2937;
  
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(31, 41, 55, 0.5);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px 0 rgba(124, 58, 237, 0.25);
}

/* Sunset Orange Theme */
[data-theme="orange"] {
  --primary: #EA580C;
  --primary-hover: #C2410C;
  --secondary: #D97706;
  --secondary-hover: #B45309;
  --accent: #EAB308;
  --accent-hover: #CA8A04;
  --background: #FAF8F5;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border: #F0E6DF;
  
  --glass-bg: rgba(250, 248, 245, 0.8);
  --glass-border: rgba(234, 88, 12, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(234, 88, 12, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(234, 88, 12, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(234, 88, 12, 0.12);
  --shadow-glow: 0 0 20px 0 rgba(234, 88, 12, 0.15);
}

/* Ocean Blue Theme */
[data-theme="blue"] {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary: #0D9488;
  --secondary-hover: #0F766E;
  --accent: #06B6D4;
  --accent-hover: #0891B2;
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  
  --glass-bg: rgba(248, 250, 252, 0.8);
  --glass-border: rgba(37, 99, 235, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(37, 99, 235, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.12);
  --shadow-glow: 0 0 20px 0 rgba(37, 99, 235, 0.15);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

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

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

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

/* Futuristic Theme Custom Overrides */
.theme-option-item {
  transition: var(--transition-fast);
  cursor: pointer;
}
.theme-option-item:hover {
  background-color: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}
[data-theme="orange"] .theme-option-item:hover {
  background-color: rgba(234, 88, 12, 0.08) !important;
  color: var(--primary) !important;
}
[data-theme="blue"] .theme-option-item:hover {
  background-color: rgba(37, 99, 235, 0.08) !important;
  color: var(--primary) !important;
}
[data-theme="dark"] .theme-option-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-main) !important;
}

/* Hero sizing overrides for 50% height reduction */
.hero-illustration {
  min-height: 280px !important;
}
.floating-card {
  max-width: 180px !important;
}
.float-1 { top: 5% !important; left: 5% !important; }
.float-2 { bottom: 10% !important; right: 5% !important; }
.float-3 { top: 35% !important; right: 2% !important; }

/* Question details rendering styles */
.question-body pre.queskro-code-block,
.entry-content pre.queskro-code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.question-body code.queskro-code-inline,
.entry-content code.queskro-code-inline {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.question-body mark.queskro-highlight,
.entry-content mark.queskro-highlight {
  background-color: #fef3c7;
  border-radius: 4px;
  color: #b45309;
  padding: 0.15rem 0.35rem;
  font-weight: 600;
}

.question-body blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: rgba(79, 70, 229, 0.02);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 6px 6px 0;
}

.question-body table.queskro-table,
.entry-content table.queskro-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.question-body table.queskro-table th,
.entry-content table.queskro-table th {
  background-color: var(--background);
  padding: 10px 14px;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.question-body table.queskro-table td,
.entry-content table.queskro-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.question-body table.queskro-table tr:nth-child(even),
.entry-content table.queskro-table tr:nth-child(even) {
  background-color: rgba(0,0,0,0.01);
}

/* FAQ Accordion */
.question-body details.faq-accordion,
.entry-content details.faq-accordion {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s ease;
}
.question-body details.faq-accordion:hover,
.entry-content details.faq-accordion:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.04);
}
.question-body details.faq-accordion summary.faq-summary,
.entry-content details.faq-accordion summary.faq-summary {
  font-weight: 700;
  cursor: pointer;
  outline: none;
  color: var(--primary);
  user-select: none;
}
.question-body details.faq-accordion .faq-content,
.entry-content details.faq-accordion .faq-content {
  padding-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Alert Boxes */
.question-body .alert-box,
.entry-content .alert-box {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.question-body .alert-box.alert-info,
.entry-content .alert-box.alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.question-body .alert-box.alert-warning,
.entry-content .alert-box.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

/* Checklist items */
.question-body li.checklist-item,
.entry-content li.checklist-item {
  list-style-type: none;
  margin-left: -1rem;
}
.question-body li.checklist-item input[type="checkbox"],
.entry-content li.checklist-item input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
  cursor: default;
}

