/*
 Theme Name:   IHC
 Theme URI:    https://www.iroquoishunt.com/
 Description:  Custom Theme for Iroquois Hunt Club
 Author:       Anthill Inc.
 Author URI:   https://anthill.net
 Template:     generatepress
 Version:      1.0.0
*/

/* Image Hover Effect */
a img {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  -moz-transition: opacity 0.4s ease-in-out;
  -webkit-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
}

a img:hover {
  opacity: 0.8;
}

/* Global Styles */
div.section-divider {
  background-color: var(--accent);
  height: 4px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 30px;
}

h2.section-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 24px;
  margin-bottom: 40px;
}

.centered {
  text-align: center;
}

a.button {
  align-items: center;
  background-color: var(--accent);
  color: var(--base-3);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 20px;
}

/* Basic Page Content Wrapper */
body.separate-containers:not(.full-width-content) .inside-article {
  margin: 0 40px;
}

/* Homepage Hero */
#hero-image {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  animation: 2s fadeInZoom ease-out forwards;
}

.admin-bar #hero-image {
  min-height: calc(100vh - 32px);
}

#hero-image::before {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

div.site-title {
  text-align: center;
  vertical-align: middle;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  padding: 30px;
}

div.site-title h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 0;
  padding: 0 30px;
}

.site-title h1:hover {
  cursor: default;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fadeInUp-animation {
  animation: 2.3s fadeInUp ease-out forwards;
}

/* Homepage Events */
.homepage-events
  .tribe-common--breakpoint-medium.tribe-events-widget
  .tribe-events-widget-events-list
  .tribe-events-c-messages__message {
  color: #fff;
}

.homepage-events .tribe-events-widget-events-list__view-more {
  display: none;
}

.tribe-events-widget-events-list__event-date-tag {
  background-color: var(--accent);
  color: #fff;
}

span.tribe-events-widget-events-list__event-date-tag-month,
span.tribe-events-widget-events-list__event-date-tag-daynum {
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
}

div.tribe-events-widget-events-list__event-details {
  background-color: #fff;
  padding: 20px !important;
}

.tribe-events-widget-events-list__event-date-tag {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tribe-events-widget-events-list__event-date-tag-datetime {
  height: auto !important;
}

.tribe-events-widget-events-list__event-datetime {
  color: var(--contrast-2);
  font-weight: 500;
}

.tribe-events-widget-events-list__event-datetime-wrapper {
  padding-bottom: 5px !important;
}

h3.tribe-events-widget-events-list__event-title a {
  color: var(--contrast-3) !important;
  text-transform: uppercase;
  font-family: "DM Sans", sans-serif !important;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 1px;
}

h3.tribe-events-widget-events-list__event-title a:hover {
  color: var(--contrast) !important;
}

/*
** Contact Forms
*/
.form-row {
  display: flex;
  column-gap: 30px;
}

.grid-50 {
  width: 50%;
}

.grid-100 {
  width: 100%;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select {
  height: 46px;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
}

.wpcf7-form-control::placeholder,
.wpcf7-select {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--accent);
}

.form-submit p {
  margin-bottom: 0;
}

/* Events Calendar */
.tribe-common-l-container,
.tribe-events-l-container {
  padding: 0 !important;
  margin: 0 !important;
}

/* Login */
ul.tml-links {
  margin: 10px 0;
}

ul.tml-links li {
  list-style: none;
}

/* Hounds */
.hound-profile-content,
.hound-profile-image {
  text-align: center;
}

.hound-profile-image {
  max-width: 600px;
  margin: 0 auto;
}

p.hound-status {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 14px;
}

p.hound-meta {
  font-size: 16px;
  font-weight: bold;
  color: var(--contrast-2);
}

span.hound-birth-year {
  color: var(--contrast-3);
}

div.hounds-archive-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

a.hound-archive-item {
  display: block;
  width: calc((100% / 4) - (((4 - 1) / 4) * 20px));
  background-color: var(--base-2);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

a.hound-archive-item:hover {
  transform: translateY(-2px);
}

a.hound-archive-item:hover p.hound-name {
  color: var(--accent);
}

p.hound-year {
  font-size: 12px;
  font-weight: bold;
  color: var(--contrast-3);
  margin-bottom: 0;
}

p.hound-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--contrast);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/*Fixture Cards */
div.fixture-card-notes-wrapper {
  max-width: 800px;
  margin: 0 auto 80px auto;
}

div.fixture-card-hounds-wrapper {
  margin: 0 auto 30px auto;
}

h2.fixture-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  margin-bottom: 20px;
}

div.fixture-card-note {
  text-align: center;
  margin-bottom: 40px;
}

div.notes-contacts-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

div.notes-contacts-wrapper:nth-child(odd) {
  background-color: #f2f2f2;
}

div.notes-contacts-wrapper:nth-child(even) {
  background-color: #e8e8e8;
}

.notes-contacts-wrapper-group {
  margin-bottom: 40px;
}

div.contact-phone {
  text-align: right;
}

div.fixture-card-hounds-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

a.hound-link {
  display: block;
  width: calc((100% / 4) - (((4 - 1) / 4) * 20px));
  background-color: var(--base-2);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

a.hound-link:hover {
  transform: translateY(-2px);
}

a.hound-link:hover p.hound-name {
  color: var(--accent);
}

div.fixture-card-events-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

div.fixture-events-wrapper {
  width: calc((100% / 3) - (((3 - 1) / 3) * 40px));
}

table.event-month-table,
table.event-month-table td {
  border: none;
  font-size: 12px;
}

td.event-time {
  text-align: right;
}

table.event-month-table tr:nth-child(odd) {
  background-color: #f2f2f2;
}

table.event-month-table tr:nth-child(even) {
  background-color: #e8e8e8;
}

div.additional-notes-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

/* Members Portal */
.members-notice-wrapper {
  padding: 0 40px;
}

.members-notice {
  border-left: 6px solid var(--accent);
  padding: 20px;
  margin: 40px auto 0 auto;
  font-size: 16px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  max-width: 1320px;
}

/* WooCommerce */
.widget_shopping_cart .woocommerce-mini-cart__buttons {
  justify-content: space-between;
}

/* Secondary Menu */
.secondary-navigation .menu-bar-item > a {
  margin-right: 10px !important;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  div.fixture-events-wrapper {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  body.separate-containers:not(.full-width-content) .inside-article {
    margin: 0 30px;
  }
  .separate-containers .widget,
  .separate-containers .site-main > *,
  .separate-containers .page-header,
  .widget-area .main-navigation {
    margin-bottom: 30px;
  }
  .right-sidebar.separate-containers .site-main {
    margin: 30px 30px 30px 0px;
  }
  .separate-containers .inside-right-sidebar,
  .separate-containers .inside-left-sidebar {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .grid-50 {
    width: 100%;
  }
  .one-container.archive .post:not(:last-child):not(.is-loop-template-item) {
    padding-bottom: 0;
  }
  div.hounds-archive-wrapper {
    gap: 30px;
  }
  a.hound-archive-item,
  a.hound-link {
    width: calc((100% / 3) - (((3 - 1) / 3) * 30px));
  }
  div.contact-phone,
  div.contact-name {
    font-size: 12px;
  }
  .secondary-nav-below-header
    .secondary-navigation
    .inside-navigation.grid-container {
    padding: 0 !important;
  }
  .secondary-navigation .menu-toggle {
    padding-left: 30px !important;
  }
  .secondary-navigation .main-nav ul li a {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}

@media screen and (max-width: 600px) {
  a.hound-archive-item,
  a.hound-link {
    width: calc((100% / 2) - (((2 - 1) / 2) * 30px));
  }
}

/* Pedigree Chart Styles */
.hound-profile-pedigree {
  margin-top: 40px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  margin-bottom: 40px;
}

/* Main 3-Column Grid */
.pedigree-generations {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  column-gap: 24px;
  align-items: stretch;
  width: fit-content;
}

/* Subject Column - Left Side */
.pedigree-subject-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.pedigree-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--contrast-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  word-wrap: break-word;
}

.pedigree-tree-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pedigree-lineage {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pedigree-branches {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pedigree-branch {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pedigree-dog .pedigree-box.dog-male,
.pedigree-dog .pedigree-box.dog-female {
  background-color: #f2f2f2;
}

.pedigree-bitch .pedigree-box.bitch-male,
.pedigree-bitch .pedigree-box.bitch-female {
  background-color: var(--base-2);
}

.dog-male,
.bitch-male {
  color: rgb(35, 128, 228);
}

.dog-female,
.bitch-female {
  color: rgb(194, 81, 138);
}

.pedigree-parent,
.pedigree-grandparent {
  flex: 0 0 140px;
}

.pedigree-descendants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pedigree Boxes */
.pedigree-box {
  padding: 9px 11px;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  min-width: 110px;
  word-wrap: break-word;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pedigree-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive: Scrollable chart on smaller screens */
@media screen and (max-width: 1024px) {
  .hound-profile-pedigree {
    overflow-x: auto;
    padding: 30px 20px;
  }

  .pedigree-generations {
    min-width: min-content;
  }
}

@media screen and (max-width: 768px) {
  .hound-profile-pedigree {
    padding: 20px 10px;
  }

  .pedigree-generations {
    column-gap: 18px;
  }

  .pedigree-title {
    font-size: 16px;
  }

  .pedigree-box {
    font-size: 11px;
    padding: 8px 10px;
    min-width: 90px;
  }

  .pedigree-parent,
  .pedigree-grandparent {
    flex: 0 0 120px;
  }

  .pedigree-lineage,
  .pedigree-branch {
    gap: 12px;
  }

  .pedigree-branches,
  .pedigree-descendants {
    gap: 6px;
  }
}

/* WooCommerce My Account MOBILE Navigation */
@media only screen and (max-width: 768px) {
  .woocommerce-MyAccount-navigation {
    width: 100%;
    text-align: center;
  }
  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0 20px 0;
    gap: 20px;
    border-bottom: 2px solid var(--base-2);
    border-top: none !important;
    margin-bottom: 30px !important;
  }
  .woocommerce-MyAccount-navigation ul li {
    padding: 0;
  }
  .woocommerce-MyAccount-navigation ul li a {
    padding: 0;
  }
  .woocommerce-MyAccount-navigation li a,
  .woocommerce-MyAccount-navigation ul li {
    border: none !important;
  }
}
