/* ================================================
   GoE Craft — Shared styles (loaded on every page)
   Linked directly after css/output.css.
   Do NOT process through Tailwind — plain CSS only.
   ================================================ */

@keyframes whats-new-pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 5px #f0a830; }
  50%      { opacity:.4; transform:scale(.6); box-shadow:0 0 2px #f0a830; }
}

/* ---- Font overrides ---- */
body, .font-nunito, button, input, textarea, select,
.nav-link, .hero-badge, .hero-sub, .btn,
.section-tag, .tag, .achievement-label {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, .hero-title, .section-title, .contact-title {
  font-family: 'Press Start 2P', monospace;
}

.hero-title {
  font-size: clamp(1.2rem, 2.2vw, 2.2rem);
  line-height: 1.65;
}

.section-title {
  font-size: clamp(1rem, 1.9vw, 1.9rem);
  line-height: 1.5;
}

h3, h4, h5, h6,
.font-fredoka, .project-title, .project-banner-label,
.stat-number, .stat-label,
.benefit-title-large, .position-title-flow, .position-requirements-title,
.culture-title-flow, .achievement-name, .team-name,
.discord-title-modern, .contact-option-title, .faq-question-modern,
.footer-logo-text, .mobile-nav-link, .nav-logo-text {
  font-family: 'Rajdhani', system-ui, sans-serif;
}

/* ---- Mobile: hide desktop-only nav elements ---- */
@media (max-width: 768px) {
  .nav-socials { display: none; }
  #diamond-score { display: none; }
  #achievement-toast { display: none !important; }
}

/* ---- Diamond score: clear the 88px navbar ---- */
#diamond-score { top: 100px; }

/* ---- Navbar overrides ---- */
.nav-logo-text { display: none; }
.nav-social-link { color: var(--primary); }
#logo-btn img { width: 80px; height: 80px; }
.nav-inner { height: 88px; }

/* ---- Cursor trail: explicit origin so transform positioning is reliable ---- */
.cursor-dot { top: 0; left: 0; }

#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: -28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.11) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 769px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .nav-inner .nav-links { justify-self: center; }
  .nav-inner .nav-actions { justify-self: end; }
}

/* ---- Mobile nav glass backdrop ---- */
#mobile-nav {
  background: rgba(6, 17, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] #mobile-nav {
  background: rgba(232, 245, 247, 0.45);
}

/* ---- Footer V2 ---- */
#footer { border-top: 1px solid var(--border); padding: 0; }
.footer-v2 {
  max-width: 1100px; margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-v2-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-v2-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 600;
}
.footer-v2-logo img { width: auto; height: 40px; display: block; }
.footer-v2-pipe { width: 1px; height: 22px; background: var(--border); }
.footer-mc-partner { display: flex; align-items: center; gap: 0.5rem; }
.footer-mc-badge { height: 24px; width: auto; display: block; opacity: 0.85; }
.footer-v2-tagline { font-size: 0.78rem; color: var(--text-muted); }
.footer-v2-nav { display: flex; align-items: center; gap: 1.5rem; }
.footer-v2-navlink {
  font-size: 0.83rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.18s;
}
.footer-v2-navlink:hover, .footer-v2-navlink.f-active { color: var(--primary); }
.footer-v2-socials { display: flex; align-items: center; gap: 0.55rem; }
.footer-v2-social {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.footer-v2-social:hover { border-color: var(--primary); color: var(--primary); }
.footer-v2-bottom {
  text-align: center; padding: 0.75rem 2rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted);
}
@media (max-width: 640px) {
  .footer-v2 { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; gap: 1rem; }
  .footer-v2-pipe, .footer-mc-partner, .footer-v2-nav { display: none; }
  .footer-v2-bottom { padding: 0.6rem 1.25rem 0.9rem; }
}

/* ---- Active nav links via data-page attribute ---- */
[data-page="index"]              .nav-link[href="/about"],
[data-page="projects"]           .nav-link[href="/projects"],
[data-page="careers"]            .nav-link[href="/careers"],
[data-page="job-game-developer"] .nav-link[href="/careers"],
[data-page="help"]               .nav-link[href="/help"],
[data-page="news"]               .nav-link[href="/news"] {
  color: var(--primary);
}
[data-page="index"]              .nav-link[href="/about"]::after,
[data-page="projects"]           .nav-link[href="/projects"]::after,
[data-page="careers"]            .nav-link[href="/careers"]::after,
[data-page="job-game-developer"] .nav-link[href="/careers"]::after,
[data-page="help"]               .nav-link[href="/help"]::after,
[data-page="news"]               .nav-link[href="/news"]::after {
  width: 100%;
}
[data-page="index"]              .footer-v2-navlink[href="/about"],
[data-page="projects"]           .footer-v2-navlink[href="/projects"],
[data-page="careers"]            .footer-v2-navlink[href="/careers"],
[data-page="job-game-developer"] .footer-v2-navlink[href="/careers"],
[data-page="help"]               .footer-v2-navlink[href="/help"],
[data-page="news"]               .footer-v2-navlink[href="/news"] {
  color: var(--primary);
}

/* ---- Loading screen (index only) ---- */
#loading-screen { display: var(--hide-loading, flex); }

/* ---- Index: project cards with real images ---- */
.project-banner-real {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: inherit;
}

.project-banner-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover .project-banner-real img {
  transform: scale(1.04);
}

