/**
 * [RS] Rogue Soldiers - Components
 * Reusable site-wide components. Add cards, forms, badges, tables, modals, etc. here.
 */

/* =====================================================
       BUTTONS
    ====================================================== */

    .btn-rs-primary,
    .btn-rs-secondary {

      border-radius: 0;

      padding:
        13px
        22px;

      font-size: .68rem;

      font-weight: 800;

      letter-spacing: .15em;

      text-transform: uppercase;

    }


    .btn-rs-primary {

      border:
        1px solid
        var(--red);

      background:
        var(--red);

      color: #fff;

    }


    .btn-rs-primary:hover {

      border-color:
        var(--red-bright);

      background:
        var(--red-bright);

      color: #fff;

    }


    .btn-rs-secondary {

      border:
        1px solid
        rgba(255,255,255,.18);

      color:
        rgba(255,255,255,.80);

      background:
        rgba(0,0,0,.16);

    }


    .btn-rs-secondary:hover {

      border-color:
        var(--red-border);

      color: #fff;

      background:
        rgba(189,0,0,.09);

    }

/* =====================================================
   SHARED HERO CONTENT
===================================================== */

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--hero-grid-opacity, .10);
  background-image:
    linear-gradient(rgba(255,255,255,var(--hero-grid-line-alpha, .04)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,var(--hero-grid-line-alpha, .04)) 1px, transparent 1px);
  background-size: var(--hero-grid-size, 70px) var(--hero-grid-size, 70px);
}

.hero-eyebrow {
  margin-bottom: var(--hero-eyebrow-margin, 22px);
  color: var(--red-bright);
  font-size: var(--hero-eyebrow-size, .70rem);
  font-weight: 800;
  letter-spacing: var(--hero-eyebrow-spacing, .33em);
  text-transform: uppercase;
}

.hero-title {
  max-width: var(--hero-title-max, 1100px);
  margin: 0;
  color: #fff;
  font-size: var(--hero-title-size, clamp(4.4rem, 10.5vw, 9.7rem));
  font-weight: 900;
  line-height: var(--hero-title-line-height, .79);
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.38);
}

.hero-copy {
  max-width: var(--hero-copy-max, 670px);
  margin-top: var(--hero-copy-margin, 35px);
  color: var(--hero-copy-color, rgba(255,255,255,.62));
  font-size: var(--hero-copy-size, 1rem);
  line-height: var(--hero-copy-line-height, 1.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* =====================================================
   SITE BUTTON ALIAS
   Lets older pages migrate without keeping a second design.
===================================================== */

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.16);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.site-btn:hover {
  border-color: var(--red-border);
  color: #fff;
  background: rgba(189,0,0,.09);
}
.site-btn.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.site-btn.primary:hover {
  border-color: var(--red-bright);
  background: var(--red-bright);
}


/* =====================================================
       ABOUT
    ====================================================== */

    .about-panel {

      height: 100%;

      padding: 36px;

      border:
        1px solid
        var(--border);

      background:

        linear-gradient(
          145deg,
          rgba(255,255,255,.018),
          rgba(255,255,255,.003)
        );

    }


    .about-icon {

      width: 44px;
      height: 44px;

      display: flex;

      align-items: center;
      justify-content: center;

      margin-bottom: 25px;

      border:
        1px solid
        var(--red-border);

      color:
        var(--red-bright);

      background:
        rgba(189,0,0,.07);

      font-size: 1.1rem;

    }


    .about-title {

      color: #fff;

      font-size: 1.2rem;

      font-weight: 700;

    }


    .about-copy {

      margin-top: 12px;

      color:
        rgba(255,255,255,.40);

      font-size: .88rem;

      line-height: 1.75;

    }


/* =====================================================
       ACTIVITY
    ====================================================== */

    .activity-card {

      height: 100%;

      padding: 30px;

      border:
        1px solid
        var(--border);

      background:
        #0e0e0e;

    }


    .activity-value {

      color: #fff;

      font-size: 2.25rem;

      font-weight: 800;

    }


    .activity-title {

      margin-top: 5px;

      color:
        rgba(255,255,255,.28);

      font-size: .62rem;

      font-weight: 700;

      letter-spacing: .18em;

      text-transform:
        uppercase;

    }


/* =====================================================
       JOIN
    ====================================================== */

    .join-card {

      height: 100%;

      padding: 32px;

      border:
        1px solid
        var(--border);

      background:

        linear-gradient(
          145deg,
          rgba(189,0,0,.05),
          rgba(255,255,255,.01)
        );

    }


    .join-number {

      color:
        var(--red-bright);

      font-size: .62rem;

      font-weight: 800;

      letter-spacing: .20em;

    }


    .join-title {

      margin-top: 18px;

      color: #fff;

      font-size: 1.08rem;

      font-weight: 700;

    }


    .join-copy {

      margin-top: 11px;

      color:
        rgba(255,255,255,.38);

      font-size: .83rem;

      line-height: 1.7;

    }


/* =====================================================
   QUICK INFO
===================================================== */

.quick-info-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 1px;

    margin-top: 45px;

    border:
        1px solid
        var(--border-soft);

    background:
        var(--border-soft);

}


