/* 
  Reggae Jah - Radio Boss & SAM Broadcaster DJ Studio
  Design System - Sophisticated Clean Dark Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: #0f141c;
  --bg-card-hover: #161e2b;
  --bg-secondary: #0a0d14;
  --bg-input: #121824;
  
  --jajah-green: #10b981;
  --jajah-gold: #f59e0b;
  --jajah-gold-hover: #fbbf24;
  --jajah-red: #ef4444;
  --jajah-blue: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.4);
  --border-blue: rgba(59, 130, 246, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 12px 32px -6px rgba(245, 158, 11, 0.22);
  --shadow-blue-glow: 0 12px 32px -6px rgba(59, 130, 246, 0.2);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* Reggae Stripe Accent Bar */
.reggae-bar {
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  width: 100%;
}

/* Navbar Custom Styling */
.navbar-custom {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(12px);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-decoration: none;
}

.logo-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--jajah-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jajah-gold);
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.nav-link-custom {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-link-custom:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.active {
  color: #ffffff;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(180deg, #0a0d14 0%, #07090e 100%),
              radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.08), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.06), transparent 45%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Studio Tutorial Cards */
.studio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.studio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-card-hover);
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #07090e;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.card-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.88;
}

.studio-card:hover .card-thumb-img {
  transform: scale(1.05);
  opacity: 1;
}

/* Play Button Overlay */
.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.88);
  border: 2px solid var(--jajah-gold);
  color: var(--jajah-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.studio-card:hover .play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--jajah-gold);
  color: #000000;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.6);
}

/* Software Badges */
.card-badge-software {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 13, 20, 0.92);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.badge-software-radioboss {
  color: var(--jajah-gold);
  border: 1px solid var(--border-highlight);
}

.badge-software-sam {
  color: #60a5fa;
  border: 1px solid var(--border-blue);
}

.badge-software-geral {
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.card-badge-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 13, 20, 0.92);
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* Category Badges Styling */
.badge-cat-programacao { border-left: 3px solid #3b82f6; }
.badge-cat-audio { border-left: 3px solid #10b981; }
.badge-cat-config { border-left: 3px solid #f59e0b; }
.badge-cat-vinheta { border-left: 3px solid #ec4899; }
.badge-cat-dica { border-left: 3px solid #8b5cf6; }

/* Filter Tabs / Pills */
.filter-btn {
  background-color: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
  background: var(--jajah-gold);
  color: #000000;
  font-weight: 700;
  border-color: var(--jajah-gold);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.filter-btn-software {
  border-radius: 20px;
}

.filter-btn-software.active-radioboss {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

.filter-btn-software.active-sam {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* Search Bar Inputs */
.search-input-group {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-group:focus-within {
  border-color: var(--jajah-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.search-input-group .form-control {
  background: transparent;
  border: none;
  color: var(--text-main);
  box-shadow: none;
  font-size: 0.95rem;
}

.search-input-group .form-control::placeholder {
  color: var(--text-dim);
}

/* Explicit Contrast Overrides */
.text-muted {
  color: var(--text-muted) !important;
}

.text-dim {
  color: var(--text-dim) !important;
}

p {
  color: var(--text-muted);
}

/* Modal Custom Styling */
.modal-content-studio {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.modal-header-studio {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
}

.modal-footer-studio {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
}

/* Buttons */
.btn-gold {
  background: var(--jajah-gold);
  color: #000000;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold:hover {
  background: var(--jajah-gold-hover);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-outline-studio {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.btn-outline-studio:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--jajah-gold);
  border-color: rgba(245, 158, 11, 0.35);
}

/* Quick Stats Bar */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-gold { background: rgba(245, 158, 11, 0.12); color: var(--jajah-gold); }
.stat-icon-green { background: rgba(16, 185, 129, 0.12); color: var(--jajah-green); }
.stat-icon-red { background: rgba(239, 68, 68, 0.12); color: var(--jajah-red); }
.stat-icon-blue { background: rgba(59, 130, 246, 0.12); color: var(--jajah-blue); }

/* Download Box */
.download-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 20, 28, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2.2rem 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.table {
  color: #e2e8f0;
}

.table th {
  color: #f1f5f9;
  font-weight: 600;
}

/* Responsive Embed Wrapper */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ratio-16x9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Toast Container */
.toast-container {
  z-index: 1090;
}


