/* Omnia Prompt Guide - Clean Minimal Design */
/* Fonts: Geist (body), Victor Serif (brand) */

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Victor Serif';
  src: url('https://fonts.cdnfonts.com/s/93884/VictorSerif-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

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

:root {
  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-hover: #F5F5F5;
  --text: #0A0A0A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #E5E5E5;
  --border-light: #EEEEEE;
  --accent: #0A0A0A;
  
  --sidebar-width: 64px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
}

/* Minimal Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  margin-bottom: 32px;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.nav-icon:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-icon.active {
  background: var(--bg-hover);
  color: var(--text);
}

/* Main */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
}

/* Header */
.header {
  text-align: center;
  padding: 80px 40px 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 146, 60, 0.15) 0%,
    rgba(236, 72, 153, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(40px);
}

.header-content {
  position: relative;
  z-index: 1;
}

.brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.hedra-logo-text {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.hedra-logo-svg {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.omnia-text {
  font-family: 'Victor Serif', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative;
  top: 0;
}

.brand-subtitle {
  font-family: 'Victor Serif', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Section */
.section {
  padding: 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Filters */
.filters-row {
  display: flex;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  width: 200px;
  background: var(--bg-card);
  outline: none;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.filter-group.secondary {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip.small {
  padding: 5px 10px;
  font-size: 12px;
}

.filter-chip:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-chip.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
}

.card-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .card-overlay {
  opacity: 1;
}

.play-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.badge {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  text-transform: capitalize;
}

.card-info {
  padding: 12px;
}

.card-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Guide Page */
.guide-content {
  max-width: 900px;
  margin: 0 auto;
}

.guide-intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 800px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.guide-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: var(--bg-hover);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.guide-rule {
  padding: 16px 20px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #92400E;
  margin-bottom: 48px;
}

.templates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.template-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.template-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.template-code {
  display: block;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  margin-bottom: 10px;
}

.template-example {
  font-size: 13px;
  color: var(--text-secondary);
}

.audio-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.audio-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.audio-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.audio-item code {
  padding: 3px 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-hover);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--text);
  color: white;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 400px;
}

@media (max-width: 900px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
  
  .modal-video {
    max-height: 50vh;
  }
}

@media (max-width: 600px) {
  .modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .modal-content {
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .modal-video {
    max-height: 40vh;
    min-height: 200px;
  }
  
  .modal-details {
    padding: 16px;
    gap: 16px;
    overflow-y: auto;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    z-index: 10;
  }
  
  .modal-input-image {
    max-height: 120px;
  }
}

.modal-video {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 80vh;
}

.modal-video video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
}

.modal-section h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.modal-prompt-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-input-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-hover);
}

.modal-audio {
  width: 100%;
  height: 40px;
  margin-bottom: 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.copy-btn, .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.copy-btn:hover, .action-btn:hover {
  background: var(--text);
  color: white;
}

/* States */
.loading-state, .empty-state {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main {
    margin-left: 0;
  }
  
  .header {
    padding: 32px 16px;
  }
  
  .brand-title {
    flex-direction: column;
    gap: 8px;
  }
  
  .hedra-logo-svg {
    height: 28px;
  }
  
  .hedra-logo-text {
    height: 24px;
  }
  
  .omnia-text {
    font-size: 28px;
  }
  
  .brand-subtitle {
    font-size: 13px;
  }
  
  .section {
    padding: 16px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .filters {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-group {
    flex-wrap: wrap;
  }
  
  .filter-group.secondary {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ========================================
   ENHANCED GUIDE STYLES
   ======================================== */

/* Introduction Section */
.guide-intro-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.guide-intro-large {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 32px;
}

.key-strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.strength-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.strength-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.strength-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Duration Section */
.duration-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
}

.guide-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-text strong {
  color: var(--text);
}

.duration-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.tip-item strong {
  color: var(--text-secondary);
}

/* Guide Rule */
.guide-rule {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0 48px 0;
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-rule p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Use Cases */
.use-cases {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.use-case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.use-case-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.use-case-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.use-case-examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.example-prompt {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.example-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.example-prompt code {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: none;
  padding: 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

/* Audio Section Detailed */
.audio-section-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.audio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.audio-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.audio-card-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.audio-card-content {
  padding: 20px;
}

.audio-card-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.audio-card-content p:last-child {
  margin-bottom: 0;
}

.audio-card-content strong {
  color: var(--text);
}

/* Best Practices */
.best-practices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.practice-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.practice-item.do {
  border-left: 3px solid #22c55e;
}

.practice-item.dont {
  border-left: 3px solid #ef4444;
}

.practice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.practice-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.practice-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.practice-item li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

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

.practice-item.do li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

.practice-item.dont li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

/* Templates List Enhanced */
.templates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.template-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.template-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.template-code {
  display: block;
  background: var(--bg);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  margin-bottom: 12px;
}

.template-example {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Guide intro paragraph */
.guide-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.guide-intro strong {
  color: var(--text);
}

/* Responsive adjustments for guide */
@media (max-width: 768px) {
  .guide-intro-large {
    font-size: 16px;
  }
  
  .key-strengths {
    grid-template-columns: 1fr;
  }
  
  .audio-section-detailed {
    grid-template-columns: 1fr;
  }
  
  .best-practices {
    grid-template-columns: 1fr;
  }
}
