/* ===== GLOBAL ===== */
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: #fffef5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #3E2510;
}

/* ===== HEADER ===== */
.header {
  height: auto;
  min-height: 80px;
  border: 1px solid #f7f139;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-radius: 5px;
  box-shadow: 10px 10px 5px #3E2510;
  background: linear-gradient(to top, #fff6a8, #ffffff);
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
}

.logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

.a {
  text-decoration: none;
  color: #3E2510;
  font-size: 22px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  padding: 5px 10px;
  margin: 0;
}

.a:hover {
  color: white;
  background-color: #3E2510;
  border-radius: 5px;
  transition: 0.3s;
}

/* ===== MAIN ===== */
.main {
  width: 100%;
  min-height: calc(100vh - 180px);
  flex: 1;
  border: 1px solid #fff6a8;
  background-color: #fff6a8;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 10px 10px 5px #3E2510;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.main-img {
  width: min(600px, 90vw);
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ======== PATIČKA ======== */
.footer {
  position: relative;
  min-height: 80px;
  width: 100%;
  background-color: #3E2510;
  border: 1px solid #3E2510;
  border-radius: 5px;
  box-shadow: 10px 10px 5px #3E2510;
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 10px 30px;
  box-sizing: border-box;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
  background-repeat: repeat-x;
  background-size: 34.64px 40px;
  pointer-events: none;
  z-index: 1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 30px; left: 17.32px;
  width: 100%; height: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
  background-repeat: repeat-x;
  background-size: 34.64px 40px;
  pointer-events: none;
  z-index: 1;
}

.hex-row3 {
  position: absolute;
  top: 60px; left: 0;
  width: 100%; height: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
  background-repeat: repeat-x;
  background-size: 34.64px 40px;
  pointer-events: none;
}

.footer::before, .footer::after, .hex-row3 {
  filter: brightness(0.4) contrast(1.2);
}

.footer-logo {
  position: relative;
  z-index: 2;
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.footer-text {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin: 0;
  flex: 1;
  padding: 5px 10px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  body { display: block; min-height: unset; }
  .main { min-height: 400px; }
  .header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
  }
  .logo { height: 70px; }
  .a { font-size: 18px; padding: 6px 12px; }
  .footer {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
  }
  .footer-logo { height: 50px; margin-bottom: 8px; }
  .footer-text { font-size: 13px; }
}

@media (max-width: 480px) {
  .a { font-size: 16px; }
  .footer-logo { height: 45px; }
  .footer-text { font-size: 12px; }
}
