/* ============================================================
   STRATÉGIE MATHS — DESIGN SYSTEM
   Version 1.0
   ============================================================ */


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

.sm-card{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:100%;
  min-width:0;
  height:100%;
  min-height:220px;
  overflow:hidden;
  box-sizing:border-box;
  transition:transform .22s ease, box-shadow .22s ease;

  background:
    linear-gradient(
      180deg,
      rgba(106,27,154,.045),
      rgba(255,255,255,0) 82px
    ),
    #ffffff;

  border:2px solid rgba(106,27,154,.12);
  border-radius:22px;
  padding:22px 20px 20px;
  box-shadow:0 14px 32px rgba(32,12,56,.10);
}

.sm-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(32,12,56,.15);
}

/* ============================================================
   CARD HEADER
   ============================================================ */

.sm-card__top{
  min-height:42px;
  display:flex;
  align-items:center;
  margin:-22px -20px 18px;
  padding:0 18px;
  box-sizing:border-box;
  border-radius:20px 20px 0 0;
  background:linear-gradient(90deg,#6a1b9a,#d81b60,#f57c00);
  color:#ffffff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
}

/* ============================================================
   CARD TITLE
   ============================================================ */

.sm-card__title{
  margin:0 0 8px;
  padding-right:150px;
  color:#241135;
  font-size:18px;
  font-weight:900;
  line-height:1.2;
}

@media(max-width:900px){
  .sm-card__title{
    padding-right:128px;
  }
}

/* ============================================================
   CARD META
   ============================================================ */

.sm-card__meta{
  margin-bottom:10px !important;
  color:#f57c00 !important;
  font-size:14px !important;
  font-weight:900 !important;
}

/* ============================================================
   CARD EDITION
   ============================================================ */

.sm-card__edition{
  margin:0 0 8px;
  color:#d81b60;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
}

/* ============================================================
   BUTTON
   ============================================================ */

.sm-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:8px;
  box-sizing:border-box;

  color:#ffffff;
  text-decoration:none;

  border-radius:8px;
  min-height:44px;
  padding:12px 16px;

  font-size:14px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.01em;
  text-align:center;
  white-space:normal;

  background:linear-gradient(135deg,#d81b60,#f57c00);
  box-shadow:0 8px 18px rgba(216,27,96,.18);

  transition:
    transform .2s ease,
    filter .2s ease,
    box-shadow .2s ease;
}

.sm-button:hover{
  background:#b3154f;
  color:#ffffff;
  transform:translateY(-2px);
  filter:brightness(1.03);
  box-shadow:0 8px 18px rgba(216,27,96,.24);
}

@media(max-width:900px){
  .sm-button{
    border-radius:11px;
    font-size:13px;
    padding:11px 12px;
  }
}

/* ============================================================
   UPDATE BOX
   ============================================================ */

.sm-update-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  min-height:0;
  height:auto;
  margin-top:16px;
  margin-bottom:0;
  padding:8px 10px;
  box-sizing:border-box;
  border:2px solid #6a1b9a;
  background:#f3e5f5;
  border-radius:10px;
  font-size:12px;
  line-height:1.3;
  text-align:center;
  box-shadow:none;
  animation:none;
}

.sm-update-box__text{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  color:#6a1b9a;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
  text-align:center;
}

.sm-update-main{
  display:inline;
  color:#6a1b9a;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
}

.sm-update-sub{
  display:inline;
  width:auto;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#d81b60;
  font-size:12px;
  font-weight:900;
  line-height:1.3;
  opacity:1;
}

.sm-update-box__btnWrap{
  display:block;
  width:100%;
  margin-top:6px;
  text-align:center;
}

.sm-update-box__btn{
  display:inline-block;
  width:auto;
  min-height:0;
  padding:6px 14px;
  border-radius:999px;
  background:#d81b60;
  color:#ffffff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  border:0;
  box-shadow:none;
  white-space:nowrap;
  transform:none;
}

.sm-update-box__btn:hover{
  background:#d81b60;
  color:#ffffff;
  opacity:.9;
  text-decoration:none;
  transform:none;
  box-shadow:none;
}

/* ============================================================
   RECORD LINE
   ============================================================ */

.sm-card__record-line{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 8px;
  padding:8px 12px;
  border-radius:999px;
  background:#f5eefb;
  color:#6a1b9a;
  border:2px solid rgba(106,27,154,.22);
  font-weight:950;
  text-align:center;
  box-shadow:0 4px 12px rgba(106,27,154,.12);
}

.sm-card__record-line *{
  color:#6a1b9a;
  font-weight:950;
}

/* ============================================================
   SCORE
   ============================================================ */

.sm-card__score{
  margin:12px 0 16px !important;
}

.sm-card__score-badge{
  position:absolute !important;
  top:54px !important;
  right:-14px !important;
  min-width:132px !important;
  max-width:150px !important;
  min-height:0 !important;
  padding:10px 18px !important;
  font-size:12px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  letter-spacing:.06em !important;
  text-align:center !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  border-radius:8px !important;
  box-shadow:0 6px 14px rgba(0,0,0,.13) !important;
  z-index:3 !important;
}

.sm-card__score-badge--done{
  background:linear-gradient(135deg,#6a1b9a,#8e24aa) !important;
  color:#ffffff !important;
  border:0 !important;
}

.sm-card__score-badge--progress{
  background:linear-gradient(135deg,#f57c00,#ff9800) !important;
  color:#ffffff !important;
  border:0 !important;
}

.sm-card__score-badge--todo{
  background:linear-gradient(135deg,#d81b60,#ec407a) !important;
  color:#ffffff !important;
  border:0 !important;
}

@media(max-width:900px){
  .sm-card__score-badge{
    min-width:118px !important;
    max-width:132px !important;
    padding:9px 14px !important;
    font-size:11px !important;
  }
}