html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

main {
  flex: 1; 
}

.site-header {
  background: var(--color-header);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.site-header .back-btn {
  text-decoration: none;
  font-size: 1.1em;
  color: var(--color-text);
}

.site-header .right {
  display: flex;
  gap: 20px;
}

.dropdown {
  position: relative;
}

.drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--color-text); 
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--color-header);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  min-width: 120px;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  text-decoration: none;
}

.dropdown-content a:hover {
  background: var(--color-border);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.site-header .right > a,
.site-header .left > a,
.site-header .drop-btn {
  font-family: inherit;
  font-size: 1em;     
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 4px 6px;
  transition: color 0.25s ease;
}

.site-header .right > a::after,
.site-header .left > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-header), var(--color-text), var(--color-header));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.site-header .right > a:hover::after,
.site-header .left > a:hover::after {
  transform: scaleX(1);
}

.site-header .right > a:hover,
.site-header .left > a:hover {
  color: var(--color-text);
}


.site-footer {
  margin-top: 40px;
  width: 100%;
  padding: 20px;
  background: var(--color-footer);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: center; 
  gap: 24px; 
  flex-wrap: wrap; 
}

.footer-content a {
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-content a img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 6px;
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-content a:hover {
  transform: translateY(-2px);
}

.footer-content a:hover img {
  opacity: 1;
  transform: scale(1.05);
}
