/**
 * ART GALLERY & MAGAZINE - Modern Clean Aesthetic CSS
 * Giao diện Triển Lãm Nghệ Thuật & Bài Viết Đẹp Mắt, Dễ Nhìn, Chuẩn Bản Quyền DMCA
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #0c0f17;
  --bg-surface: #131722;
  --bg-card: #161b28;
  --bg-card-hover: #1c2233;
  --border-color: rgba(212, 175, 55, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.09);
  
  --gold-primary: #e5b842;
  --gold-light: #fbe28a;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #fef3c7 0%, #f59e0b 50%, #d97706 100%);
  
  --cyan-accent: #38bdf8;
  --purple-accent: #c084fc;
  --emerald-accent: #34d399;
  --crimson-accent: #f87171;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 25px rgba(229, 184, 66, 0.18);
}

/* Base */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(229, 184, 66, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

a {
  color: #93c5fd;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* Navbar */
.navbar-luxury {
  background: rgba(15, 19, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0e17;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(229, 184, 66, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.nav-link-luxury {
  font-weight: 600;
  font-size: 0.92rem;
  color: #cbd5e1 !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link-luxury:hover, .nav-link-luxury.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-luxury.active {
  color: var(--gold-light) !important;
  border-bottom: 2px solid var(--gold-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.glass-card-gold {
  background: linear-gradient(145deg, #181f2f 0%, #121622 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #0c0f17 !important;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  box-shadow: 0 4px 14px rgba(229, 184, 66, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 184, 66, 0.4);
  filter: brightness(1.06);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-light) !important;
  border: 1.5px solid var(--gold-primary);
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: #0c0f17 !important;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9 !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badges */
.badge-luxury {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
}

.badge-exclusive {
  background: rgba(229, 184, 66, 0.15);
  color: #fef08a;
  border: 1px solid rgba(229, 184, 66, 0.4);
}

.badge-commercial {
  background: rgba(192, 132, 252, 0.15);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.badge-editorial {
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-cc {
  background: rgba(52, 211, 153, 0.15);
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* Artwork Card */
.art-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s ease;
}

.art-card:hover {
  border-color: rgba(229, 184, 66, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.art-card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #080a10;
}

.art-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.art-card:hover .art-card-img-wrapper img {
  transform: scale(1.04);
}

/* Watermark Overlay */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0) 80px,
    rgba(229, 184, 66, 0.02) 80px,
    rgba(229, 184, 66, 0.02) 160px
  );
}

.watermark-overlay-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
  transform: rotate(-25deg);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  user-select: none;
}

.art-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.art-dmca-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(12, 15, 23, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-light);
  font-weight: 600;
}

.art-card-body {
  padding: 18px 20px;
}

.art-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.art-card-title a {
  color: #ffffff;
}

.art-card-title a:hover {
  color: var(--gold-light);
}

.art-card-owner {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.art-card-owner strong {
  color: var(--gold-light);
}

.art-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Article Card */
.article-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080a10;
}

.article-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-wrapper img {
  transform: scale(1.04);
}

.article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-title a {
  color: #ffffff;
}

.article-title a:hover {
  color: var(--gold-light);
}

.article-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Alerts */
.alert-box-luxury {
  background: rgba(229, 184, 66, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0;
}

/* Tables */
.table-luxury {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  border-color: var(--border-subtle);
}

.table-luxury th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  border-bottom: 1.5px solid var(--border-color);
  padding: 12px 14px;
}

.table-luxury td {
  padding: 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
}

/* Form Controls */
.form-control-dark, .form-select-dark {
  background-color: #111520 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control-dark:focus, .form-select-dark:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(229, 184, 66, 0.18) !important;
  background-color: #0b0e17 !important;
}

.form-label-luxury {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.footer-luxury {
  background: #080a11;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 25px;
  margin-top: 80px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.copyright-bar {
  padding-top: 25px;
  margin-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-img-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

/* Toast */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
}

.toast-luxury {
  background: #151a28;
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
