@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap');

/* Üldine kere ja taust */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh; /* lubab kehal olla vähemalt akna kõrgune */
  scroll-behavior: smooth;
  font-family: 'Special Elite', monospace;
  background-color: #100f0f;
  background-image: url('Images/grunge-bg.png');
  background-repeat: repeat;
  background-size: auto;
  background-blend-mode: multiply;
  color: #d1cdc7;
  line-height: 1.7;
  text-shadow: 1px 1px 0 #000;
}

/* Flex konteiner ainult body-l */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0.9;
}

/* Main võtab ülejäänud ruumi */
main {
  flex-grow: 1;
  width: 100%;
  max-width: 900px;
  margin: 20px auto 80px auto;
  padding: 0 20px;
  background-color: rgba(20, 15, 15, 0.8);
  border: 2px solid #552800;
  box-shadow: 0 0 10px #331a00 inset;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Header */
header {
  background-color: #000000;
  border-bottom: 3px solid #6a1b1b;
  padding: 20px 30px;
  display: flex;
  gap: 1px;  /* ruum logo ja teksti vahel */
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 5px 5px -5px #000000aa;
}

/* Desktopis ära näita hamburger-menüüd */
.burger {
  display: none;
}

/* Logo pilt */
.logo {
  height: 70px;
  width: auto;
  user-select: none;
}

/* Logo ja tekst koos */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.logo {
  height: 70px;
  width: auto;
}

/* Tekst logo kõrval */
.logo-subtitle {
  font-family: 'Rubik Dirt', cursive;
  font-size: 2.4rem;
  color: #867f75;
  font-weight: normal; /* või bold, kui sobib */
  letter-spacing: 3px;
 

  text-shadow:
    1px 1px 0 #867f75,
    0 0 5px #6b3e00;
}

/* Nav */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: #e3d7c4;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow:
    0 0 3px #bb3e03,
    inset 0 0 5px #000;
}

nav ul li a:hover,
nav ul li a.active {
  color: #f3a136;
  border-color: #f3a136;
  box-shadow:
    0 0 8px #f3a136,
    inset 0 0 10px #6b3e00;
  background-color: rgba(243, 161, 54, 0.15);
  text-shadow: none;
}

/* Pealkirjad */
h1, h2, h3 {
  font-family: 'Special Elite', monospace;
  color: #f08c00;
  text-shadow: 1px 1px 0 #5b2b00;
  letter-spacing: 3px;
  margin-top: 30px;
  margin-bottom: 15px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.4rem;
}

/* Põhitekst */
main {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 80px auto;
  padding: 0 20px;
  background-color: rgba(20, 15, 15, 0.8);
  border: 2px solid #552800;
  box-shadow: 0 0 10px #331a00 inset;
  border-radius: 10px;
  flex: 1 0 auto;
}

/*ESINEMISED*/
/* Kontainer filtrite ja otsingu jaoks */
.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* väiksematel ekraanidel uuele reale */
  margin-bottom: 20px;
}

/* Otsinguvälja stiil */
.search-wrapper input {
  padding: 8px 16px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  min-width: 220px;
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  background-color: #1c1c1c;
  color: #ffd085;
  border-color: #bb3e03;
  transition: border-color 0.2s;
}

.search-wrapper input:focus {
  outline: none;
  border-color: #f3a136;
}



/* Listid */ 
ul {
  padding-left: 20px;
}

.gig-list {
  list-style: none;
  padding: 0;
}

