/*
Theme Name: Escolinha do Parque
Theme URI: https://escolinhadoparque.pt
Author: Daniel Silva (D316)
Author URI: https://d316.pt
Description: Tema personalizado que replica o site Next.js da Escolinha do Parque em WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: escolinhadoparque
*/

/* Basic reset / structural styles inspired by the Next.js layout */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #000000;
}

main {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding-top: 2.5rem;
  background-color: #ffffff;
}

.site-section {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: block;
  margin: 0 auto;
}

.site-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

.site-intro {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  font-size: 1.25rem;
}

.site-footer {
  border-top: 8px solid #dc9897;
  width: 100%;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  background-color: #f2f2f2;
  box-sizing: border-box;
}

.site-footer address {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-style: normal;
}

.site-footer address a {
  color: inherit;
  text-decoration: none;
}

.site-footer address a:hover {
  text-decoration: underline;
}

.site-credit {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Dropdown + download button styles (plain CSS approximation of the React UI) */
.dropdown-group {
  max-width: 768px;
  margin: 3rem auto 1.25rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #f8f5ff;
  background-color: #dc9897;
  cursor: pointer;
  transition: background-color 150ms ease-in-out, transform 100ms ease-in-out;
}

.dropdown-toggle:hover {
  background-color: #dc9897;
  transform: translateY(-1px);
}

.dropdown-label {
  text-align: center;
}

.dropdown-icon {
  font-size: 1.75rem;
  display: inline-block;
  transition: transform 150ms ease-in-out;
}

.dropdown.open .dropdown-icon {
  transform: rotate(0deg);
}

.dropdown-menu {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 100%;
  max-height: 200px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  z-index: 10;
  transition: transform 150ms ease-in-out, opacity 150ms ease-in-out;
  opacity: 0;
}

.dropdown.open .dropdown-menu {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

.dropdown-option {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background-color 120ms ease-in-out, color 120ms ease-in-out;
}

.dropdown-option:hover {
  background-color: #e0e7ff;
  color: #4f46e5;
}

.download-button {
  width: 100%;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #3db653;
  cursor: pointer;
  transition: background-color 150ms ease-in-out, opacity 120ms ease-in-out, transform 100ms ease-in-out;
}

.download-button:hover:not(:disabled) {
  background-color: #34a048;
  transform: translateY(-1px);
}

.download-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}