/* ==========================================================================
   ABANGADEKGANTENG — AD CENTER Stylesheet
   Pure SVG Icons, Zero Emojis, Dark Violet/Blue Branding
   ========================================================================== */

.ads-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* Header Section */
.ads-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.ads-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 9999px;
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ads-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ads-description {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Safety Disclosure Banner */
.ads-safety-banner {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

.ads-safety-icon {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.ads-safety-text strong {
  color: #fbbf24;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* Controls Bar (Search + Filter) */
.ads-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .ads-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ads-search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.ads-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.ads-search-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.ads-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.ads-filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ads-filter-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ads-filter-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

.ads-filter-btn.active {
  background: #7c3aed;
  border-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* Grid of Ad Cards */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.ad-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.ad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.25);
}

.ad-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ad-category-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.ad-status-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ad-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.ad-card-description {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ad-shorturl-box {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ad-shorturl-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.ad-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ad-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.ad-action-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.ad-action-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
}

.ad-action-btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.ad-action-btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.ad-action-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

/* Modal for External Link Disclosure */
.ad-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
}

.ad-modal-backdrop.active {
  display: flex;
}

.ad-modal-card {
  background: #0d1117;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.2);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  padding: 1.75rem;
  position: relative;
  color: #f8fafc;
}

.ad-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ad-modal-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.ad-modal-url-box {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: #a78bfa;
  word-break: break-all;
}

.ad-modal-text {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ad-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
