/* ==========================================================================
   Student Benefits Page Styles - Arcix
   Compatible with Arcix Dark & Light Themes
   ========================================================================== */

/* Page Wrapper */
.student-page {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 130px 24px 80px;
  background-color: var(--bg);
  overflow: hidden;
}

/* Ambient Glow */
.ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(45px);
}

html.light .ambient-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 40%, transparent 70%);
}

/* Main Container */
.student-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* Header Section */
.student-header {
  text-align: center;
  margin-bottom: 48px;
}

.student-header .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

html.light .student-header .badge {
  background: rgba(0, 0, 0, 0.04);
}

.page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: clamp(15px, 2vw, 16px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  margin-bottom: 40px;
}

/* Benefit Card */
.benefit-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

html.light .benefit-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.benefit-card:hover .card-glow {
  opacity: 1;
}

/* Icon Wrapper */
.benefit-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
  transform: scale(1.06);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.8;
  display: block;
}

/* Benefit Information */
.benefit-info {
  margin-bottom: 20px;
  width: 100%;
}

.benefit-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Verification Action Banner */
.verification-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.verification-banner h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.verification-banner p {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin: 0;
  line-height: 1.55;
}

.verify-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 999px;
  background: var(--fg);
  color: #111;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

html.light .verify-cta-button {
  background: #111;
  color: #fff;
}

.verify-cta-button:hover {
  opacity: 0.92;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.verify-cta-button:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Email Composer Panel (Gmail Mockup)
   ========================================================================== */
.email-composer-panel {
  width: 100%;
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: left;
  animation: composerFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.email-composer-panel.hidden {
  display: none;
}

@keyframes composerFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Composer Window Header */
.composer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.composer-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.composer-dots .dot.red { background: #ff5f56; }
.composer-dots .dot.yellow { background: #ffbd2e; }
.composer-dots .dot.green { background: #27c93f; }

.composer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Composer Body */
.composer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Composer Field */
.composer-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.field-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.field-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  font-family: 'DM Mono', monospace, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Copy Button */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

html.light .btn-copy {
  background: rgba(0, 0, 0, 0.05);
}

.btn-copy:hover {
  background: var(--fg);
  color: #111;
  border-color: var(--fg);
  transform: translateY(-1px);
}

html.light .btn-copy:hover {
  background: #111;
  color: #fff;
}

.btn-copy.copied {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  border-color: #22c55e !important;
}

.copy-icon {
  width: 14px;
  height: 14px;
}

/* Field Body Area (Content Text) */
.composer-field-body {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
}

.field-body-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg);
  white-space: pre-wrap;
  user-select: all;
}

/* Composer Footer Action Bar */
.composer-footer {
  padding: 16px 24px;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.composer-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.btn-open-gmail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.btn-open-gmail:hover {
  opacity: 0.8;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 70px);
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-icon {
  width: 17px;
  height: 17px;
  stroke: #4ade80;
  stroke-width: 2.2;
}

html.light .toast {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .student-page {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card {
    padding: 30px 20px;
  }

  .verification-banner {
    padding: 24px 20px;
  }

  .composer-field {
    flex-direction: column;
    align-items: flex-start;
  }

  .composer-field .btn-copy {
    align-self: flex-end;
  }

  .composer-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
