/* CTK Reference Portfolio - Styling System */
:root {
  --primary-color: #1a2b4c;
  --accent-color: #d4af37;
  --accent-hover: #b89628;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Header & Nav */
.portfolio-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span {
  color: var(--accent-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-main) !important;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tagline {
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 30px;
}

/* Buttons */
.btn-accent {
  background-color: var(--accent-color);
  color: #0f172a;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-custom {
  border: 2px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-custom:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* Cards */
.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.book-cover-wrapper {
  position: relative;
  background: #f1f5f9;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover-img {
  max-height: 230px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover-img {
  transform: scale(1.04);
}

.book-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.book-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-title:hover {
  color: var(--accent-hover);
}

.book-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.book-desc {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.book-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* Sections */
.section-padding {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
}

/* Footer */
.portfolio-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0 20px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Breadcrumbs */
.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

/* ── Audios & Persistent Player ────────────────────────────────────────── */
.audio-card {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.audio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hover-gold:hover {
  color: var(--accent-hover) !important;
}

.track-row {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.track-row:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

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

.track-row.active-track {
  background-color: #fffbeb !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.track-row.active-track .track-position {
  color: var(--accent-color) !important;
}

.track-row.active-track .track-title {
  color: #92400e !important;
  font-weight: 700 !important;
}

.btn-play-track {
  background-color: #f1f5f9;
  color: var(--primary-color);
  border: 1px solid #e2e8f0;
  width: 34px;
  height: 34px;
  transition: all 0.2s ease;
}

.track-row:hover .btn-play-track,
.track-row.active-track .btn-play-track {
  background-color: var(--accent-color);
  color: #0f172a;
  border-color: var(--accent-color);
}

/* Persistent Player Dock */
.ctk-audio-player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
  border-top: 2px solid var(--accent-color);
  animation: slideUpPlayer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpPlayer {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.player-progress-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.player-progress-wrapper:hover {
  height: 8px;
}

.player-progress-wrapper:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Mobile Player Adjustments */
@media (max-width: 767px) {
  .ctk-audio-player-dock {
    padding-top: 6px;
    padding-bottom: 8px;
  }
}

