/* ============================================
   WORD OF THE DAY CARD COMPONENT
   Reusable component with multiple variants
   ============================================ */

:root {
  --wotd-bg: var(--home-page-bg, #f7f9ff);
  --wotd-surface: var(--home-page-surface, rgba(255,255,255,.78));
  --wotd-surface-2: var(--home-page-surface-2, rgba(255,255,255,.92));
  --wotd-border: var(--home-page-border, rgba(20, 30, 60, .10));
  --wotd-text: var(--home-page-text, #0b1220);
  --wotd-muted: var(--home-page-muted, rgba(11, 18, 32, .62));
  --wotd-blue: var(--home-page-blue, #1557ff);
  --wotd-green: var(--home-page-green, #16c995);
  --wotd-amber: var(--home-page-amber, #ffb841);
  --wotd-radius-lg: var(--home-page-radius-lg, 22px);
  --wotd-radius-md: var(--home-page-radius-md, 16px);
  --wotd-radius-sm: var(--home-page-radius-sm, 12px);
  --wotd-shadow: var(--home-page-shadow, 0 12px 30px rgba(10, 20, 40, .10), 0 2px 8px rgba(10, 20, 40, .06));
  --wotd-shadow-soft: var(--home-page-shadow-soft, 0 10px 25px rgba(10, 20, 40, .08), 0 2px 10px rgba(10, 20, 40, .04));
}

/* ============================================
   BASE CARD
   ============================================ */

.wotd-card {
  border: 1px solid var(--wotd-border);
  border-radius: var(--wotd-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow: var(--wotd-shadow);
  overflow: hidden;
  position: relative;
}

.wotd-card__inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================================
   COMPACT VARIANT (Home page sidebar)
   ============================================ */

.wotd-card--compact {
  height: 100%;
}

.wotd-card--compact .wotd-card__inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wotd-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
}

.wotd-card__label {
  display: flex;
  flex-direction: column;
}

.wotd-card__kicker {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 12px;
  color: rgba(11,18,32,.62);
}

.wotd-card__date {
  font-size: 14px;
  color: var(--wotd-muted);
  margin-top: 2px;
}

.wotd-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,184,65,.16);
  border: 2px dashed rgba(255,184,65,.26);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
  color: #db9729;
}

.wotd-card--compact .wotd-card__word {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  width: 100%;
}

.wotd-card__word {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}

.wotd-card__word a {
  color: var(--wotd-text);
  text-decoration: none;
  transition: color .15s ease;
}

.wotd-card__word a:hover {
  color: var(--wotd-blue);
}

.wotd-card--compact .wotd-card__pron {
  color: rgba(11,18,32,.70);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.wotd-card__pron {
  color: rgba(11,18,32,.70);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.wotd-card--compact .wotd-card__def {
  margin: 0 0 16px;
  color: var(--wotd-muted);
  line-height: 1.5;
  font-size: 14px;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.wotd-card__def {
  margin: 0 0 16px;
  color: var(--wotd-muted);
  line-height: 1.5;
  font-size: 14px;
}

.wotd-card--compact .wotd-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.wotd-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wotd-card__btn,
.wotd-card__btn-audio {
  border: 1px solid rgba(21,87,255,.25);
  background: rgba(21,87,255,.16);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .15s ease;
  box-shadow: 0 10px 20px rgba(10,20,40,.08);
  font-size: 14px;
  text-decoration: none;
  color: var(--wotd-text);
}

.wotd-card__btn:hover,
.wotd-card__btn-audio:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(10,20,40,.12);
  background: rgba(21,87,255,.22);
  border-color: rgba(21,87,255,.35);
}

.wotd-card__btn:active,
.wotd-card__btn-audio:active {
  transform: translateY(0);
}

.wotd-card__btn--primary {
  background: rgba(21,87,255,.20);
  border-color: rgba(21,87,255,.30);
}

.wotd-card__btn--primary:hover {
  background: rgba(21,87,255,.28);
  border-color: rgba(21,87,255,.40);
  box-shadow: 0 12px 24px rgba(10,20,40,.12);
}

.wotd-card__button {
  background: rgba(21,87,255,.20);
  border-color: rgba(21,87,255,.30);
  color: var(--wotd-text);
}

.wotd-card__button:hover {
  background: rgba(21,87,255,.28);
  border-color: rgba(21,87,255,.40);
  box-shadow: 0 12px 24px rgba(10,20,40,.12);
}


/* ============================================
   FULL VARIANT (Word A Day page)
   ============================================ */

.wotd-card--full {
  background: var(--wotd-surface);
  padding: 24px;
}

@media (max-width: 640px) {
  .wotd-card--full {
    padding: 20px;
  }
}

.wotd-card--full .wotd-card__header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20,30,60,.10);
}

.wotd-card--full .wotd-card__word {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}

.wotd-card--full .wotd-card__pronunciation {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wotd-muted);
}

.wotd-card__audio-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(21,87,255,.25);
  background: rgba(21,87,255,.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  box-shadow: 0 10px 18px rgba(10,20,40,.08);
  padding: 0;
}

.wotd-card__audio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(10,20,40,.12);
  background: rgba(21,87,255,.9);
  border-color: rgba(21,87,255,.35);
}

.wotd-card__audio-btn i {
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
}

.wotd-card__btn-icon,
.wotd-card__btn i {
  font-size: 16px;
  line-height: 1;
}

.wotd-card__phonetic {
  font-weight: 800;
  font-size: 14px;
  color: rgba(11,18,32,.70);
}

.wotd-card__definition {
  margin-top: 20px;
}

.wotd-card__definition h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wotd-muted);
  margin-bottom: 8px;
  font-weight: 900;
}

