/* ==========================================================================
   FrogWood Server Landing Page — Modrinth Matte Dark Design System
   ========================================================================== */

:root {
  --color-bg: #0b0b0d;
  --color-bg-glass: #141416;
  --color-bg-card: #1c1c20;
  --color-bg-card-hover: #242429;
  --color-border: #27272a;
  --color-border-hover: #3f3f46;
  
  --color-text-main: #ffffff;
  --color-text-muted: #a1a1aa;
  --color-accent-green: #00af5c;
  --color-accent-green-hover: #00c869;
  --color-accent-red: #ef4444;
  
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Minimal Ambient Light Glows */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-light-beam {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 175, 92, 0.18) 0%, transparent 65%);
  filter: blur(90px);
  opacity: 0.75;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.bg-glow-primary {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 175, 92, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  border-radius: 50%;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* Page Load Animation */
@keyframes pageFadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Navbar */
.site-header {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: pageFadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: none;
}

.brand-title {
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Header Navbar Right Actions */
.header-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-state-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1c1c20;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-header-login:hover {
  background: #242429;
  border-color: var(--color-border-hover);
}

.btn-header-register {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-image: url('assets/button-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000000;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-header-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-user-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #1c1c20;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.45rem 0.95rem;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-user-widget:hover {
  background: #242429;
  border-color: var(--color-accent-green);
}

.header-skin-head {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #000;
  display: block;
}

/* Main Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-heading {
  font-family: var(--font-family);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: #ffffff;
  opacity: 0;
  animation: pageFadeSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-heading-gradient {
  color: var(--color-accent-green);
  display: inline-block;
}

/* Action Buttons Container */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0;
  animation: pageFadeSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Primary Download Launcher Button with Pattern */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 300px;
  height: 60px;
  padding: 0 1.5rem;
  background-image: url('assets/button-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000000 !important;
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 175, 92, 0.2);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

/* RESTORED CLEAN GREEN OUTLINE FOR MODPACK BUTTON */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 300px;
  height: 60px;
  padding: 0 1.5rem;
  background: transparent !important;
  color: var(--color-accent-green);
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1.5px solid var(--color-accent-green);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(0, 175, 92, 0.08) !important;
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Modal Submit Pattern Buttons */
.btn-pattern-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 50px;
  padding: 0 1.5rem;
  background-image: url('assets/button-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000000 !important;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-pattern-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-icon-img {
  display: inline-block;
  vertical-align: middle;
}

/* Footer Section & Legal Links */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2.25rem 1.5rem;
  background: rgba(11, 11, 13, 0.9);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  animation: pageFadeSlideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.legal-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.legal-link:hover {
  color: var(--color-accent-green);
}

.disclaimer-text {
  font-family: var(--font-family);
  font-size: 0.8rem;
  color: #71717a;
  max-width: 750px;
  line-height: 1.6;
}

/* ==========================================================================
   MODRINTH-STYLE MATTE DARK MODAL SYSTEM
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #141416;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

@keyframes innerSlideFade {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay.active .modal-card {
  animation: innerSlideFade 0.18s ease-out forwards;
}

.modal-header {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-close {
  background: #27272a;
  border: none;
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-close:hover {
  background: #3f3f46;
  color: #ffffff;
}

.modal-body {
  padding: 1.25rem 1.5rem 1.75rem 1.5rem;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Custom Modal Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 99px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 99px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.modal-body h4 {
  color: #ffffff;
  margin: 1.1rem 0 0.4rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   MODRINTH-STYLE FORM CONTROLS & PROFILE STYLES
   ========================================================================== */

.modrinth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.form-input {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input::placeholder {
  color: #71717a;
}

.form-input:focus {
  border-color: var(--color-accent-green);
  background: #242429;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.alert-banner {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.alert-banner.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.alert-banner.alert-success {
  background: rgba(0, 175, 92, 0.15);
  border: 1px solid rgba(0, 175, 92, 0.35);
  color: var(--color-accent-green);
}

.form-submit-row {
  margin-top: 0.5rem;
}

/* Profile Card & Played Hours Chip */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.profile-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #0d0d0f;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-skin-canvas {
  width: 96px;
  height: 96px;
  display: block;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-nickname {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 175, 92, 0.15);
  color: var(--color-accent-green);
  border: 1px solid rgba(0, 175, 92, 0.3);
}

.profile-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid var(--color-border);
}

.skin-upload-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skin-file-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.skin-file-dropzone:hover {
  border-color: var(--color-accent-green);
  background: rgba(0, 175, 92, 0.04);
}

.profile-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-logout {
  width: 130px;
  height: 50px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-logout:hover {
  background: #3f3f46;
}

/* Animated Loading Spinner */
.glass-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1rem;
  gap: 0.85rem;
}

.glass-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #27272a;
  border-top: 3px solid var(--color-accent-green);
  border-radius: 50%;
  animation: spinGlass 0.8s linear infinite;
}

@keyframes spinGlass {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Modrinth Item List Rows */
.glass-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.glass-item-row {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #ffffff;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.glass-item-row:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
}

/* Styling for Unavailable Format Rows */
.glass-item-row.unavailable {
  background: #18181b;
  border-color: rgba(239, 68, 68, 0.2);
  opacity: 0.8;
}

.glass-item-row.unavailable:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
}

.glass-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.glass-item-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-green);
  flex-shrink: 0;
}

.glass-item-icon-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Bulletproof CSS Mask for Linux Icon */
.icon-mask-linux {
  width: 22px;
  height: 22px;
  background-color: var(--color-accent-green);
  -webkit-mask-image: url('assets/linux-platform.png');
  mask-image: url('assets/linux-platform.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  display: inline-block;
}

.glass-item-text {
  display: flex;
  flex-direction: column;
}

.glass-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-item-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 175, 92, 0.15);
  color: var(--color-accent-green);
  border: 1px solid rgba(0, 175, 92, 0.3);
}

.badge-chip.badge-unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.glass-item-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.glass-item-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.glass-item-row:hover .glass-item-action-btn {
  background: #27272a;
  color: #ffffff;
}

.glass-item-action-alert {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.checksum-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-top: 1.1rem;
  font-family: monospace;
  font-size: 0.78rem;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  word-break: break-all;
}

.btn-copy-hash {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-family);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.btn-copy-hash:hover {
  background: #3f3f46;
}

.legal-notice-check {
  font-size: 0.78rem;
  color: #71717a;
  margin-top: 1.1rem;
  line-height: 1.5;
}

.legal-notice-check a {
  color: var(--color-accent-green);
  text-decoration: underline;
}

/* Modpack Box */
.modpack-glass-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 1.25rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-heading {
    margin-bottom: 2rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 320px;
    height: 56px;
    font-size: 1.1rem;
  }

  .modal-card {
    max-height: 90vh;
    border-radius: 20px;
  }
}