.project-banner-real .banner-label-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1.1rem 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-banner-real .banner-label-bar {
  opacity: 0;
}

.banner-label-bar .blb-name {
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.9);
  line-height: 1.2;
}

.banner-label-bar .blb-rating {
  color: var(--gold, #FBBF24);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.projects-grid .project-card { min-height: 0; }
.projects-grid { gap: 2rem; }
.projects-grid .project-body .project-tags { margin-top: 0.9rem; }

.project-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold, #FBBF24);
  letter-spacing: 0.01em;
  opacity: 0.85;
}

#goe-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: rgba(6, 17, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(16px);
}
#goe-cookie-banner .cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
#goe-cookie-banner .cookie-banner-copy {
  max-width: 60%;
}
#goe-cookie-banner .cookie-banner-copy strong {
  display: block;
  margin-bottom: 0.35rem;
}
#goe-cookie-banner .cookie-banner-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
#goe-cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.cookie-btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  #goe-cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.95rem 1rem;
  }
  #goe-cookie-banner .cookie-banner-copy {
    max-width: 100%;
  }
}

/* ---- Dinosaur Dimension promo popup (every page except news) ---- */
@keyframes goe-dino-popup-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #e8a030; }
  50%      { opacity: .4; transform: scale(.6); box-shadow: 0 0 2px #e8a030; }
}
.goe-dino-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 8, 2, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}
.goe-dino-popup-overlay.goe-dino-popup-visible { opacity: 1; }
.goe-dino-popup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, #050e03 0%, #091806 45%, #0f2509 100%);
  border: 1px solid rgba(220, 160, 30, .35);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 40px rgba(80,160,30,.14);
  overflow: hidden;
  transform: scale(.92) translateY(14px);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.goe-dino-popup-overlay.goe-dino-popup-visible .goe-dino-popup-card { transform: scale(1) translateY(0); }
.goe-dino-popup-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85); padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .15s;
}
.goe-dino-popup-close:hover { background: rgba(0,0,0,.68); transform: scale(1.08); }
.goe-dino-popup-media { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.goe-dino-popup-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goe-dino-popup-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, #050e03 0%, rgba(5,14,3,.05) 65%, transparent 100%);
}
.goe-dino-popup-badge {
  position: absolute; left: .85rem; bottom: .7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 100px;
  background: rgba(170,95,15,.4); border: 1px solid rgba(220,135,30,.55);
  font-family: 'Inter', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #f0c060;
  backdrop-filter: blur(3px);
}
.goe-dino-popup-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #e8a030; flex-shrink: 0;
  box-shadow: 0 0 6px #e8a030; animation: goe-dino-popup-dot-pulse 1.8s ease-in-out infinite;
}
.goe-dino-popup-body { padding: 1.1rem 1.25rem 1.35rem; }
.goe-dino-popup-tags { display: flex; gap: .5rem; margin-bottom: .65rem; }
.goe-dino-popup-tag {
  display: inline-block; padding: .22rem .6rem;
  background: linear-gradient(180deg, #0c0700 0%, #060400 100%);
  border: 1.5px solid rgba(200,145,15,.6);
  font-family: 'Press Start 2P', monospace; font-size: .46rem;
  color: #f0c030; letter-spacing: .02em;
}
.goe-dino-popup-title {
  font-family: 'Press Start 2P', monospace;
  font-size: .95rem; color: #f0e0a0; letter-spacing: .02em;
  margin: 0 0 .6rem; line-height: 1.45;
}
.goe-dino-popup-desc {
  font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 500;
  color: #c8e6b0; line-height: 1.55; margin: 0 0 1.05rem;
}
.goe-dino-popup-actions {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding-top: .7rem;
  border-top: 1px solid rgba(220,160,30,.16);
}
.goe-dino-popup-cta {
  display: inline-flex; align-items: center;
  padding: .65rem 1.6rem;
  background: linear-gradient(180deg, #110900 0%, #070400 100%);
  border: 2px solid rgba(210,150,20,.75);
  font-family: 'Press Start 2P', monospace; font-size: .6rem;
  color: #f0c840; letter-spacing: .04em; text-decoration: none; text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.65), 0 0 16px rgba(200,140,0,.2);
  transition: filter .15s, transform .12s; white-space: nowrap;
}
.goe-dino-popup-cta:hover { filter: brightness(1.22); transform: translateY(-1px); }
@media (max-width: 480px) {
  .goe-dino-popup-card { max-width: 92vw; }
  .goe-dino-popup-body { padding: 1rem 1rem 1.2rem; }
  .goe-dino-popup-title { font-size: .82rem; }
}

/* ---- Latest Releases grid (index.html) ---- */
.lr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.lr-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lr-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 36px rgba(var(--primary-rgb), 0.16);
}

.lr-img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.lr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lr-card:hover .lr-img-wrap img {
  transform: scale(1.04);
}

.lr-info {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 2px solid rgba(var(--primary-rgb), 0.18);
}

.lr-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.lr-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.45rem;
  line-height: 1.2;
}

.lr-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin: 0 0 1rem;
  flex: 1;
}

.lr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.07);
  transition: background 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
}

.lr-btn:hover {
  background: rgba(var(--primary-rgb), 0.16);
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.25);
  gap: 0.55rem;
}

@media (max-width: 960px) {
  .lr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .lr-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}
