/* ==========================================================================
   FELEROUS STORE - PUBLISHER & DEVELOPER CREATOR HUB
   Steam Publisher & Developer Creator Hub Architecture & UI Standards
   ========================================================================== */

:root {
  --pub-bg-base: #0b0f15;
  --pub-bg-surface: #111722;
  --pub-bg-card: #151d2a;
  --pub-bg-card-hover: #1c2738;
  --pub-border: rgba(255, 255, 255, 0.08);
  --pub-border-focus: rgba(56, 189, 248, 0.4);
  --pub-text-primary: #ffffff;
  --pub-text-secondary: #c6d4df;
  --pub-text-muted: #8f98a0;
  --pub-steam-green: #75b022;
  --pub-steam-green-hover: #8ed629;
  --pub-steam-green-dark: #588a1b;
  --pub-steam-neon: #beee11;
  --pub-steam-blue: #66c0f4;
  --pub-steam-accent: #38bdf8;
  --pub-radius: 8px;
}

body.publisher-hub-body {
  background-color: var(--pub-bg-base);
  color: var(--pub-text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO BANNER & HEADER
   ========================================================================== */

.publisher-hero-wrapper {
  position: relative;
  width: 100%;
  background: #070a0e;
  overflow: hidden;
  border-bottom: 1px solid var(--pub-border);
}

.publisher-background-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  max-width: 1600px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* İki taraftan ve alttan karanlığa eriyen yumuşak Steam maskesi */
.publisher-banner-gradient-mask {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, #0b0f15 0%, rgba(11, 15, 21, 0) 15%, rgba(11, 15, 21, 0) 85%, #0b0f15 100%),
    linear-gradient(to bottom, rgba(11, 15, 21, 0.1) 40%, rgba(11, 15, 21, 0.95) 90%, #0b0f15 100%);
  pointer-events: none;
}

.publisher-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 24px 28px 24px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.publisher-avatar-box {
  width: 170px;
  height: 170px;
  min-width: 170px;
  border-radius: 10px;
  overflow: hidden;
  background: #151d2a;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.publisher-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publisher-avatar-fallback {
  font-size: 2.8rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 2px;
}

.publisher-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.publisher-type-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.publisher-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.publisher-title {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.15;
}

.publisher-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.publisher-header-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}

/* Takip Et & Sayaç Kontrolleri */
.publisher-action-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pub-follow-btn-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-steam-follow {
  background: linear-gradient(to right, var(--pub-steam-green) 5%, var(--pub-steam-green-dark) 95%);
  color: #d2efa9;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-steam-follow:hover {
  background: linear-gradient(to right, var(--pub-steam-green-hover) 5%, var(--pub-steam-green) 95%);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(117, 176, 34, 0.4);
}

.btn-steam-follow.following {
  background: #1e293b;
  color: var(--pub-steam-neon);
  border: 1px solid rgba(190, 238, 17, 0.4);
}

.btn-steam-follow.following:hover {
  background: #334155;
  color: #ffffff;
}

.pub-followers-stat {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 60px;
}

.pub-followers-num {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.pub-followers-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #8f98a0;
  letter-spacing: 0.5px;
}

.pub-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pub-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.pub-link-btn.primary {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.pub-link-btn.primary:hover {
  background: rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   2. STEAM-STYLE NAVIGATION BAR
   ========================================================================== */

.publisher-nav-bar {
  background: #0f1520;
  border-bottom: 1px solid var(--pub-border);
  position: sticky;
  top: 56px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.publisher-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
}

.publisher-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.pub-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.pub-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pub-tab-btn.active {
  background: #ffffff;
  color: #0b0f15;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pub-tab-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.15);
}

.pub-tab-btn:not(.active) .pub-tab-count {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* ==========================================================================
   3. CONTENT CONTAINER & TAB PANES
   ========================================================================== */

.publisher-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px 24px;
}

.pub-pane {
  display: none;
  animation: pubFadeIn 0.22s ease forwards;
}

.pub-pane.active {
  display: block;
}

@keyframes pubFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. FEATURED TAB: SPOTLIGHT HERO CARD & SECTIONS
   ========================================================================== */

.pub-spotlight-card {
  position: relative;
  background: #111722;
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.pub-spotlight-card:hover {
  border-color: var(--pub-border-focus);
}

.pub-spotlight-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.pub-spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pub-spotlight-card:hover .pub-spotlight-cover img {
  transform: scale(1.02);
}

.pub-spotlight-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.pub-spotlight-details {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pub-spotlight-title {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.pub-spotlight-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.pub-spotlight-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pub-tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.pub-spotlight-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

/* ==========================================================================
   5. STEAM-STYLE GAME LIST ROWS & CARDS
   ========================================================================== */

.pub-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pub-game-card {
  background: #111722;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  text-decoration: none;
  position: relative;
}

.pub-game-card:hover {
  border-color: var(--pub-border-focus);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pub-game-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.pub-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.pub-game-card:hover .pub-game-thumb img {
  transform: scale(1.04);
}

.pub-game-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.pub-game-type-badge.arcade {
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
}

.pub-game-type-badge.desktop {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.pub-game-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pub-game-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-game-genre {
  font-size: 0.78rem;
  color: #8f98a0;
}

/* Steam Fiyat ve İndirim Rozeti */
.pub-price-block {
  display: inline-flex;
  align-items: center;
  background: #1e2837;
  border-radius: 4px;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.85rem;
}

.pub-discount-badge {
  background: #4c6b22;
  color: var(--pub-steam-neon);
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.pub-price-text {
  padding: 4px 10px;
  color: #c6d4df;
}

.pub-price-text.free {
  color: #00e676;
}

.pub-price-text.discounted {
  color: var(--pub-steam-neon);
}

/* ==========================================================================
   6. FRANCHISES & SERIES CARDS (Valve & Rockstar Style)
   ========================================================================== */

.pub-franchises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pub-franchise-card {
  background: #111722;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.pub-franchise-card:hover {
  border-color: var(--pub-border-focus);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.pub-franchise-banner {
  aspect-ratio: 16/9;
  background: #151d2a;
  overflow: hidden;
  position: relative;
}

.pub-franchise-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-franchise-info {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pub-franchise-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.pub-franchise-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   7. BROWSE / CATALOG FILTERS & TOOLBAR
   ========================================================================== */

.pub-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
  background: #111722;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--pub-border);
}

.pub-catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pub-filter-btn.active {
  background: #38bdf8;
  color: #0b0f15;
  border-color: #38bdf8;
  font-weight: 700;
}

.pub-catalog-search {
  max-width: 280px;
  width: 100%;
}

.pub-catalog-search input {
  width: 100%;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}

.pub-catalog-search input:focus {
  border-color: #38bdf8;
}

/* ==========================================================================
   8. ABOUT TAB (Stüdyo ve Yayıncı Bilgileri)
   ========================================================================== */

.pub-about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.pub-about-card {
  background: #111722;
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  padding: 28px;
}

.pub-about-title {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.pub-about-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.pub-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.pub-spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.pub-spec-table td:first-child {
  color: #64748b;
  font-weight: 600;
  width: 140px;
}

.pub-spec-table td:last-child {
  color: #f1f5f9;
  font-weight: 600;
}

/* ==========================================================================
   9. RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .publisher-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 160px;
    gap: 18px;
  }
  .pub-spotlight-card {
    grid-template-columns: 1fr;
  }
  .pub-about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .publisher-avatar-box {
    width: 120px;
    height: 120px;
    min-width: 120px;
  }
  .publisher-title {
    font-size: 1.7rem;
  }
  .pub-games-grid {
    grid-template-columns: 1fr;
  }
  .pub-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pub-catalog-search {
    max-width: 100%;
  }
}
