/**
 * Orestiada Homepage Design - Section 2 (Interactive Category Buttons)
 */

.orestiada-categories-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
  font-family: var(--orestiada-font-family);
  background-color: var(--orestiada-dark-bg);
}

.orestiada-categories-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: 0;
}

.orestiada-categories-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(10, 29, 42, 0.56) 0%, rgba(5, 16, 25, 0.84) 100%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.72) 0%, rgba(6, 18, 28, 0.55) 50%, rgba(6, 18, 28, 0.78) 100%);
  pointer-events: none;
}

.orestiada-categories-container {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

.orestiada-categories-grid {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.1rem 2.75rem;
}

@media (max-width: 768px) {
  .orestiada-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 390px;
  }
}

/* --------------------------------------------------------------------------
   Notched SVG Vector Frame & Rising Fill Animation
   -------------------------------------------------------------------------- */
.orestiada-cat-btn {
  --btn-accent: #11acc3;
  --btn-active-text: #ffffff;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 345 / 90;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.orestiada-cat-btn:hover,
.orestiada-cat-btn:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}

.orestiada-cat-btn:focus-visible .btn-svg-border {
  stroke: #ffffff;
  stroke-width: 3.2;
}

.orestiada-cat-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.orestiada-cat-btn-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.btn-svg-upper-base {
  fill: #040707;
}

/* Upper body rising accent fill on hover & click */
.btn-svg-upper-fill {
  fill: var(--btn-accent);
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.orestiada-cat-btn:hover .btn-svg-upper-fill,
.orestiada-cat-btn:focus-visible .btn-svg-upper-fill,
.orestiada-cat-btn.is-active .btn-svg-upper-fill {
  transform: scaleY(1);
}

/* Bottom part + ^ triangle: accent color at rest -> fills dark on hover & click */
.btn-svg-bottom-base {
  fill: var(--btn-accent);
}

.btn-svg-bottom-fill {
  fill: #040707;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center top;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.orestiada-cat-btn:hover .btn-svg-bottom-fill,
.orestiada-cat-btn:focus-visible .btn-svg-bottom-fill,
.orestiada-cat-btn.is-active .btn-svg-bottom-fill {
  transform: scaleY(1);
}

.btn-svg-border {
  fill: none;
  stroke: #dfe3e5;
  stroke-width: 2.5;
  stroke-linejoin: miter;
  stroke-miterlimit: 6;
  transition: stroke 0.25s ease;
}

.orestiada-cat-btn:hover .btn-svg-border,
.orestiada-cat-btn.is-active .btn-svg-border {
  stroke: #eef3f5;
}

/* Foreground Icon & Label */
.orestiada-cat-btn-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 88%;
  display: flex;
  align-items: center;
  padding: 0 1.45rem 0.15rem 1.35rem;
  box-sizing: border-box;
}

.orestiada-cat-btn-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-accent);
  transition: color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.orestiada-cat-btn-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.orestiada-cat-btn:hover .orestiada-cat-btn-icon,
.orestiada-cat-btn:focus-visible .orestiada-cat-btn-icon,
.orestiada-cat-btn.is-active .orestiada-cat-btn-icon {
  color: #040707;
  transform: scale(1.05);
}

.orestiada-cat-btn-label {
  flex: 1;
  text-align: center;
  padding-inline: 0.45rem;
  font-size: clamp(0.88rem, 1.1vw, 1.03rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.28s ease;
}

.orestiada-cat-btn:hover .orestiada-cat-btn-label,
.orestiada-cat-btn:focus-visible .orestiada-cat-btn-label,
.orestiada-cat-btn.is-active .orestiada-cat-btn-label {
  color: var(--btn-active-text, #ffffff);
}

/* --------------------------------------------------------------------------
   Dynamic Category Info Panel Tray
   -------------------------------------------------------------------------- */
.orestiada-category-panel {
  max-width: 780px;
  margin: 2.25rem auto 0;
  animation: orestiadaPanelFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.orestiada-category-panel[hidden] {
  display: none !important;
}

@keyframes orestiadaPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orestiada-category-panel-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(10, 20, 29, 0.9);
  border: 1.5px solid var(--panel-accent, #11acc3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.orestiada-category-panel-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.42rem;
  flex-shrink: 0;
  background: var(--panel-accent, #11acc3);
  box-shadow: 0 0 12px var(--panel-accent, #11acc3);
}

.orestiada-category-panel-text {
  flex: 1;
}

.orestiada-category-panel-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.orestiada-category-panel-text p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.orestiada-category-panel-btn-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--panel-accent, #11acc3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.orestiada-category-panel-btn-link:hover {
  opacity: 0.8;
}

.orestiada-category-panel-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.orestiada-category-panel-close:hover {
  background: var(--orestiada-magenta-accent, #eb2477) !important;
  border-color: var(--orestiada-magenta-accent, #eb2477) !important;
}

.orestiada-category-panel-close svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}
