/* ==========================================================================
   JABARO Studio - Modern Minimal Landing Page
   Design: Dark theme, minimal, indie game studio aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-primary: #0D0D0F;
  --bg-surface: #15151A;
  --bg-surface-hover: #1C1C22;
  --bg-surface-active: #131317;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.20);
  
  --text-primary: #FFFFFF;
  --text-secondary: #90909A;
  --text-tertiary: #6E6E78;
  
  --badge-bg: rgba(255, 255, 255, 0.05);
  --badge-border: rgba(255, 255, 255, 0.08);
  --badge-text: #A4A4B0;

  /* Layout & Sizing */
  --container-max-width: 520px;
  --border-radius-card: 14px;
  --border-radius-icon: 11px;
  --border-radius-logo: 50%;
  --border-radius-social: 10px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header & Banner Section
   -------------------------------------------------------------------------- */
.studio-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Full-width responsive banner */
.banner-wrapper {
  width: 100%;
  max-width: 100%;
  background-color: #121217;
  overflow: hidden;
  position: relative;
  /* Aspect ratio: ~16:7 on mobile, ~3:1 on desktop */
  aspect-ratio: 16 / 7;
  max-height: 280px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Profile container: centered logo + title + tagline */
.profile-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Centered circular logo overlapping bottom of banner */
.logo-wrapper {
  margin-top: -48px;
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.studio-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--border-radius-logo);
  border: 4px solid var(--bg-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.studio-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.studio-description {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Main Content: Links List
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
}

.links-section {
  width: 100%;
  max-width: var(--container-max-width);
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Game / App Link Card
   -------------------------------------------------------------------------- */
.link-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  transition: 
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

/* Subtle, refined hover & focus states */
.link-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.link-card:active {
  background-color: var(--bg-surface-active);
  transform: translateY(0);
}

.link-card:focus-visible {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* App/Game Logo on Left */
.card-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-icon);
  overflow: hidden;
  background-color: #1E1E26;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center Content: Name & Optional Type Label */
.card-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* Optional label pill ("Game", "App", etc.) */
.card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--badge-text);
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.2;
}

/* Simple Arrow Icon on Right */
.card-arrow-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-arrow-icon {
  width: 18px;
  height: 18px;
}

.link-card:hover .card-arrow-wrapper {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* Non-clickable / Coming soon state when URL is empty */
.link-card.is-disabled {
  cursor: default;
  opacity: 0.85;
}

.link-card.is-disabled:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  transform: none;
  box-shadow: none;
}

.link-card.is-disabled .card-arrow-wrapper {
  opacity: 0.4;
}

.link-card.is-disabled:hover .card-arrow-wrapper {
  color: var(--text-tertiary);
  transform: none;
}

/* --------------------------------------------------------------------------
   Footer Section & Social Media
   -------------------------------------------------------------------------- */
.studio-footer {
  width: 100%;
  padding: 28px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Social links container */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Social Media Button */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-social);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: 
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  outline: none;
}

.social-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.social-link:active {
  transform: translateY(0);
}

.social-link:focus-visible {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.social-icon {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* Fallback for noscript */
.noscript-fallback {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-card);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Desktop & Tablet Media Query
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .banner-wrapper {
    aspect-ratio: 3 / 1;
    max-height: 250px;
  }

  .logo-wrapper {
    margin-top: -52px;
    margin-bottom: 18px;
  }

  .studio-logo {
    width: 104px;
    height: 104px;
  }

  .studio-name {
    font-size: 1.625rem;
  }

  .main-content {
    padding: 36px 20px 56px;
  }

  .link-card {
    padding: 14px 18px;
  }

  .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .card-title {
    font-size: 1rem;
  }

  .links-container {
    gap: 14px;
  }
}
