/* ==========================================================================
   SCOPPIATOMC - CYBER COMPONENTS & UI ELEMENTS
   ========================================================================== */

/* ==========================================================================
   1. CYBER BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--hacker-green);
  color: #020804;
  box-shadow: 0 0 15px var(--matrix-glow);
  border-color: var(--hacker-green);
}

.btn-primary:hover {
  background: var(--toxic-green);
  box-shadow: 0 0 25px var(--matrix-glow-heavy);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid var(--border-matrix);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(0, 255, 102, 0.15);
  border-color: var(--hacker-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-tnt {
  background: linear-gradient(135deg, var(--tnt-orange) 0%, var(--tnt-red) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px var(--tnt-glow);
}

.btn-tnt:hover {
  box-shadow: 0 0 30px var(--tnt-red-glow);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.55);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 5rem 0;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: contrast(1.15) brightness(0.85);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 7, 5, 0.4) 0%, rgba(3, 7, 5, 0.85) 75%, var(--bg-deep) 100%);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid var(--border-matrix);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hacker-green);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Quick Connect IP Box */
.hero-connect-box {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-matrix);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 255, 102, 0.12);
  margin-bottom: 1.5rem;
}

.connect-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020704;
  border: 1px solid var(--border-matrix);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.ip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.ip-address {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--hacker-green);
  color: #020804;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--toxic-green);
  box-shadow: 0 0 15px var(--matrix-glow);
}

.btn-copy.copied {
  background: var(--tnt-orange);
  color: #ffffff;
}

.connect-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0 0.25rem;
  font-family: var(--font-mono);
}

.edition-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-bedrock-info {
  background: none;
  border: none;
  color: var(--hacker-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ==========================================================================
   3. GAME MODE CARDS (Cyber Look)
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--hacker-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 102, 0.2);
}

.mode-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.mode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mode-card:hover .mode-thumb {
  transform: scale(1.06);
}

.mode-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(2, 8, 4, 0.85);
  border: 1px solid var(--border-matrix);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hacker-green);
  text-transform: uppercase;
}

.mode-tag.tnt {
  border-color: var(--border-tnt);
  color: var(--tnt-orange);
}

.mode-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mode-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.mode-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.mode-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.mode-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.mode-feature-item svg {
  color: var(--hacker-green);
  flex-shrink: 0;
}

/* ==========================================================================
   4. BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-matrix);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.15);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border-matrix);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hacker-green);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.bento-icon.tnt {
  background: rgba(255, 85, 0, 0.08);
  border-color: var(--border-tnt);
  color: var(--tnt-orange);
}

.bento-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   5. TOAST & MODAL
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #040d07;
  border: 1px solid var(--hacker-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--matrix-glow);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  transform: translateY(30px) scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #040e08;
  border: 1px solid var(--hacker-green);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px var(--matrix-glow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--hacker-green);
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.modal-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020704;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.75rem;
}

.modal-data-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.modal-data-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hacker-green);
}

@media (max-width: 1024px) {
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modes-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-2 {
    grid-column: span 1;
  }
  .connect-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