.gig-list li {
  background: #1a1a1a;
  margin-bottom: 15px;
  padding: 15px;
  border-left: 5px solid #f3a136;
  border-radius: 8px;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gig-list li:hover {
  background-color: #2a2a2a;
  transform: scale(1.01);
}

/*--------------------------------------------------------------------------*/

/* Sündmused */
.event {
  background-color: #1c1c1c;
  color: #ffd085;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
  border-left: 4px solid #f3a136;
}

.event.past {
  opacity: 0.6;
  border-left-color: #bb3e03;
}

.event.upcoming {
  border-left-color: #38a169;
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #f3a136;
}

/* Events container */
.events-container {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Modal tumeda kastina nagu .event */
.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #1c1c1c;
  color: #ffd085;
  padding: 20px;
  border-radius: 12px;
  border: 4px solid #bb3e03; /* punane äär */
  box-shadow: 0 0 10px #000;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modal-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #f3a136; /* kuldne glow hoveril */
  border-color: #f3a136; /* hoveril punase asemel kuldne äär */
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f3a136;
}

/* Highlight sõnadele otsingus */
.highlight {
  background-color: #f3a136;
  color: #1c1c1c;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}


/* Filtrinupud */
.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-buttons button {
  padding: 8px 16px;
  border: none;
  background-color: #bb3e03;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.filter-buttons button.active {
  background-color: #f3a136;
  color: #1c1c1c;
}


/*--------------------------------------------------------------------------*/
/*----------------------------------POOD------------------------------------*/

/* Hüpikaken */
/* Modaalaken – taust */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Suurusevaliku rippmenüü */
#modal-size {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #1f150a;
  color: #f3a136;
  border: 1px solid #f3a136;
  border-radius: 4px;
}

/* Lisa ostukorvi nupp */
.modal-content button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #f3a136;
  color: #1b0f00;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 8px;
}

.modal-content button:hover {
  background-color: #ffa94d;
  transform: scale(1.02);
}

/* Modaalisisu */
.modal-content {
  background: #2b1e11;
  border: 2px solid #c9b79b;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px #000;
  position: relative;
  color: #f3a136;
}

/* Vali suurus warning */
.modal-warning {
  color: #ff6347;
  font-weight: bold;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid #ff6347;
  background-color: rgba(255, 99, 71, 0.1);
  border-radius: 4px;
  text-align: center;
}


/* Sulgemisnupp */
.modal-content .close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 24px;
  cursor: pointer;
  color: #f08c00;
  font-weight: bold;
}

/* Pilt modaalis */
.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Toodete grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 30px;
  margin: 40px 0;
}

/* Tootekaardid */
.product-card {
  background: linear-gradient(145deg, #1a1208, #2b1e11);
  border: 2px solid #5a3a1a;
  border-radius: 8px;
  padding: 16px;
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.6),
    inset 0 0 8px #100802;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
}

.product-card:hover {
  transform: scale(1.04);
  border-color: #f08c00;
  box-shadow:
    0 0 14px #f08c00aa,
    inset 0 0 10px #1b0f00;
}

/* Pildi stiil */
.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: contrast(1.05) saturate(1.1);
}

/* Pealkiri ja hind */
.product-card h3 {
  color: #f3a136;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 14px 0 8px;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 1px;
}

