/* drummer.com.pl — static site styles (inspired by Deejay theme) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111;
  --color-text: #cfcfcf;
  --color-text-muted: #aeaeae;
  --color-accent: #b902c4;
  --color-accent-alt: #4ac6c9;
  --color-highlight: #ffd966;
  --color-link: #4ac6c9;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 900px;
  --nav-height: 48px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(74, 198, 201, 0.4);
}

a:hover, a:focus {
  color: var(--color-accent-alt);
  text-decoration-color: var(--color-accent-alt);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 1rem;
}

#mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 4px;
}

#mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  width: 100%;
  justify-content: center;
}

.menu a {
  color: var(--color-text);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.menu a:hover,
.menu a:focus,
.menu a.active {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

/* Logo (mobile) */
.responsive-logo {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
}

.responsive-logo img {
  width: 80px;
  height: auto;
}

/* Header with video */
.site-header {
  position: relative;
  margin-top: var(--nav-height);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.header-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.header-logo {
  position: relative;
  z-index: 2;
  line-height: 0;
}

.header-logo img {
  width: 145px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
}

/* Content */
.site-content {
  padding: 2rem 1.25rem 4rem;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(185, 2, 196, 0.3);
  padding-bottom: 0.75rem;
}

.entry-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  font-weight: 600;
}

.entry-content {
  font-size: 1rem;
}

.entry-content p {
  margin: 0 0 1rem;
  text-align: justify;
}

.entry-content h2.section-label {
  color: var(--color-highlight);
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Float images in bio */
.float-left {
  float: left;
  margin: 0 1.25rem 0.75rem 0;
  max-width: min(100%, 220px);
}

.float-right {
  float: right;
  margin: 0 0 0.75rem 1.25rem;
  max-width: min(100%, 220px);
}

.text-center {
  text-align: center;
}

.content-image img,
.gallery-item img {
  border-radius: 4px;
  cursor: zoom-in;
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  clear: both;
}

.photo-gallery .gallery-item,
.photo-gallery .content-image {
  margin: 0;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s, opacity 0.2s;
}

.photo-gallery a:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Audio player */
.audio-player {
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0 1rem;
  border-radius: 4px;
}

.track-item {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--color-highlight);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 4px 4px 0;
}

.track-item p {
  margin-bottom: 0.5rem;
}

/* Video embeds */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 1rem 0 1.5rem;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid #222;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  position: relative;
}

.site-footer a {
  color: var(--color-text-muted);
}

.go-to-top {
  position: absolute;
  right: 1.5rem;
  top: -1.25rem;
  background: var(--color-accent);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.go-to-top:hover {
  background: var(--color-accent-alt);
  color: #000;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.lightbox-close:hover {
  color: var(--color-highlight);
}

/* Responsive */
@media (max-width: 768px) {
  #mobile-menu-toggle {
    display: block;
    margin-right: auto;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 0.5rem 1rem 1rem;
    border-bottom: 2px solid var(--color-accent);
    gap: 0;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #222;
  }

  .responsive-logo {
    display: block;
  }

  .header-logo {
    display: none;
  }

  .site-header {
    min-height: 180px;
  }

  .float-left,
  .float-right {
    float: none;
    margin: 0 auto 1rem;
    display: block;
    max-width: 100%;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-video { display: none; }
  .photo-gallery img { transition: none; }
}
