/* ============================================================
 *  Experience Column v2 — Visual Upgrade
 *  List page + detail page + submission form
 * ============================================================ */

/* ─── List Hero ────────────────────────────────────────────── */
.exp-page {
  min-height: calc(100vh - 70px);
  background: var(--bg-page);
}

.exp-hero {
  position: relative;
  padding: 130px 0 64px;
  margin-top: -70px;
  background:
    radial-gradient(ellipse at top right, rgba(45, 140, 212, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(232, 168, 56, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #0A2540 0%, #132F52 60%, #1A3A63 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.exp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 25%, transparent 70%);
  pointer-events: none;
}
.exp-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 50px;
  background: var(--bg-page);
  clip-path: ellipse(65% 100% at 50% 100%);
  -webkit-clip-path: ellipse(65% 100% at 50% 100%);
}
.exp-hero .container { position: relative; z-index: 1; }

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(232, 168, 56, 0.12);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #F5C76B;
  margin-bottom: 20px;
}

.exp-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}
.exp-title em {
  font-style: normal;
  background: linear-gradient(135deg, #F5C76B 0%, #E8A838 50%, #F5D28A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.exp-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.exp-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.exp-stat { text-align: center; }
.exp-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.exp-stat .num span { color: #E8A838; font-size: 20px; }
.exp-stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Filter Bar ───────────────────────────────────────────── */
.exp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.exp-filter-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.exp-filter-btn {
  padding: 7px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.exp-filter-btn:hover {
  background: var(--color-blue-50);
  border-color: var(--color-blue-100);
  color: var(--color-blue-600);
}
.exp-filter-btn.is-active {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
  color: #fff;
  font-weight: 600;
}
.exp-filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.exp-filter-sort select {
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}

/* ─── Experience Cards Grid ───────────────────────────────── */
.exp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.exp-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}
.exp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.10), 0 4px 12px rgba(10, 37, 64, 0.06);
}
.exp-card__cover {
  height: 140px;
  background: linear-gradient(135deg, #132F52 0%, #1D6FB8 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}
.exp-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.exp-card__tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.exp-card__body { padding: 20px; }
.exp-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exp-card__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exp-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.exp-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.exp-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.exp-card__author-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.exp-card__date {
  font-size: 12px;
  color: var(--text-light);
}

/* ─── Pagination ───────────────────────────────────────────── */
.exp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.exp-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.exp-page-btn:hover {
  border-color: var(--color-blue-300);
  color: var(--color-blue-600);
}
.exp-page-btn.is-active {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
  color: #fff;
  font-weight: 600;
}
.exp-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Detail Page ──────────────────────────────────────────── */
.exp-detail-hero {
  position: relative;
  padding: 130px 0 48px;
  margin-top: -70px;
  background:
    radial-gradient(ellipse at top right, rgba(45, 140, 212, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0A2540 0%, #132F52 70%, #1A3A63 100%);
  color: #fff;
  overflow: hidden;
}
.exp-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
  pointer-events: none;
}
.exp-detail-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 50px;
  background: var(--bg-page);
  clip-path: ellipse(65% 100% at 50% 100%);
  -webkit-clip-path: ellipse(65% 100% at 50% 100%);
}
.exp-detail-hero .container { position: relative; z-index: 1; max-width: 820px; }

.exp-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.exp-detail-breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.exp-detail-breadcrumb a:hover { color: #fff; }
.exp-detail-breadcrumb .sep { color: rgba(255, 255, 255, 0.3); }

.exp-detail-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(232, 168, 56, 0.15);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #F5C76B;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.exp-detail-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}

.exp-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.exp-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-detail-author__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D6FB8, #2D8CD4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.exp-detail-author__name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.exp-detail-author__role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.exp-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.exp-detail-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.exp-detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.exp-detail-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.exp-detail-action-btn.is-active {
  background: rgba(232, 168, 56, 0.2);
  border-color: rgba(232, 168, 56, 0.35);
  color: #E8A838;
}

/* ─── Detail Content ───────────────────────────────────────── */
.exp-detail-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px;
}
.exp-detail-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.exp-detail-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}
.exp-detail-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 16px;
}
.exp-detail-content ul,
.exp-detail-content ol {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 16px;
}
.exp-detail-content li { margin-bottom: 6px; }
.exp-detail-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--color-gold-500);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}
.exp-detail-content code {
  padding: 2px 6px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--color-blue-600);
}
.exp-detail-content img {
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
}

/* ─── Related Experiences ──────────────────────────────────── */
.exp-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  border-top: 1px solid var(--border-default);
}
.exp-related h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.exp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ─── Submit Form ──────────────────────────────────────────── */
.exp-submit-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.exp-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.exp-form-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.exp-form-card__intro {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .required {
  color: var(--color-red-500);
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(45, 140, 212, 0.12);
}
.form-control.textarea { resize: vertical; min-height: 150px; }
.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ─── Dark mode ────────────────────────────────────────────── */
html[data-theme="dark"] .exp-hero,
html[data-theme="dark"] .exp-detail-hero {
  background:
    radial-gradient(ellipse at top right, rgba(45, 140, 212, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #051830 0%, #0A2540 70%, #132F52 100%);
}
html[data-theme="dark"] .exp-hero::after,
html[data-theme="dark"] .exp-detail-hero::after {
  background: var(--bg-page);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .exp-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .exp-hero { padding: 110px 0 48px; }
  .exp-title { font-size: 30px; }
  .exp-subtitle { font-size: 15px; }
  .exp-stats-row { gap: 24px; flex-wrap: wrap; }
  .exp-stat .num { font-size: 22px; }
  .exp-cards-grid { grid-template-columns: 1fr; }
  .exp-filter-bar { flex-direction: column; align-items: stretch; }
  .exp-detail-title { font-size: 26px; }
  .exp-detail-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .exp-detail-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .exp-related-grid { grid-template-columns: 1fr; }
  .exp-form-card { padding: 24px 20px; }
}

/* ─── Print ────────────────────────────────────────────────── */
@media print {
  .exp-hero, .exp-detail-hero { background: #fff !important; color: #000 !important; }
  .exp-hero *, .exp-detail-hero * { color: #000 !important; }
  .exp-hero::before, .exp-detail-hero::before,
  .exp-hero::after, .exp-detail-hero::after { display: none; }
  .exp-detail-actions, .exp-filter-bar, .exp-pagination { display: none; }
}