.wotd-card__definition p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--wotd-text);
}

.wotd-card__definition dfn {
  font-style: italic;
  color: var(--wotd-green);
  font-weight: 700;
}

.wotd-card__sentence {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(20,30,60,.10);
}

.wotd-card__sentence h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wotd-muted);
  margin-bottom: 8px;
  font-weight: 900;
}

.wotd-card__sentence p {
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: var(--wotd-text);
}

.wotd-card--full .wotd-card__actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(20,30,60,.10);
}

.wotd-card--full .wotd-card__btn {
  padding: 12px 18px;
  font-size: 14px;
}



/* ============================================
   NEW WORD OF THE DAY CARD STYLE (index.php style)
   ============================================ */

.word-of-day-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #bbd8ed;
  color: rgba(11, 18, 32, 0.75);
}

.wod-header-left {
  flex: 1;
}

.wod-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: rgba(11, 18, 32, 0.85);
}

.wod-date {
  font-size: 14px;
  color: rgba(11, 18, 32, 0.65);
  margin: 0;
}

.wod-calendar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 18, 32, 0.1);
}

.wod-day {
  font-size: 22px;
  font-weight: 800;
  color: rgba(11, 18, 32, 0.75);
}

.wod-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #f8f9ff;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .wod-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .wod-share-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

.wod-share-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.wod-share-buttons {
  display: flex;
  gap: 10px;
}

.wod-share-button {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(20,30,60,.10);
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 18px rgba(10,20,40,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11,18,32,.78);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.wod-share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(10,20,40,.10);
  background: rgba(21,87,255,.06);
}

.wod-share-button i {
  font-size: 18px;
  color: rgba(11,18,32,.78);
  line-height: 1;
}

.wod-content {
  padding: 24px 20px;
  text-align: center;
}

.wod-word {
  font-size: 42px;
  font-weight: 900;
  color: #ff6b35;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.wod-phonetic {
  font-size: 18px;
  color: #666;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.wod-audio {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.wod-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.wod-audio-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.wod-word-audio {
  color: #4f6df5;
  border-color: #4f6df5;
}

.wod-sentence-audio {
  color: #00a86b;
  border-color: #00a86b;
}

.wod-audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wod-definition,
.wod-example {
  text-align: left;
  margin: 16px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.wod-definition strong,
.wod-example strong {
  color: #333;
}

.wod-definition a,
.wod-example a {
  color: #1652D0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(21,87,255,.3);
  transition: all .15s ease;
}

.wod-definition a:hover,
.wod-example a:hover {
  color: #0EB759;
  text-decoration-color: rgba(22,201,149,.5);
}

.wod-cta {
  display: inline-block;
  margin: 20px 0 16px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #00a86b 0%, #007a55 100%);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  transition: all 0.3s;
}

.wod-cta:hover {
  transform: translateY(-3px);
}

.wod-tip {
  font-size: 13px;
  color: #777;
  margin-top: 12px;
}

.wod-tip kbd {
  background: #eee;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: monospace;
  font-weight: bold;
}

@media (max-width: 980px) {
  .word-of-day-card {
    max-width: 100%;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .wotd-card--compact .wotd-card__inner {
    padding: 18px;
  }
  
  .wotd-card--compact .wotd-card__word {
    font-size: 28px;
  }
  
  .wotd-card__actions {
    flex-direction: column;
  }
  
  .wotd-card__btn,
  .wotd-card__btn-audio {
    width: 100%;
    justify-content: center;
  }
}

