/* ========================================
   FRIKICRAFT - HERRAMIENTAS TIER 7
======================================== */

.tier7-page {
  overflow-x: hidden;
}


.tier7-container {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 70px) 0 75px;
}

.tier7-back {
  display: inline-block;
  color: #efc8fa;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  transition: color .2s ease;
}
.tier7-back:hover { color: var(--pink); }


/* HERO */
.tier7-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 24px 40px;
  margin: 28px 0 32px;
  border: 1px solid rgba(237, 40, 255, .3);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(140, 20, 217, .22), transparent 65%),
    linear-gradient(145deg, rgba(48, 8, 61, .75), rgba(16, 0, 22, .92));
  box-shadow: inset 0 0 45px rgba(140, 20, 217, .06), 0 0 30px rgba(140, 20, 217, .05);
}
.tier7-kicker {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.tier7-emblem {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin: 24px auto 18px;
  border: 1px solid rgba(237, 40, 255, .6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 40, 255, .16), rgba(16, 0, 22, .4) 70%);
  box-shadow: 0 0 30px rgba(237, 40, 255, .12), inset 0 0 20px rgba(237, 40, 255, .08);
}
.tier7-emblem span {
  color: var(--pink);
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(237, 40, 255, .45);
}
.tier7-hero h1 {
  margin: 0;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: .04em;
}
.tier7-hero h1 span {
  color: var(--pink);
  text-shadow: 0 0 22px rgba(237, 40, 255, .3);
}
.tier7-subtitle {
  margin: 15px 0 0;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
}
.tier7-description {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.85;
}
.tier7-hero-line {
  width: 76px;
  height: 2px;
  margin: 26px auto 0;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}


/* NOTICE */
.tier7-warning {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 230, 74, .25);
  border-radius: 8px;
  background: rgba(255, 230, 74, .035);
}
.tier7-warning .warning-icon {
  color: var(--yellow);
  font-size: 1.5rem;
}
.tier7-warning p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}
.tier7-warning strong {
  color: var(--yellow);
  letter-spacing: .1em;
  font-size: .72rem;
}


/* PHASE CARDS */
.tier7-phases {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tier7-phase {
  position: relative;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(229, 90, 255, .2);
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(54, 12, 68, .4), rgba(16, 0,22, .82));
  transition: border-color .25s ease, transform .25s ease;
}
.tier7-phase:hover {
  border-color: rgba(237, 40, 255, .55);
  transform: translateY(-2px);
}
.phase-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}
.phase-number {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(237, 40, 255, .4);
  border-radius: 7px;
  color: var(--pink);
  background: rgba(237, 40, 255, .07);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}
.phase-label {
  color: #d28be0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.phase-heading h2 {
  margin: 5px 0 0;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
}
.phase-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.8;
}
.phase-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.tier7-item {
  padding: 8px 11px;
  border: 1px solid rgba(237, 40, 255, .22);
  border-radius: 5px;
  color: #f3d9fa;
  background: rgba(237, 40, 255, .055);
  font-size: .75rem;
}
.materials-title {
  margin: 22px 0 10px;
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.tier7-materials {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
}
.tier7-materials li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(229, 90, 255, .12);
  border-radius: 6px;
  background: rgba(16, 0, 22, .35);
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.material-count {
  flex: 0 0 auto;
  color: var(--pink);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}


/* IMAGE PLACEHOLDERS - replace these blocks with your screenshots later */
.tier7-image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 24px;
  border: 1px dashed rgba(237, 40, 255, .4);
  border-radius: 8px;
  background:
    linear-gradient(rgba(237, 40, 255, .025), rgba(237, 40, 255, .025)),
    rgba(16, 0, 22, .35);
  text-align: center;
}
.image-slot-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  border: 1px solid rgba(237, 40, 255, .3);
  border-radius: 50%;
  color: var(--pink);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
}
.tier7-image-slot > span:not(.image-slot-mark) {
  color: var(--pink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.tier7-image-slot p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}
.phase-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 230, 74, .25);
  border-radius: 6px;
  background: rgba(255, 230, 74, .035);
  text-align: center;
}
.phase-result span {
  color: #bca47a;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .17em;
}
.phase-result strong {
  color: var(--yellow);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.tier7-phase-final {
  border-color: rgba(237, 40, 255, .4);
  background: linear-gradient(115deg, rgba(70, 12, 85, .48), rgba(16, 0,22, .86));
}
.tier7-final-slot {
  border-color: rgba(237, 40, 255, .65);
  min-height: 340px;
  background: radial-gradient(ellipse at center, rgba(140, 20, 217, .12), rgba(16, 0, 22, .42));
}
.phase-result-final {
  border-color: rgba(237, 40, 255, .45);
  background: rgba(237, 40, 255, .07);
}
.phase-result-final span,
.phase-result-final strong {
  color: var(--pink);
}


/* CLOSING */
.tier7-finale {
  margin-top: 35px;
  padding: 34px 20px;
  border-top: 1px solid rgba(229, 90, 255, .2);
  text-align: center;
}
.tier7-finale > span {
  color: var(--yellow);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.tier7-finale h2 {
  margin: 13px 0;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.7rem);
}
.tier7-finale h2 span { color: var(--pink); }
.tier7-finale p {
  max-width: 560px;
  margin: 0 auto 23px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.75;
}
.tier7-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid rgba(237, 40, 255, .4);
  border-radius: 5px;
  color: #f7dafa;
  background: rgba(237, 40, 255, .07);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s ease, border-color .2s ease;
}
.tier7-return-button:hover {
  border-color: var(--pink);
  background: rgba(237, 40, 255, .16);
}


/* RESPONSIVE */
@media (max-width: 650px) {
  .tier7-container {
    width: calc(100% - 28px);
    padding-top: 35px;
    padding-bottom: 45px;
  }
  .tier7-hero {
    padding: 35px 16px 30px;
    margin-top: 23px;
  }
  .tier7-emblem {
    width: 72px;
    height: 72px;
    margin: 20px auto 16px;
  }
  .tier7-emblem span { font-size: 2rem; }
  .tier7-description { font-size: .84rem; }
  .tier7-warning {
    align-items: flex-start;
    padding: 15px;
  }
  .tier7-phase {
    padding: 18px 15px;
  }
  .phase-heading { gap: 12px; }
  .phase-number {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
    font-size: 1.3rem;
  }
  .phase-label { font-size: .58rem; }
  .phase-heading h2 { font-size: 1.5rem; }
  .tier7-materials { grid-template-columns: minmax(0, 1fr); }
  .tier7-image-slot { min-height: 210px; padding: 18px; }
  .tier7-final-slot { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .tier7-back,
  .tier7-phase,
  .tier7-return-button { transition: none; }
}
