@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 22, 0.7);
  --bg-card-hover: rgba(30, 30, 33, 0.9);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.5);
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
}

[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.15);
}

/* Light mode: Body background */
[data-theme="light"] body {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(192, 132, 252, 0.08) 0px, transparent 50%);
}

/* Light mode: Navbar */
[data-theme="light"] header.navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Light mode: Cards */
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

/* Light mode: Tool cards */
[data-theme="light"] .tool-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Light mode: Stat badges */
[data-theme="light"] .stat-item {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.1);
}

/* Light mode: Search bar */
[data-theme="light"] .search-bar {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .search-bar input {
  color: #0f172a;
}

/* Light mode: Prompt box & buttons */
[data-theme="light"] .prompt-box {
  background: rgba(0, 0, 0, 0.03);
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .copy-btn,
[data-theme="light"] .chatgpt-btn {
  background: white;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .copy-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

[data-theme="light"] .chatgpt-btn:hover {
  background: rgba(16, 163, 127, 0.1);
  color: #10a37f;
}

/* Light mode: Category section */
[data-theme="light"] .category-section {
  border-color: rgba(0, 0, 0, 0.04);
}

/* Light mode: FAQ */
[data-theme="light"] .faq-question {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Light mode: Footer */
[data-theme="light"] footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Light mode: Scroll to top */
[data-theme="light"] .scroll-top {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Light mode: Filter buttons */
[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}
[data-theme="light"] .filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(192, 132, 252, 0.15) 0px, transparent 50%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

/* Navbar link hover */
header.navbar nav a {
  transition: color 0.3s;
}
header.navbar nav a:hover {
  color: var(--text-primary) !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.navbar {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glow effect behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5,5,5,0) 60%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 4rem;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-left: 3rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-bar:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

/* Grid System */
.section-title {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Profession Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--border-hover);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

.card-icon {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tools Card Styling */
.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  transition: border-color 0.3s, background 0.3s;
}

.tool-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tool-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge.freemium { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.badge.paid { background: rgba(167, 139, 250, 0.2); color: #d8b4fe; }
.badge.free { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }

.tool-link {
  display: inline-block;
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.tool-link:hover {
  background: #4f46e5;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Prompts Section */
.prompt-card {
  background: rgba(20, 20, 22, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-left: 4px solid #f472b6;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.prompt-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 4px 20px rgba(244, 114, 182, 0.1);
}

.prompt-card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}

.prompt-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-color);
}

.prompt-content {
  padding: 1.25rem;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e4e4e7;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
}

.copy-btn, .chatgpt-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid transparent;
}

.copy-btn {
  color: var(--text-secondary);
}

.copy-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}

.copy-btn.copied {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.chatgpt-btn {
  color: #10a37f;
  background: rgba(16, 163, 127, 0.1);
  border-color: rgba(16, 163, 127, 0.2);
}

.chatgpt-btn:hover {
  background: #10a37f;
  color: white;
}

/* Page Header (Profession Page) */
.page-header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle at top, rgba(167, 139, 250, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.icon-large {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.breadcrumbs {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: left;
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* FAQ Accordion */
details {
  transition: background 0.3s, border-color 0.3s;
}
details:hover {
  border-color: var(--border-hover) !important;
}
details[open] {
  border-color: var(--accent) !important;
  background: rgba(99, 102, 241, 0.03) !important;
}
details summary {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 2rem;
}
details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
}
details[open] summary::after {
  content: '−';
}
details summary::-webkit-details-marker {
  display: none;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  margin: 4rem 0;
}
.loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}
@keyframes loading {
  from { transform: rotate(0turn); }
  to { transform: rotate(1turn); }
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Share buttons hover */
a[href*="twitter.com"]:hover,
a[href*="linkedin.com"]:hover,
a[href*="whatsapp.com"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  transition: all 0.3s;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Footer link hover */
footer a:hover {
  color: var(--text-primary) !important;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 2rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .navbar .container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .navbar nav {
    gap: 1rem !important;
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.35rem;
  }
  .page-header {
    padding: 3rem 0 2rem;
  }
  .icon-large {
    font-size: 3rem;
  }
  .stats-row {
    gap: 1.5rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
}
