/* ═══════════════════════════════════════════════
   gamandello.it — style1.css
   Shared stylesheet for music + photo sections
═══════════════════════════════════════════════ */


/* ── Reset & base ── */

html, body {
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible;
  align-items: stretch;
}


/* ── Header ── */

.site-header {
  width: 100%;
  background-color: #0d0d0d;
  padding: 18px 24px;
  box-sizing: border-box;
  border-bottom: 1px solid #222;
}

.site-title {
  font-size: 26px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}


/* ── Social nav ── */

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #0077ff;
  transform: scale(1.2);
}

.social-links svg {
  width: 28px;
  height: 28px;
}


/* ── Content area (music default) ── */

#content {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto 30px;
  padding: 0 20px;
  box-sizing: border-box;
}


/* ── Footer ── */

.site-footer {
  padding: 6px 0;
  text-align: center;
  font-size: 12px;
  color: #888;
  background-color: #111;
  width: 100%;
}

.footer-link {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #aaa;
}


/* ── Misc ── */

.page-note {
  color: #bbb;
  font-size: 14px;
  margin: 12px 0 0;
}


/* ═══════════════════════════════════════════════
   MUSIC SECTION
═══════════════════════════════════════════════ */


/* Main background */

.main-bg {
  min-height: 100%;
  height: auto;
  background-image: url('../artworks/Macro005_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}


/* Music player */

.musicalbums-player-section {
  margin-top: 0;
  width: 100%;
}

.musicalbums-player {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 20px 24px;
  box-sizing: border-box;
}

.musicalbums-player h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfd8e3;
}

.musicalbums-player-frame {
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.musicalbums-player-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9fa3aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musicalbums-player-meta a {
  color: #c4cad3;
  text-decoration: none;
}

.musicalbums-player-meta a:hover {
  color: #0077ff;
  text-decoration: underline;
}

.musicalbums-player-meta span {
  margin: 0 6px;
  color: #757a82;
}


/* Music albums list */

.musicalbums-section {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 20px 24px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.musicalbums-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
  margin-bottom: 12px;
}

.musicalbums-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.musicalbums-list a {
  display: inline-block;
  padding: 10px 20px;
  background: #1e1e1e;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.03em;
  border: 1px solid #333;
  transition: background 0.2s ease, transform 0.15s ease;
}

.musicalbums-list a:hover {
  background: #0077ff;
  transform: translateX(4px);
}

.musicalbums-list.musicalbums-list-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.musicalbums-list.musicalbums-list-detailed li {
  margin: 0;
}

.musicalbums-list.musicalbums-list-detailed a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.musicalbum-cover {
  display: block;
  width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
  background: #111;
}

.musicalbum-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.musicalbum-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5f5f5;
}

.musicalbum-details {
  font-size: 13px;
  font-weight: 300;
  color: #c7c7c7;
}


/* Artist info */

.artist-info-section {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 20px 24px;
  box-sizing: border-box;
}

.artist-info-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
  margin: 0 0 12px;
}

.artist-info-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #d6d6d6;
}

.artist-info-section p + p {
  margin-top: 12px;
}

.artist-info-section a {
  color: #8ec2ff;
  text-decoration: none;
}

.artist-info-section a:hover {
  color: #d4e9ff;
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════
   PHOTO SECTION — shared
═══════════════════════════════════════════════ */

html.photo-book-page,
body.photo-book-page {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

body.photo-book-page main {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

body.photo-book-page #content {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Back link */

.back-link,
.back-link:visited {
  display: inline-block;
  font-size: 13px;
  color: #f0f0f0;
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.back-link-bottom {
  margin: 32px 20px 40px;
}


/* ═══════════════════════════════════════════════
   PHOTO BOOK INDEX (book.php)
═══════════════════════════════════════════════ */

.photo-book-index {
  width: 100%;
  box-sizing: border-box;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4px;
  width: 100%;
}

.project-card {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
}

.project-card-image {
  width: 100%;
  height: 100%;
  position: relative;
}

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

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

.project-card-nocover {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.project-card-title {
  font-size: 15px;
  font-weight: 300;
  color: #f0f0f0;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════
   PHOTO PROJECT PAGE (photo.php)
═══════════════════════════════════════════════ */

/* Sticky top bar */

.album-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #222;
  margin-bottom: 24px;
}

.album-topbar-title {
  font-size: 13px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Album header */

.album-header {
  padding: 0 20px 16px;
}

.album-header h1,
.album-page h1 {
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 6px;
}

.album-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 24px;
}

.album-info-link,
.album-info-link:visited,
.album-info-link:hover,
.album-info-link:active,
.album-info-link:focus {
  color: #f0f0f0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  margin-left: 8px;
}

.album-info-link:hover,
.album-info-link:focus {
  opacity: 0.9;
}

/* Photo stack */

.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.photo-item {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photo counter */

.photo-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   PHOTO INFO & PRIVACY PAGES (album-info-page)
═══════════════════════════════════════════════ */

.album-info-page {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 24px;
}

.album-info-page a,
.album-info-page a:visited {
  color: #f0f0f0;
  text-decoration: underline;
  text-decoration-color: #555;
}

.album-info-page a:hover {
  color: #fff;
  text-decoration-color: #aaa;
}

.album-info-page button {
  margin-top: 36px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}

.album-info-page button:hover {
  border-color: #888;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
  .musicalbums-list.musicalbums-list-detailed a {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    min-width: 0;
  }

  .musicalbum-cover {
    width: 64px;
  }
}

@media screen and (max-width: 480px) {
  #content {
    margin: 20px auto;
  }

  .site-footer {
    font-size: 11px;
    padding: 5px 0;
  }

  .project-card-title {
    font-size: 12px;
  }
}