.product-card p {
  color: #e3d7c4;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

/* Ostukorvi eemaldusnupp */
.cart-item .remove {
  color: #d65a31;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}



/* Uudise sisu plokk */
.news-content {
  display: none; /* alguses peidetud */
  margin-top: 0.5em;
  padding: 1em;
  border: 2px solid transparent;
  border-radius: 6px;
  background-color: #111;
  gap: 1em;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  transition: border-color 0.3s ease;
  /* Animatsioon avanemisel */
  animation: fadeIn 0.3s ease-in-out;
}

/* Kui uudis avatud, näita sisu ja punane raam ainult news-content ümber */
article.open .news-content {
  display: flex;
  border-color: red;
}

/* Pildi algsed mõõdud uudise sees */
.news-content img {
  max-width: 150px;
  max-height: 120px;
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: zoom-in; /* muutus */
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Kui pilt on "suurenenud" */
.news-content img.enlarged {
  max-width: 90vw;
  max-height: 80vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  border-color: red;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  cursor: zoom-out; /* muutus */
}

/* Väiksematel ekraanidel */
@media (max-width: 600px) {
  .news-content {
    flex-direction: column;
  }
  
  .news-content img {
    max-width: 100%;
    height: auto;
  }
}

/* Uudise pealkiri klikitavaks */
.news-title {
  cursor: pointer;
  color: #f3a136;
  text-decoration: underline;
}

/* Animatsioon */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Dropdown + Otsing samas reas === */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

/* === Dropdown stiilid === */
.custom-dropdown {
  position: relative;
  font-family: inherit;
  flex: 0 0 auto;
}

.dropdown-toggle {
  padding: 0.6em 1em;
  border: 1px solid #444;
  background: #bb3e03;
  color: #fff;
  border-radius: 0.25em;
  cursor: pointer;
  min-width: 180px;
  text-align: left;
  position: relative;
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #bb3e03;
  border: 1px solid #444;
  border-radius: 0.25em;
  margin-top: 0.2em;
  list-style: none;
  padding: 0.2em 0;
  min-width: 100%;
  z-index: 100;
}

.dropdown-menu li {
  padding: 0.6em 1em;
  cursor: pointer;
  color: #eee;
}

.dropdown-menu li.selected,
.dropdown-menu li:hover {
  background: #8b2d02;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

/* === Otsingukasti konteiner ja input === */
.news-search {
  flex: 1 1 300px;
  max-width: 400px;
  margin-top: 15px;
}

.news-search input {
  padding: 0.6em 1em;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 0.25em;
  box-sizing: border-box;
  line-height: 1.2; /* lisa kui tahad täpsustada kõrgust */
}


/* Galerii */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #bb3e03;
  box-shadow: 0 0 10px #000;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 15px #f3a136;
}

.gallery-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffd085;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-grid figure:hover figcaption {
  transform: translateY(0);
  pointer-events: auto;
}

/* Kontaktvorm */
form {
  max-width: 550px;
  margin: 40px auto 60px auto;
  background-color: #311a00cc;
  padding: 25px 30px;
  border-radius: 12px;
  border: 2px solid #7a3d00;
  box-shadow: 0 0 15px #8c4e00 inset;
  font-weight: 600;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #f3a136;
  text-shadow: 1px 1px 1px #000;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #4b2b00;
  border: none;
  border-radius: 6px;
  color: #f5deb3;
  font-family: 'Special Elite', monospace;
  font-size: 1.1rem;
  margin-bottom: 18px;
  box-shadow: inset 2px 2px 6px #2a1600;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: 3px solid #f3a136;
  background-color: #6b3e00;
}

/* Nupp */
button {
  background-color: #bb3e03;
  border: none;
  padding: 14px 30px;
  color: #f5d6a1;
  font-weight: 700;
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 0 10px #bb3e03,
    inset 0 0 8px #551a00;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  background-color: #f3a136;
  box-shadow:
    0 0 15px #f3a136,
    inset 0 0 10px #6b3e00;
  color: #1c1c1c;
}

/* Jalg */
footer {
  background-color: #100f0f;
  color: #d1cdc7;
  text-align: center;
  padding: 15px 20px;
  border-top: 2px solid #6a1b1b;
  box-shadow: inset 0 -5px 10px -5px #000000aa;
  font-size: 0.9rem;
  user-select: none;
}

/* Ligipääsetavus - peidetud tekst */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* Tühjad sündmused */
.no-events {
  text-align: center;
  padding: 40px;
  font-size: 1.3rem;
  color: #999;
  font-style: italic;
}








/* Media Queries - mobiilne vaade */
@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    overflow-x: hidden;
  }

  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;  /* vähem paremale */
    box-sizing: border-box;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    height: 50px;
  }

  .logo-subtitle {
    display: none;
  }

  .burger {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #e3d7c4;
    cursor: pointer;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.open {
    display: block;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #000000;
    padding: 15px 20px;
    border-top: 3px solid #6a1b1b;
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
  }

  main {
    width: 100%;
    margin: 15px 0 60px 0;
    padding: 10px 15px;
    box-sizing: border-box;
  }

  footer {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    font-size: 0.8rem;
    box-sizing: border-box;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1rem;
  }
}

/* Eemalda taustapilt mobiilvaates */
@media (max-width: 768px) {
  html, body {
    background-image: none; /* eemalda pilt */
    background-color: #100f0f; /* või mis iganes soovid */
  }
}

/* Videod */
.yt-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 suhe */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.yt-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}