/* ============================================================
   STEAM STORE PAGE - MY PROJECTS REDESIGN
   ============================================================ */

/* Steam color palette */
:root {
  --steam-bg: #1b2838;
  --steam-bg-dark: #171a21;
  --steam-bg-card: #16202d;
  --steam-bg-card-hover: #1e2d3d;
  --steam-accent: #66c0f4;
  --steam-accent-hover: #8ed1f7;
  --steam-text: #c7d5e0;
  --steam-text-bright: #ffffff;
  --steam-text-dim: #8f98a0;
  --steam-border: #2a475e;
  --steam-border-light: #3d6a8e;
  --steam-green: #a4d007;
  --steam-green-hover: #beee11;
  --steam-discount: #4c6b22;
  --steam-discount-text: #beee11;
  --steam-gradient-start: #1b2838;
  --steam-gradient-end: #0f1922;
}

/* ==================== STEAM PROJECTS PAGE ==================== */

/* Override window content for Steam theme */
#window-My-Projects .window-content {
  background: var(--steam-bg) !important;
  color: var(--steam-text);
  font-family: "Motiva Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

#window-My-Projects .page-shell {
  background: var(--steam-bg);
}

#window-My-Projects .app-bar {
  background: var(--steam-bg-dark);
  border-bottom: 1px solid var(--steam-border);
  height: 52px;
}

#window-My-Projects .app-bar-title {
  color: var(--steam-text-bright);
  font-weight: 500;
  font-size: 18px;
}

/* Steam Store Header - Featured Carousel */
.steam-store-header {
  background: linear-gradient(180deg, #1b2838 0%, #0f1922 100%);
  padding: 0;
  margin-bottom: 0;
}

.steam-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  background: var(--steam-bg-dark);
  border-bottom: 1px solid var(--steam-border);
}

.steam-nav-item {
  padding: 6px 14px;
  color: var(--steam-text);
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
  text-decoration: none;
}

.steam-nav-item:hover {
  color: var(--steam-text-bright);
  background: rgba(255,255,255,0.05);
}

.steam-nav-item.active {
  color: var(--steam-text-bright);
  background: rgba(102, 192, 244, 0.15);
}

/* Featured & Recommended Section */
.steam-featured-section {
  padding: 20px;
  background: linear-gradient(180deg, rgba(27,40,56,0.8) 0%, rgba(15,25,34,0.95) 100%);
}

.steam-section-title {
  color: var(--steam-text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 400;
}

/* Main Featured Game (Hero) */
.steam-hero-container {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, rgba(42,71,94,0.4) 0%, rgba(27,40,56,0.6) 100%);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--steam-border);
  min-height: 353px;
}

.steam-hero-media {
  flex: 1;
  position: relative;
  min-width: 0;
  background: #000;
}

.steam-hero-media img,
.steam-hero-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steam-hero-info {
  width: 320px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(42,71,94,0.3) 0%, rgba(22,32,45,0.5) 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.steam-hero-title {
  color: var(--steam-text-bright);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.steam-hero-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 12px 0;
}

.steam-hero-screenshots img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
  opacity: 0.8;
}

.steam-hero-screenshots img:hover {
  opacity: 1;
}

