/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════
   COLOR PALETTE (change these to retheme!)
═══════════════════════════════════════ */
:root {
  --bg:          #c5d8b0;   /* light sage green — the outer background */
  --page:        #faf0e6;   /* linen/beige — the central page */
  --page-shadow: #e8d9c4;   /* slightly darker beige for borders/panels */
  --accent:      #8faf70;   /* medium green for accents */
  --accent-soft: #d4e8c0;   /* pale green for hover states */
  --text:        #3d2f20;   /* warm dark brown for body text */
  --text-soft:   #7a6050;   /* softer brown for secondary text */
  --link:        #5c7a3e;   /* green for links */
  --link-hover:  #3d5c25;   /* darker green on hover */
  --border:      #c8b89a;   /* warm tan border */
  --panel-bg:    #f3e8d5;   /* slightly darker than page for panel boxes */
  --btn-bg:      #e8d8c0;   /* default button background */
  --btn-hover:   #d4c4a8;   /* button hover */
  --input-bg:    #fffdf8;   /* input field background */
}

/* ═══════════════════════════════════════
   BODY — the green background
═══════════════════════════════════════ */
body {
  background-color: var(--bg);
  background-image: url('Obrazky/bg-texture.png');
  background-repeat: repeat;
  background-size: auto; /* keep texture at its natural pixel size */
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  min-height: 100vh;
  padding: 1.5rem 0 3rem;
}

/* ═══════════════════════════════════════
   WRAPPER — the centered beige page
═══════════════════════════════════════ */
#wrapper {
  max-width: 980px;
  margin: 0 auto;
  background-color: var(--page);
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 var(--page-shadow), 8px 8px 0 var(--border);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
#site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background-color: var(--panel-bg);
  border-bottom: 2px solid var(--border);
}

#header-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--link);
  letter-spacing: 0.02em;
}

#header-title p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

#header-decor {
  margin-left: auto;
}

#header-banner {
  height: 70px;  /* adjust to taste */
  width: auto;   /* scales width proportionally */
  display: block;
}

/* ═══════════════════════════════════════
   LAYOUT — three columns
═══════════════════════════════════════ */
#layout {
  display: flex;
  align-items: flex-start;
  min-height: 500px;
}

/* ═══════════════════════════════════════
   LEFT NAV
═══════════════════════════════════════ */
#left-nav {
  width: 160px;
  flex-shrink: 0;
  padding: 1rem 0.8rem;
  border-right: 2px solid var(--border);
  background-color: var(--panel-bg);
  min-height: 100%;
  align-self: stretch;
  position: relative;
}

.nav-sprite {
  position: absolute;
  bottom: -50px;
  left: -100px;
  width: 250px;        /* adjust size here */
  height: auto;        /* keeps proportions */
  z-index: 1;          /* sits above the nav background */
  transform: translateX(-8px); /* nudge left so it's mostly behind the border */
  pointer-events: none; /* clicks pass through to links beneath */
}

#left-nav ul {
  list-style: none;
}

#left-nav ul li {
  margin-bottom: 0.3rem;
}

#left-nav ul li a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

#left-nav ul li a:hover {
  background-color: var(--accent-soft);
  color: var(--link-hover);
}

#left-nav ul li a.active {
  background-color: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
#content {
  flex: 1;
  padding: 1.2rem;
  min-width: 0; /* prevents flex blowout */
}

/* ═══════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════ */
#right-panel {
  width: 180px;
  flex-shrink: 0;
  padding: 1rem 0.8rem;
  border-left: 2px solid var(--border);
  background-color: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}

/* ═══════════════════════════════════════
   SHARED PANEL BOX
═══════════════════════════════════════ */
.panel-box {
  background-color: var(--page);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.7rem;
}

.panel-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--border);
}

/* ═══════════════════════════════════════
   LOGIN FORM
═══════════════════════════════════════ */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#login-form input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: var(--input-bg);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

#login-form input:focus {
  border-color: var(--accent);
}

#login-form button {
  margin-top: 0.2rem;
  padding: 0.35rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

#login-form button:hover {
  background-color: var(--link-hover);
}

.form-links {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  text-align: center;
}

.form-links a {
  color: var(--link);
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   RIGHT PANEL LINKS
═══════════════════════════════════════ */
#right-links ul, #left-nav ul {
  list-style: none;
}

#right-links ul li a {
  font-size: 0.82rem;
  color: var(--link);
  text-decoration: none;
  display: block;
  padding: 0.15rem 0;
}

#right-links ul li a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

#right-links ul li a::before {
  content: '» ';
  color: var(--border);
}

/* ═══════════════════════════════════════
   NOW PLAYING
═══════════════════════════════════════ */
.status-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.status-text span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════
   HOME PAGE — BUTTON GRID
═══════════════════════════════════════ */
.page-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--link);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px dashed var(--border);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
}

.grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background-color: var(--btn-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.1s;
  box-shadow: 3px 3px 0 var(--border);
}

.grid-btn:hover {
  background-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 var(--border);
}

.grid-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--border);
}

.grid-btn .btn-sprite {
  width: 64px;
  height: 64px;
  background-color: var(--accent-soft);
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem; /* emoji placeholder */
}

/* ═══════════════════════════════════════
   GENERIC CONTENT PAGE
═══════════════════════════════════════ */
.content-page p {
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

/* ═══════════════════════════════════════
   REGISTER / FORM PAGES
═══════════════════════════════════════ */
.form-page {
  max-width: 380px;
}

.form-page .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.form-page label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.form-page input {
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: var(--input-bg);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.form-page input:focus {
  border-color: var(--accent);
}

.form-page .submit-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--link-hover);
  transition: background-color 0.15s, transform 0.1s;
}

.form-page .submit-btn:hover {
  background-color: var(--link-hover);
  transform: translateY(-1px);
}

.form-page .sub-link {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-page .sub-link a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.form-page .sub-link a:hover {
  text-decoration: underline;
}
