/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poiret+One&display=swap');

:root {
  --bg-color: #0d0d0d;
  --bg-color-light: #1a1a1a;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa7c11;
  --text-main: #e0e0e0;
  --text-muted: #999999;
  
  --font-serif: 'Poiret One', cursive;
  --font-sans: 'Josefin Sans', sans-serif;
  
  --transition: all 0.3s ease;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .art-deco-title {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 13, 13, 0.95);
  border-bottom: 2px solid var(--gold-dark);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  border: 1px solid var(--gold-primary);
  padding: 0.5rem 1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--gold-primary);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition);
}

/* Base Layout */
main {
  padding-top: 100px;
  min-height: calc(100vh - 80px); /* Adjust based on footer */
}

/* Deco Elements */
.deco-line {
  width: 50px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 1rem auto;
}

.deco-border {
  border: 1px solid var(--gold-dark);
  padding: 2rem;
  position: relative;
}

.deco-border::before, .deco-border::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold-primary);
}

.deco-border::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.deco-border::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

/* Buttons */
.btn-gold {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background-color: var(--gold-primary);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Footer */
footer {
  background-color: var(--bg-color-light);
  border-top: 1px solid var(--gold-dark);
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--gold-primary);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Typography styles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-subtitle {
  text-align: center;
  font-family: var(--font-sans);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Specific Page Styles */
/* Hero Section (Index) */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.9)), url('images/etusivu-hero.png') center/cover no-repeat;
  border-bottom: 4px double var(--gold-dark);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 5px; /* Hero section can handle extra spacing */
}

.hero-ad-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--gold-primary);
  padding: 10px;
  background-color: rgba(13, 13, 13, 0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-ad-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 2rem auto;
}

/* Sections */
section {
  padding: 5rem 5%;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.music-card {
  background-color: var(--bg-color-light);
  padding: 0;
  border: 1px solid var(--gold-dark);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.music-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.music-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--gold-dark);
}

.music-card-content {
  padding: 2rem;
  flex-grow: 1;
}

.music-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Two column layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--gold-primary);
  padding: 10px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  margin: 0;
}

/* =========================================
   RESPONSIIVISUUS (Media Queries)
   ========================================= */

/* TABLETIT JA PIENPÄÄTTEET (max-width: 992px) */
@media (max-width: 992px) {
  /* Hamburger Menu päälle jopa tableteilla */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-color-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-left: 2px solid var(--gold-dark);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Sisältöalueiden kaventaminen */
  section {
    padding: 4rem 5%;
  }

  .hero h1 {
    font-size: 3rem;
  }
  
  .split-section {
    gap: 2rem;
  }
}

/* PUHELIMET (max-width: 768px) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .split-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .split-section h2 {
    text-align: center !important;
  }
  
  .nav-links {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* PIENET PUHELIMET (max-width: 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .music-grid {
    grid-template-columns: 1fr;
  }
}
