/**
 * assets/css/ads.css - Giao diện Trang Hợp Tác Quảng Cáo & Media Kit Chuẩn Cinematic
 */

:root {
  --ads-cyan: #06b6d4;
  --ads-cyan-glow: rgba(6, 182, 212, 0.4);
  --ads-purple: #8b5cf6;
  --ads-purple-glow: rgba(139, 92, 246, 0.4);
  --ads-amber: #f59e0b;
  --ads-emerald: #10b981;
  --ads-bg-card: rgba(15, 23, 42, 0.75);
  --ads-border: rgba(255, 255, 255, 0.08);
}

.ads-page-content {
  padding-top: 15px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

/* Breadcrumb */
.ads-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.ads-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.ads-breadcrumb a:hover {
  color: var(--secondary);
}
.ads-breadcrumb .current {
  color: #fff;
  font-weight: 600;
}

/* Hero Section */
.ads-hero-section {
  position: relative;
  padding: 48px 36px;
  background: radial-gradient(circle at 50% 10%, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.95) 80%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 48px;
  overflow: hidden;
  text-align: center;
}

.ads-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.ads-hero-glow.glow-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: 20%;
  background: rgba(6, 182, 212, 0.18);
}
.ads-hero-glow.glow-2 {
  width: 380px;
  height: 380px;
  bottom: -100px;
  right: 20%;
  background: rgba(139, 92, 246, 0.18);
}

.ads-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.ads-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--ads-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.ads-main-heading {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.ads-main-heading .text-gradient {
  background: linear-gradient(135deg, #38bdf8, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ads-hero-sub {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Metrics Grid */
.ads-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.metric-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.2);
}

.metric-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}
.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* CTA Buttons */
.ads-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-ads-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-ads-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}

.btn-ads-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(36, 161, 222, 0.15);
  border: 1px solid rgba(36, 161, 222, 0.45);
  color: #38bdf8;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ads-telegram:hover {
  background: rgba(36, 161, 222, 0.3);
  border-color: #38bdf8;
  color: #fff;
}

/* Section Header Shared */
.section-title-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Placement Cards Grid */
.ads-placements-section {
  margin-bottom: 56px;
}
.placements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.placement-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--ads-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.placement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}
.placement-card.highlight {
  border-color: rgba(6, 182, 212, 0.4);
  background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(15, 23, 42, 0.85) 60%);
}

.placement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.placement-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.placement-badge.hot {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.placement-badge.top {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}
.placement-badge.desk {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}
.placement-badge.video {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.placement-badge.mobile {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.placement-badge.vip {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fde047;
}

.placement-type {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.placement-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.placement-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.placement-specs {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.spec-k {
  color: var(--text-dim);
}
.spec-v {
  color: #e2e8f0;
  font-weight: 600;
}

.placement-footer {
  margin-top: auto;
}
.btn-select-placement {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-select-placement:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #000;
  font-weight: 700;
}

/* Why Us Section */
.ads-why-us-section {
  margin-bottom: 56px;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--ads-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 0 auto 16px;
}
.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Booking Form Container */
.ads-booking-container {
  margin-bottom: 56px;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}

.booking-form-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.form-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.form-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ads-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label .req {
  color: #ef4444;
}

.ads-input, .ads-select, .ads-textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ads-input:focus, .ads-select:focus, .ads-textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}
.ads-select option {
  background: #0f172a;
  color: #fff;
}

.btn-submit-booking {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  border: none;
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}
.btn-submit-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}
.btn-submit-booking:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.booking-result-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.booking-result-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.booking-result-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Sidebar Channels */
.booking-contact-sidebar {
  display: flex;
  flex-direction: column;
}
.direct-contact-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--ads-border);
  border-radius: 20px;
  padding: 28px 24px;
}
.sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.sidebar-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.direct-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s;
}
.direct-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}
.direct-item.telegram { border-color: rgba(36, 161, 222, 0.35); }
.direct-item.telegram:hover { border-color: #38bdf8; box-shadow: 0 4px 20px rgba(36, 161, 222, 0.2); }
.direct-item.zalo { border-color: rgba(6, 182, 212, 0.35); }
.direct-item.zalo:hover { border-color: var(--secondary); box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2); }
.direct-item.email { border-color: rgba(139, 92, 246, 0.35); }
.direct-item.email:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2); }

.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  flex-shrink: 0;
}
.direct-item.telegram .direct-icon { color: #38bdf8; }
.direct-item.zalo .direct-icon { color: #06b6d4; }
.direct-item.email .direct-icon { color: #a855f7; }

.direct-text {
  display: flex;
  flex-direction: column;
}
.direct-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.direct-val {
  font-size: 0.95rem;
  color: #fff;
}
.direct-status {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.content-policy-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 16px;
}
.content-policy-box h5 {
  font-size: 0.82rem;
  color: #fbbf24;
  margin-bottom: 8px;
}
.content-policy-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* FAQ Accordion */
.ads-faq-section {
  max-width: 860px;
  margin: 0 auto;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--ads-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
}
.faq-q {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-arrow {
  color: var(--text-dim);
  transition: transform 0.25s;
}
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--secondary);
}
.faq-a {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .placements-grid { grid-template-columns: repeat(2, 1fr); }
  .ads-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ads-hero-section { padding: 32px 18px; }
  .ads-main-heading { font-size: 1.6rem; }
  .ads-metrics-grid { grid-template-columns: 1fr; }
  .placements-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .form-row.two-cols { grid-template-columns: 1fr; }
  .booking-form-box { padding: 22px 16px; }
}
