/**
 * Black River Capital - Tailwind Custom Theme
 * Modern Black & White Design System
 */

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

/* === ROOT VARIABLES === */
:root {
  /* Fonts */
  --font-primary: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  
  /* Base Colors */
  --theme-bg: #0b0b0b;
  --theme-text: #f5f5f5;
  --theme-text-dim: rgba(255, 255, 255, 0.8);
  --theme-text-faint: rgba(255, 255, 255, 0.6);
  --theme-accent: #ffffff;
  --theme-border-faint: rgba(255, 255, 255, 0.1);
  --theme-border-medium: rgba(255, 255, 255, 0.18);
  --theme-border-strong: rgba(255, 255, 255, 0.5);
  --theme-bg-translucent: rgba(255, 255, 255, 0.05);
  --theme-bg-hover: rgba(255, 255, 255, 0.06);
  --theme-bg-hover-strong: rgba(255, 255, 255, 0.2);
}

/* === BASE STYLES === */
html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  background: var(--theme-bg);
  color: var(--theme-text);
  margin: 0;
  padding: 0;
}

/* === NAVIGATION STYLES === */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.1rem;
  color: var(--theme-text-dim);
  transition: all 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.7), rgba(255,255,255,0.2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover {
  color: var(--theme-text);
}

/* === HEADER === */
.header--scrolled .rail {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    width: 180px;
  }
}

/* === MOBILE MENU === */
.fs-surface {
  background: linear-gradient(180deg, var(--theme-bg), #0e1011);
}

.fs-link {
  display: block;
  position: relative;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-text);
  transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  padding-bottom: 4px;
  width: fit-content;
}

.fs-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--theme-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.fs-link:hover,
.fs-link.force-hover {
  color: var(--theme-text-dim);
}

.fs-link:hover::after,
.fs-link.force-hover::after {
  transform: scaleX(1);
}

/* === BUTTONS === */
.i-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.95rem;
  border: 1px dashed var(--theme-border-medium);
  background: transparent;
  color: var(--theme-text);
  transition: all 0.2s ease;
}

.i-btn:hover {
  background: var(--theme-bg-hover);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--theme-border-faint);
  background-color: var(--theme-bg-translucent);
  color: var(--theme-text);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  outline: none;
  transform-origin: center;
  user-select: none;
  cursor: pointer;
}

.menu-btn:hover {
  background-color: var(--theme-bg-hover-strong);
  transform: scale(1.05);
}

/* === HAMBURGER ANIMATION === */
.icon-wrap {
  position: relative;
  width: 20px;
  height: 14px;
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-line {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  left: 0;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-line-1 { top: 0; }
.icon-line-2 { top: 6px; }
.icon-line-3 { top: 12px; }

.menu-open .icon-wrap {
  transform: rotate(180deg);
}

.menu-open .icon-line-1 {
  top: 6px;
  transform: rotate(135deg);
}

.menu-open .icon-line-2 {
  opacity: 0;
  transform: scale(0);
}

.menu-open .icon-line-3 {
  top: 6px;
  transform: rotate(-135deg);
}

/* === CARDS === */
.card-modern {
  border-radius: 1rem;
  background: var(--theme-bg-translucent);
  border: 1px solid var(--theme-border-faint);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-modern:hover {
  background: var(--theme-bg-hover);
  border-color: var(--theme-border-medium);
}

/* === FORMS === */
.form-input-modern {
  width: 100%;
  border-radius: 0.75rem;
  background: var(--theme-bg-translucent);
  border: 1px solid var(--theme-border-faint);
  padding: 0.75rem 1rem;
  color: var(--theme-text);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-input-modern:focus {
  outline: none;
  background: var(--theme-bg-hover);
  border-color: var(--theme-border-medium);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input-modern::placeholder {
  color: var(--theme-text-faint);
}

/* === BADGES === */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: rgb(251, 191, 36);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === UTILITIES === */
.text-gradient {
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border-image: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1)) 1;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--theme-border-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-border-strong);
}

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

.slide-down {
  animation: slideDown 0.3s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .logo-img {
    width: 100px;
  }
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
}
