/* ====================================
   GLOBAL RESET & BASE
==================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #0d0d0d;         /* deep black background */
  color: #e6e6e6;              /* light text */
  line-height: 1.6;
}

/* Layout wrapper */
body > header,
body > main,
body > footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====================================
   HEADER & NAVIGATION
==================================== */

header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  color: #ffd700;                /* gold */
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

header h2,
header p {
  color: #cfcfcf;
  margin: 0.4rem 0 0.8rem;
}

header hr {
  width: 80%;
  height: 2px;
  margin: 1.2rem auto;
  border: none;
  background: linear-gradient(90deg, #d4af37, #8d6a00, #d4af37);
}

/* NAV MENU */

header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

header nav a {
  text-decoration: none;
  color: #ffd700;
  border: 1px solid #8d6a00;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #1a1a1a;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

header nav a:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ====================================
   MAIN SECTIONS
==================================== */

main {
  margin: 1.5rem auto 3rem;
}

main section {
  background: #1a1a1a;                    /* dark card */
  padding: 1.6rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

main h2 {
  color: #ffd700;
  margin-top: 0;
  font-size: 1.6rem;
}

main h3 {
  color: #e6c35c;
  font-size: 1.25rem;
  margin-top: 1.2rem;
}

main p {
  color: #e0e0e0;
}

/* Links in main area */
main a {
  color: #ffd700;
}

main a:hover {
  text-decoration: underline;
}

/* ====================================
   IMAGE STYLING (Voting + Gallery)
==================================== */

.finalist-row,
.winner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.finalist-row figure,
.winner-row figure {
  background: #262626;
  padding: 0.8rem;
  border-radius: 12px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  border: 1px solid #444;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
}

img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

figcaption {
  margin-top: 0.5rem;
  color: #e6e6e6;
  font-size: 0.95rem;
}

/* ====================================
   FORMS (Submit & Voting)
==================================== */

label {
  font-weight: 600;
  color: #ffd700;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: #0f0f0f;
  color: #fff;
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #ffd700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
  outline: none;
}

input[type="submit"],
input[type="reset"],
button {
  background: #ffd700;
  color: #000;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 999px;
  margin-top: 0.6rem;
  margin-right: 0.4rem;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: bold;
}

input[type="reset"] {
  background: #8d6a00;
  color: #fff;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ====================================
   CHAT IFRAME
==================================== */

iframe {
  border-radius: 12px;
  border: 1px solid #333;
  background: #121212;
}

/* ====================================
   FOOTER
==================================== */

footer {
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  padding: 1.3rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border-top: 1px solid #333;
  box-shadow: 0 -2px 10px rgba(255, 215, 0, 0.08);
}

footer p {
  color: #bbbbbb;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ====================================
   RESPONSIVE
==================================== */

@media (min-width: 768px) {
  main section {
    padding: 2rem 2.3rem;
  }

  header h1 {
    font-size: 2.8rem;
  }
}