.steam-hero-desc {
  color: var(--steam-text);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.steam-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.steam-tag {
  padding: 3px 8px;
  background: rgba(255,255,255,0.1);
  color: var(--steam-text);
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.steam-tag:hover {
  background: rgba(255,255,255,0.2);
  color: var(--steam-text-bright);
}

.steam-hero-meta {
  font-size: 12px;
  color: var(--steam-text-dim);
  margin-top: auto;
}

.steam-hero-meta span {
  color: var(--steam-text);
}

/* Carousel Navigation */
.steam-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.steam-carousel-dot {
  width: 14px;
  height: 9px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.steam-carousel-dot:hover,
.steam-carousel-dot.active {
  background: rgba(255,255,255,0.5);
}

/* ==================== GAME CARDS GRID ==================== */

.steam-games-section {
  padding: 20px;
  background: var(--steam-bg);
}

.steam-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Steam Game Card */
.steam-game-card {
  background: var(--steam-bg-card);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--steam-border);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.steam-game-card:hover {
  border-color: var(--steam-border-light);
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.15);
  transform: translateY(-2px);
}

.steam-game-card:hover .steam-game-thumb img {
  transform: scale(1.03);
}

.steam-game-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0f14;
}

.steam-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Platform icons overlay */
.steam-game-platforms {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.steam-game-card:hover .steam-game-platforms {
  opacity: 1;
}

.steam-platform-icon {
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--steam-text);
}

/* Card Info */
.steam-game-info {
  padding: 12px;
}

.steam-game-title {
  color: var(--steam-text-bright);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-game-desc {
  color: var(--steam-text-dim);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags row */
.steam-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.steam-game-tag {
  padding: 2px 8px;
  background: rgba(102, 192, 244, 0.15);
  color: var(--steam-accent);
  font-size: 11px;
  border-radius: 2px;
}

/* Bottom row with price/actions */
.steam-game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.steam-game-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steam-price-discount {
  background: var(--steam-discount);
  color: var(--steam-discount-text);
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
}

.steam-price-final {
  color: var(--steam-text-bright);
  font-size: 14px;
}

.steam-btn-green {
  padding: 6px 16px;
  background: linear-gradient(180deg, #75b022 0%, #588a1b 100%);
  color: #d2efa9;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.steam-btn-green:hover {
  background: linear-gradient(180deg, #8ed629 0%, #6aa321 100%);
  color: #ffffff;
}

/* Hover details panel (appears on hover like Steam) */
.steam-game-hover-panel {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  width: 300px;
  background: var(--steam-bg-card);
  border: 1px solid var(--steam-border);
  border-radius: 4px;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.steam-game-card:hover .steam-game-hover-panel {
  opacity: 1;
  pointer-events: all;
}

.steam-hover-title {
  color: var(--steam-text-bright);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.steam-hover-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}

.steam-review-summary {
  color: var(--steam-text-dim);
}

.steam-review-count {
  color: var(--steam-text);
}

.steam-hover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.steam-hover-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.steam-hover-screenshots img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
}

.steam-hover-desc {
  color: var(--steam-text);
  font-size: 12px;
  line-height: 1.5;
}

/* ==================== SPECIAL OFFERS ROW ==================== */

.steam-offers-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--steam-border) transparent;
}

.steam-offers-row::-webkit-scrollbar {
  height: 8px;
}

.steam-offers-row::-webkit-scrollbar-track {
  background: transparent;
}

.steam-offers-row::-webkit-scrollbar-thumb {
  background: var(--steam-border);
  border-radius: 4px;
}

.steam-offer-card {
  min-width: 280px;
  background: linear-gradient(135deg, rgba(42,71,94,0.5) 0%, rgba(27,40,56,0.7) 100%);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--steam-border);
  transition: all 0.2s;
  cursor: pointer;
}

.steam-offer-card:hover {
  border-color: var(--steam-border-light);
}

.steam-offer-card .steam-game-thumb {
  aspect-ratio: 16/7;
}

.steam-offer-info {
  padding: 12px;
}

.steam-offer-title {
  color: var(--steam-text-bright);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.steam-offer-discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== DETAIL PAGE (When a project is clicked) ==================== */

.steam-detail-page {
  display: none;
  background: var(--steam-bg);
  min-height: 100%;
}

.steam-detail-page.active {
  display: block;
}

.steam-detail-header {
  background: linear-gradient(180deg, rgba(27,40,56,0.9) 0%, rgba(15,25,34,0.95) 100%);
  padding: 20px;
  border-bottom: 1px solid var(--steam-border);
}

.steam-breadcrumb {
  color: var(--steam-text-dim);
  font-size: 12px;
  margin-bottom: 12px;
}

.steam-breadcrumb a {
  color: var(--steam-text);
  text-decoration: none;
}

.steam-breadcrumb a:hover {
  color: var(--steam-accent);
}

.steam-detail-title {
  color: var(--steam-text-bright);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}

.steam-detail-layout {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.steam-detail-left {
  flex: 1;
  min-width: 0;
}

.steam-detail-right {
  width: 320px;
  flex-shrink: 0;
}

/* Media area */
.steam-detail-media {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.steam-detail-media img,
.steam-detail-media iframe {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Thumbnail strip */
.steam-detail-thumbs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.steam-detail-thumbs img {
  width: 120px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  border: 2px solid transparent;
}

.steam-detail-thumbs img:hover,
.steam-detail-thumbs img.active {
  opacity: 1;
  border-color: var(--steam-accent);
}

/* Description area */
.steam-detail-desc {
  background: var(--steam-bg-card);
  border-radius: 4px;
  padding: 20px;
  border: 1px solid var(--steam-border);
  margin-bottom: 20px;
}

.steam-detail-desc h3 {
  color: var(--steam-text-bright);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.steam-detail-desc p {
  color: var(--steam-text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.steam-detail-desc ul {
  color: var(--steam-text);
  font-size: 14px;
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 12px;
}

.steam-detail-desc li {
  margin-bottom: 6px;
}

/* Right sidebar */
.steam-detail-sidebar {
  background: var(--steam-bg-card);
  border-radius: 4px;
  padding: 16px;
  border: 1px solid var(--steam-border);
}

.steam-detail-sidebar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.steam-detail-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}

.steam-detail-meta-row:last-child {
  border-bottom: none;
}

.steam-detail-meta-label {
  color: var(--steam-text-dim);
}

.steam-detail-meta-value {
  color: var(--steam-text);
  text-align: right;
}

.steam-detail-meta-value a {
  color: var(--steam-accent);
  text-decoration: none;
}

.steam-detail-meta-value a:hover {
  text-decoration: underline;
}

/* Action buttons */
.steam-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.steam-btn-primary {
  padding: 12px;
  background: linear-gradient(180deg, #66c0f4 0%, #4192c0 100%);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-decoration: none;
}

.steam-btn-primary:hover {
  background: linear-gradient(180deg, #8ed1f7 0%, #5aa8d4 100%);
}

.steam-btn-secondary {
  padding: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--steam-text);
  border: 1px solid var(--steam-border);
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.steam-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--steam-border-light);
  color: var(--steam-text-bright);
}

/* ==================== SCROLLBAR STYLING ==================== */

#window-My-Projects .window-content::-webkit-scrollbar {
  width: 10px;
}

#window-My-Projects .window-content::-webkit-scrollbar-track {
  background: var(--steam-bg-dark);
}

#window-My-Projects .window-content::-webkit-scrollbar-thumb {
  background: var(--steam-border);
  border-radius: 5px;
  border: 2px solid var(--steam-bg-dark);
}

#window-My-Projects .window-content::-webkit-scrollbar-thumb:hover {
  background: var(--steam-border-light);
}

/* ==================== MULTI-IMAGE PROJECT SUPPORT ==================== */

.steam-image-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--steam-text-bright);
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.steam-no-extra-screenshots {
  grid-column: 1 / -1;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: var(--steam-text-dim);
  font-size: 12px;
  text-align: center;
}

.steam-hero-screenshots img.active,
.steam-hover-screenshots img.active {
  opacity: 1;
  outline: 2px solid var(--steam-accent);
  outline-offset: -2px;
}

.steam-detail-thumbs {
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--steam-border) transparent;
}

.steam-detail-thumbs::-webkit-scrollbar {
  height: 8px;
}

.steam-detail-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.steam-detail-thumbs::-webkit-scrollbar-thumb {
  background: var(--steam-border);
  border-radius: 4px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
  .steam-hero-container {
    flex-direction: column;
  }

  .steam-hero-info {
    width: 100%;
  }

  .steam-detail-layout {
    flex-direction: column;
  }

  .steam-detail-right {
    width: 100%;
  }

  .steam-games-grid {
    grid-template-columns: 1fr;
  }

  .steam-game-hover-panel {
    display: none;
  }
}

@media (max-width: 600px) {
  .steam-hero-screenshots {
    grid-template-columns: repeat(2, 1fr);
  }

  .steam-nav-bar {
    flex-wrap: wrap;
    gap: 2px;
  }

  .steam-nav-item {
    padding: 4px 10px;
    font-size: 12px;
  }
}

