/* ═══════════════════════════════════════════════
   pages.css — About, Careers, News content pages
═══════════════════════════════════════════════ */

/* ── PAGE WRAPPER ────────────────────────────── */
.page-main {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--gray-soft);
}

/* ── PAGE HERO ───────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110px 44px at 7% 22%, rgba(232,83,122,0.32) 0%, transparent 75%),
    radial-gradient(ellipse 70px 70px at 92% 28%, rgba(168,85,200,0.22) 0%, transparent 75%),
    radial-gradient(ellipse 80px 32px at 80% 78%, rgba(246,158,11,0.2) 0%, transparent 75%),
    radial-gradient(ellipse 60px 60px at 18% 80%, rgba(110,207,196,0.2) 0%, transparent 75%),
    var(--grad-hero);
  padding: 80px 24px 72px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  position: relative;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative;
}

/* ── PAGE CONTAINER ──────────────────────────── */
.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── PAGE SECTION (white card) ───────────────── */
.page-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(232, 83, 122, 0.07);
}

.page-section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2.5px solid var(--rose-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Accent dot before section titles */
.page-section h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-rose);
  flex-shrink: 0;
}

.page-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.page-section p:last-child { margin-bottom: 0; }

/* ── VALUES GRID ─────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.value-card {
  border-radius: var(--radius-md);
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Per-card brand colour theming */
.value-card:nth-child(1) {
  background: var(--rose-pale);
}
.value-card:nth-child(2) {
  background: var(--lavender-soft);
}
.value-card:nth-child(3) {
  background: var(--honey-light);
}
.value-card:nth-child(4) {
  background: #D5F5F0; /* mint pale */
}

.value-card .value-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin: 0 !important;
  line-height: 1.65;
}

/* ── GAMES GRID (About page) ─────────────────── */
.pg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pg-game-card {
  background: var(--gray-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(232, 83, 122, 0.1);
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.pg-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pg-game-card-art {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pg-game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.pg-game-card:hover .pg-game-card-art img {
  transform: scale(1.05);
}

.pg-game-card-info {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pg-game-card-info img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.pg-game-card-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 3px;
}

.pg-game-card-info p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 !important;
}

.pg-game-badge {
  display: inline-block;
  background: var(--grad-rose);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.pg-game-card--soon {
  cursor: default;
  border-style: dashed;
  border-color: rgba(232, 83, 122, 0.25);
}

.pg-game-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.pg-coming-soon-art {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-pale), var(--lavender-soft));
  font-size: 3rem;
}

/* ── ROLES LIST (Careers) ────────────────────── */
.roles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.role-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  border: 1.5px solid rgba(232, 83, 122, 0.08);
  border-left: 5px solid var(--rose);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-left-color 0.22s;
}

.role-item:nth-child(2) {
  border-left-color: var(--lavender);
}
.role-item:nth-child(3) {
  border-left-color: var(--mint);
}

.role-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.role-item .role-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-item:nth-child(2) .role-icon {
  background: var(--lavender-soft);
}
.role-item:nth-child(3) .role-icon {
  background: #D5F5F0;
}

.role-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 6px;
}

.role-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 !important;
}

/* ── CAREERS VIDEO ───────────────────────────── */
.careers-video-wrap {
  width: 100%;
  max-width: 600px;
  margin: 28px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.careers-video-wrap video {
  width: 100%;
  display: block;
}

/* ── CTA BOX ─────────────────────────────────── */
.page-cta-box {
  background: var(--grad-magic);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle blob decoration */
.page-cta-box::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -60px;
  right: -40px;
  pointer-events: none;
}
.page-cta-box::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -40px;
  left: -20px;
  pointer-events: none;
}

.page-cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

/* Override the ::before from .page-section h2 */
.page-cta-box h2::before { display: none; }

.page-cta-box p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.72;
}

.btn--white {
  background: var(--white);
  color: var(--rose-dark);
  font-weight: 700;
  padding: 14px 38px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

/* ── NEWS GRID ───────────────────────────────── */
/* (news-card styles live in style.css; container here) */
.news-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

/* ── APPLICATION MODAL ───────────────────────── */
.apply-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.apply-modal.active {
  display: flex;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.apply-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
}

.apply-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 40px 40px 36px;
  position: relative;
  box-shadow: 0 24px 80px rgba(59, 7, 100, 0.22), 0 4px 20px rgba(0, 0, 0, 0.12);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.apply-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gray-soft);
  color: var(--text-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.apply-modal-close:hover {
  background: var(--rose-pale);
  color: var(--rose-dark);
}

/* Modal header */
.apply-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.apply-modal-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.apply-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 6px;
}

.apply-modal-header p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

/* Form layout */
.apply-form { display: flex; flex-direction: column; gap: 18px; }

.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: 0.2px;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  border: 1.5px solid rgba(196, 79, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  width: 100%;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 83, 122, 0.12);
}

.apply-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a855a8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.apply-field textarea { resize: vertical; min-height: 100px; }

.apply-field-hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
}

/* File upload */
.apply-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apply-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--rose-pale);
  color: var(--rose-dark);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(232, 83, 122, 0.25);
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.apply-file-btn:hover {
  background: var(--lavender-soft);
  border-color: rgba(168, 85, 200, 0.35);
}

.apply-file-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.apply-file-name {
  font-size: 0.82rem;
  color: var(--text-soft);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

/* Error message */
.apply-error-msg {
  font-size: 0.85rem;
  color: #d63838;
  background: #fff0f0;
  border-radius: var(--radius-sm);
  padding: 0;
  margin: 0;
  min-height: 0;
  transition: padding 0.18s;
}

.apply-error-msg:not(:empty) {
  padding: 10px 14px;
}

/* Submit button */
.apply-submit-btn {
  background: var(--grad-rose);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(232, 83, 122, 0.35);
  align-self: stretch;
}

.apply-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232, 83, 122, 0.4);
}

.apply-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success panel */
.apply-success {
  text-align: center;
  padding: 20px 0 8px;
}

.apply-success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: successBounce 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes successBounce {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.apply-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 12px;
}

.apply-success p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}

.apply-success-close {
  display: inline-block;
  background: var(--grad-rose);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 16px rgba(232, 83, 122, 0.3);
}

.apply-success-close:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 60px 20px 52px; }
  .page-section { padding: 28px 22px; }
  .page-cta-box { padding: 40px 24px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .role-item { gap: 14px; }
  .role-item .role-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .apply-modal-box { padding: 32px 24px 28px; }
  .apply-row { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 480px) {
  .pg-games-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .page-section h2 { font-size: 1.3rem; }
  .role-item { padding: 18px 16px; }
  .apply-modal-inner { padding: 16px 12px; }
  .apply-modal-box { padding: 28px 18px 24px; }
  .apply-modal-header h2 { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .page-hero { padding: 50px 16px 44px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-cta-box { padding: 32px 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .apply-modal-box { padding: 20px 14px; }
  .apply-modal-header h2 { font-size: 1.25rem; }
}