.quick-info-item {

    min-height: 155px;

    padding: 25px;

    background:
        #0d0d0d;

}


.quick-info-icon {

    color:
        var(--red-bright);

    font-size: 1rem;

}


.quick-info-label {

    margin-top: 19px;

    color:
        rgba(255,255,255,.25);

    font-size: .55rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

}


.quick-info-value {

    margin-top: 7px;

    color: #fff;

    font-size: .88rem;

    font-weight: 700;

}


/* =====================================================
   FEATURES
===================================================== */

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 17px;

    margin-top: 48px;

}


.feature-card {

    min-height: 245px;

    padding: 29px;

    border:
        1px solid
        var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.014),
            rgba(255,255,255,.003)
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;

}


.feature-card:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--red-border);

    background:
        linear-gradient(
            145deg,
            rgba(189,0,0,.055),
            rgba(255,255,255,.004)
        );

}


.feature-card-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

}


.feature-card-title {

    margin-top: 23px;

    color: #fff;

    font-size: .96rem;

    font-weight: 800;

}


.feature-card-copy {

    margin-top: 10px;

    color:
        rgba(255,255,255,.36);

    font-size: .76rem;

    line-height: 1.68;

}


/* =====================================================
   RULES
===================================================== */

.rule-list {

    margin-top: 45px;

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

}


.rule-row {

    display: grid;

    grid-template-columns:
        44px
        minmax(0,1fr);

    gap: 16px;

    padding:
        22px
        24px;

    border-bottom:
        1px solid
        var(--border-soft);

}


.rule-row:last-child {
    border-bottom: 0;
}


.rule-number {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

    font-size: .58rem;

    font-weight: 800;

}


.rule-title {

    color: #fff;

    font-size: .82rem;

    font-weight: 700;

}


.rule-copy {

    margin-top: 6px;

    color:
        rgba(255,255,255,.35);

    font-size: .72rem;

    line-height: 1.62;

}


/* =====================================================
   DISCORD TOOLS
===================================================== */

.community-tool-grid {

    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 1px;

    margin-top: 47px;

    border:
        1px solid
        var(--border-soft);

    background:
        var(--border-soft);

}


.community-tool {

    min-height: 205px;

    padding: 27px;

    background:
        #0d0d0d;

}


.community-tool i {

    color:
        var(--red-bright);

    font-size: 1rem;

}


.community-tool-title {

    margin-top: 21px;

    color: #fff;

    font-size: .89rem;

    font-weight: 700;

}


.community-tool-copy {

    margin-top: 8px;

    color:
        rgba(255,255,255,.33);

    font-size: .72rem;

    line-height: 1.62;

}


/* =====================================================
   FINAL CTA
===================================================== */

.final-cta {

    position: relative;

    overflow: hidden;

    padding:
        90px
        0;

    border-top:
        1px solid
        var(--border);

    background:

        radial-gradient(
            circle at 78% 50%,
            rgba(189,0,0,.16),
            transparent 32%
        ),

        #090909;

}


.final-cta-grid {

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: 50px;

    align-items: center;

}


.final-cta-title {

    margin: 0;

    color: #fff;

    font-size:
        clamp(
            2.2rem,
            4vw,
            4.2rem
        );

    font-weight: 900;

    line-height: .95;

    letter-spacing: -.045em;

    text-transform: uppercase;

}


.final-cta-copy {

    max-width: 720px;

    margin-top: 15px;

    color:
        rgba(255,255,255,.39);

    font-size: .79rem;

    line-height: 1.7;

}


.final-cta-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}


/* =====================================================
   SHARED COMPONENT RESPONSIVE RULES
===================================================== */
@media (max-width: 1199.98px) {
  .quick-info-grid,
  .community-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .final-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .quick-info-grid,
  .feature-grid,
  .community-tool-grid { grid-template-columns: 1fr; }
  .final-cta-actions { flex-direction: column; }
}
