/* sidetrack|media - till oetzel */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  color: #ccc;
  font-family: Helvetica, Arial, sans-serif;
}

#site {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* ==============================
   FIXED TOP: Big Tiles + Branding
   ============================== */

#fixed-top {
  flex-shrink: 0;
}

/* --- Big Tiles Row --- */

#big-tiles {
  display: flex;
  height: 320px;
  overflow: hidden;
}

#big-tiles .tile-big {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}

#big-tiles .tile-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no image */
#big-tiles .tile-big .tile-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1714;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Big tile hover: prominent overlay */
#big-tiles .tile-big .tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#big-tiles .tile-big:hover .tile-hover {
  opacity: 1;
}

#big-tiles .tile-big .tile-hover .hover-title {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#big-tiles .tile-big .tile-hover .hover-screenshot {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==============================
   BRANDING BAR
   ============================== */

#branding-bar {
  height: 100px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  flex-shrink: 0;
}

#brand-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

#brand-name {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 1.5px;
}

#brand-desc {
  font-size: 12px;
  color: #777;
  letter-spacing: 0.5px;
}

#brand-nav {
  display: flex;
  gap: 24px;
}

#brand-nav .nav-item {
  position: relative;
}

#brand-nav .nav-item > a {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

#brand-nav .nav-item > a:hover {
  color: #fff;
}

#brand-nav .nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  min-width: 180px;
  z-index: 100;
  padding: 4px 0;
}

#brand-nav .nav-item:hover .dropdown {
  display: block;
}

#brand-nav .nav-item .dropdown a {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
  transition: background 0.15s;
}

#brand-nav .nav-item .dropdown a:hover {
  background: #222;
  color: #fff;
}

/* ==============================
   SMALL TILES (scrollable)
   ============================== */

#small-tiles-wrap {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.small-row {
  display: flex;
  height: 160px;
  flex-shrink: 0;
}

.small-row .tile-small {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.small-row .tile-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.small-row .tile-small .tile-placeholder {
  width: 100%;
  height: 100%;
  background: #151515;
  display: block;
}

/* Small tile hover: subtle text overlay */
.small-row .tile-small .tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.small-row .tile-small.has-hover:hover .tile-hover {
  opacity: 1;
}

.small-row .tile-small .tile-hover .hover-title {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 1px;
  text-align: center;
  padding: 8px;
  font-weight: 400;
}

/* Clickable small tiles */
.small-row .tile-small.has-link {
  cursor: pointer;
}

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

#small-tiles-wrap::-webkit-scrollbar {
  height: 4px;
}

#small-tiles-wrap::-webkit-scrollbar-track {
  background: #0a0a0a;
}

#small-tiles-wrap::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

#small-tiles-wrap::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==============================
   UTILITY
   ============================== */

.hidden {
  display: none !important;
}
