/* Hive Platform Documentation - Custom Styles */

:root {
  --hive-purple: #667eea;
  --hive-dark-purple: #764ba2;
  --hive-accent: #f093fb;
  --hive-green: #30cfd0;
  --hive-orange: #fa709a;
  --hive-dark: #1a1a2e;
  --hive-darker: #0f0f1e;
  --hive-glow: rgba(102, 126, 234, 0.3);
}

/* Header branding */
.md-header {
  background: linear-gradient(135deg, var(--hive-dark-purple) 0%, var(--hive-purple) 100%);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.md-header__title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

/* Add Hive logo text styling */
.md-header__button.md-logo {
  font-size: 1.5rem;
}

/* Hero section on homepage */
.md-content__inner > h1:first-child {
  font-size: 3rem;
  text-align: center;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--hive-purple) 0%, var(--hive-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(10deg); }
}

/* Hacker-themed enhancements */
.md-typeset h1 {
  font-weight: 700;
  background: linear-gradient(135deg, var(--hive-purple) 0%, var(--hive-dark-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-typeset h2 {
  border-bottom: 2px solid var(--hive-purple);
  padding-bottom: 0.3em;
}

/* Code blocks with terminal feel */
.md-typeset code {
  background-color: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
}

.md-typeset pre code {
  background-color: transparent;
  border: none;
}

/* Enhanced admonitions */
.md-typeset .admonition {
  border-left: 4px solid var(--hive-purple);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset .admonition.warning {
  border-left-color: var(--hive-orange);
}

.md-typeset .admonition.tip {
  border-left-color: var(--hive-green);
}

/* Navigation enhancements */
.md-nav__link--active {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
  border-left: 3px solid var(--hive-purple);
  font-weight: 600;
}

/* Search bar styling */
.md-search__input {
  border-radius: 8px;
  background-color: rgba(102, 126, 234, 0.05);
}

.md-search__input:focus {
  border: 2px solid var(--hive-purple);
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) thead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.md-typeset table:not([class]) th {
  font-weight: 700;
  color: var(--hive-purple);
}

/* Buttons and links */
.md-typeset a {
  color: var(--hive-purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.md-typeset a:hover {
  border-bottom: 1px solid var(--hive-purple);
}

/* Custom cards for feature highlights */
.feature-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hive-purple) 0%, var(--hive-accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  border-color: var(--hive-purple);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--hive-purple);
  font-size: 1.3rem;
}

/* Terminal-style command blocks */
.terminal {
  background-color: #1e1e1e;
  color: #00ff00;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.terminal::before {
  content: "$ ";
  color: #667eea;
  font-weight: bold;
}

/* Dark mode specific adjustments */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #667eea;
  --md-accent-fg-color: #f093fb;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
  .md-nav--primary .md-nav__title {
    background-color: var(--hive-purple);
  }
}

/* Screenshot placeholders */
.screenshot-placeholder {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  color: var(--hive-purple);
  font-style: italic;
  margin: 1rem 0;
}

/* Keyboard shortcuts */
.md-typeset kbd {
  background-color: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.1em 0.4em;
  font-family: 'Fira Code', monospace;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin-left: 0.5em;
}

.badge-new {
  background-color: var(--hive-green);
  color: white;
}

.badge-beta {
  background-color: var(--hive-orange);
  color: white;
}

.badge-deprecated {
  background-color: #dc3545;
  color: white;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .md-header,
  .md-sidebar,
  .md-footer {
    display: none;
  }
}

/* Premium enhancements */

/* Sidebar styling */
.md-sidebar {
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.02) 0%, transparent 100%);
}

.md-nav__title {
  font-weight: 700;
  color: var(--hive-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
}

/* Footer branding */
.md-footer {
  background: linear-gradient(135deg, var(--hive-darker) 0%, var(--hive-dark) 100%);
}

.md-footer-meta {
  background-color: var(--hive-darker);
}

/* Code block enhancements */
.md-typeset pre {
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.md-typeset pre > code {
  border-radius: 8px;
}

/* Highlight important sections */
.md-typeset blockquote {
  border-left: 4px solid var(--hive-purple);
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* Navigation hover effects */
.md-nav__link {
  transition: all 0.2s ease;
  border-radius: 4px;
}

.md-nav__link:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateX(4px);
}

/* Search enhancements */
.md-search__form {
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-search__input::placeholder {
  color: rgba(102, 126, 234, 0.5);
}

/* Tabs styling */
.md-typeset .tabbed-set {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset .tabbed-labels > label {
  font-weight: 600;
  transition: all 0.2s ease;
}

.md-typeset .tabbed-labels > label:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Mermaid diagram styling */
.mermaid {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* List styling */
.md-typeset ul li::marker {
  color: var(--hive-purple);
}

.md-typeset ol li::marker {
  color: var(--hive-purple);
  font-weight: 700;
}

/* Horizontal rules */
.md-typeset hr {
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--hive-purple) 0%, var(--hive-accent) 100%) 1;
}

/* Announcement bar (if used) */
.md-banner {
  background: linear-gradient(135deg, var(--hive-purple) 0%, var(--hive-dark-purple) 100%);
  color: white;
}

/* Content wrapper */
.md-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glossy button effect for links in cards */
.feature-card a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--hive-purple) 0%, var(--hive-dark-purple) 100%);
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feature-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
  border: none;
}

/* Dark mode enhancements */
[data-md-color-scheme="slate"] .md-header {
  background: linear-gradient(135deg, var(--hive-darker) 0%, var(--hive-dark) 100%);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

[data-md-color-scheme="slate"] .feature-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(102, 126, 234, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hive-purple) 0%, var(--hive-dark-purple) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--hive-dark-purple) 0%, var(--hive-purple) 100%);
}

/* Language selector styling - REMOVED (now in main.html) */
