/**
 * Gameosophy - Compact Modern E-Commerce & Marketplace Footer System
 * Inspired by modern game developer & Unity asset marketplaces
 * Compact vertical height, premium dark theme, 4 structured columns
 */

/* ==========================================================================
   COMPACT MODERN FOOTER CONTAINER
   ========================================================================== */
.gm-footer-wrapper {
  background-color: #0b0f19;
  color: #94a3b8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gm-footer-main {
  padding: 45px 0 35px 0;
}

.gm-footer-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  align-items: flex-start;
}

/* 4-Column Layout */
.gm-footer-col-brand {
  flex: 0 0 28%;
  max-width: 28%;
  padding: 0 15px;
}

.gm-footer-col-marketplace {
  flex: 0 0 22%;
  max-width: 22%;
  padding: 0 15px;
}

.gm-footer-col-company {
  flex: 0 0 22%;
  max-width: 22%;
  padding: 0 15px;
}

.gm-footer-col-subscribe {
  flex: 0 0 28%;
  max-width: 28%;
  padding: 0 15px;
}

/* ==========================================================================
   COLUMN 1: BRAND
   ========================================================================== */
.gm-footer-logo-wrap {
  margin-bottom: 14px;
}

.gm-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.gm-footer-logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.gm-footer-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
}

.gm-footer-brand-title span {
  color: #8b5cf6;
}

.gm-footer-brand-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 18px 0;
  max-width: 290px;
}

/* Social Buttons */
.gm-footer-socials {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gm-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8 !important;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.gm-social-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* ==========================================================================
   COLUMNS 2 & 3: HEADINGS & LINK LISTS
   ========================================================================== */
.gm-footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-footer-links li {
  margin-bottom: 8px;
}

.gm-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  line-height: 1.4;
}

/* Subtle rounded square icon before links matching reference */
.gm-footer-bullet {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gm-footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.gm-footer-links a:hover .gm-footer-bullet {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.2);
}

/* ==========================================================================
   COLUMN 4: STAY UPDATED (NEWSLETTER & PAYMENTS)
   ========================================================================== */
.gm-subscribe-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 14px 0;
}

.gm-subscribe-form {
  margin-bottom: 20px;
}

.gm-subscribe-box {
  display: flex;
  align-items: center;
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 3px 3px 3px 12px;
  transition: all 0.2s ease;
}

.gm-subscribe-box:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: #121829;
}

.gm-subscribe-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px;
  padding: 6px 0;
  outline: none !important;
  min-width: 0;
}

.gm-subscribe-input::placeholder {
  color: #64748b;
  font-size: 12.5px;
}

.btn-gm-subscribe {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff !important;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gm-subscribe:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
}

.gm-subscribe-msg {
  font-size: 12px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  display: none;
}

.gm-subscribe-msg.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.gm-subscribe-msg.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Secure Payment Area */
.gm-payment-section {
  margin-top: 14px;
}

.gm-payment-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 9px 0;
}

.gm-payment-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gm-pay-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1e293b;
  height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gm-pay-card.visa {
  color: #1a1f71;
  font-weight: 800;
  font-style: italic;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.gm-pay-card.mastercard {
  color: #eb001b;
  font-size: 13px;
}

.gm-pay-card.amex {
  background: #007bc1;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  height: 24px;
  padding: 0 5px;
}

.gm-pay-card.paypal {
  color: #003087;
  font-size: 12px;
}

.gm-ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
}

.gm-ssl-badge i {
  font-size: 11px;
}

/* ==========================================================================
   BOTTOM LEGAL BAR
   ========================================================================== */
.gm-footer-bottom {
  padding: 16px 0;
  background-color: #070a12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gm-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gm-copyright {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.gm-copyright a {
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
}

.gm-copyright a:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.gm-legal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-legal-nav a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gm-legal-nav a:hover {
  color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199px) {
  .gm-footer-col-brand {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .gm-footer-col-marketplace {
    flex: 0 0 20%;
    max-width: 20%;
  }
  .gm-footer-col-company {
    flex: 0 0 20%;
    max-width: 20%;
  }
  .gm-footer-col-subscribe {
    flex: 0 0 30%;
    max-width: 30%;
  }
}

@media (max-width: 991px) {
  .gm-footer-col-brand {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 28px;
  }
  .gm-footer-col-subscribe {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 28px;
  }
  .gm-footer-col-marketplace {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .gm-footer-col-company {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .gm-footer-main {
    padding: 32px 0 20px 0;
  }
  .gm-footer-col-brand,
  .gm-footer-col-marketplace,
  .gm-footer-col-company,
  .gm-footer-col-subscribe {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 22px;
  }
  
  .gm-footer-heading {
    cursor: pointer;
    user-select: none;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
  }
  .gm-footer-heading .gm-accordion-icon {
    display: inline-block;
    font-size: 11px;
    color: #8b5cf6;
    transition: transform 0.25s ease;
  }
  .gm-footer-heading.active .gm-accordion-icon {
    transform: rotate(180deg);
  }
  
  .gm-footer-links {
    display: none;
    padding-top: 4px;
    padding-bottom: 6px;
  }
  .gm-footer-links.active {
    display: block;
  }
  
  .gm-bottom-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .gm-legal-nav {
    justify-content: center;
    gap: 12px;
  }
}
