@import "../../globals.css";

.nav-arrow {
 width: 40px;
 height: 40px;
}

.triangle {
 position: absolute;
 bottom: 0;
 right: 0;
 height: 56px;
 width: 56px;
 z-index: 1;
}

.interplay {
 display: flex;
 flex-direction: column;
 gap: 24px;
 margin: 120px 0 120px 0;
}

.interplay-header {
 display: flex;
 flex-direction: column;
 gap: 24px;
 line-height: 1.33;
}

.interplay-header .number {
 font-family: "Raleway", sans-serif;
 font-size: 36px;Helping New Hires
 font-weight: 400;
 line-height: 1.23;
 color: #2d363d;
}

.interplay-header h2 {
 font-family: "Playfair Display", serif;
 font-size: 60px;
 font-weight: 400;
 line-height: 1.1;
 color: #2d363d;
 margin: 0;
}

.interplay-text {
 font-family: "Raleway", sans-serif;
 font-size: 28px;
 font-weight: 400;
 line-height: 1.3;
 color: #292b33;
 margin-bottom: 32px;
 margin-top: 16px;
}

.interplay-text-2 {
 padding-top: 16px;
}

.interplay-text-3 {
  font-size: 30px;
 line-height: 1.3;
}

.italic {
 font-family: "Playfair Display", serif;
 font-weight: 400;
 line-height: 1.3;
 color: #292b33;
}
/* Mobile Cards */
.mobile-cards {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 gap: 32px;
 position: relative;
 overflow: hidden;
 min-height: 520px;
}

.desktop-cards {
 display: none;
 grid-template-columns: 250px 1fr;
 padding: 40px 0;
 position: relative;
 overflow: hidden;
 min-height: 600px;
 gap: 32px;
}

.card {
 position: absolute;
 width: 100%;
 height: 100%;
 left: 0;
 top: 0;
 transition: opacity 0.3s ease, visibility 0.3s ease;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.card-content {
 display: flex;
 align-items: center;
 gap: 32px;
 height: 100%;
 .container{
  display: flex;
  flex-direction: column;
  gap: 20px;
 }
}

.card h3 {
 font-family: "Playfair Display", serif;
 font-size: 42px;
 font-weight: 400;
 line-height: 1.1;
 color: #ffffff;
}

.card p {
 font-family: "Raleway", sans-serif;
 font-size: 20px;
 font-weight: 400;
 line-height: 1.3;
 color: #ffffff;
 max-width: 500px;
}

.nav-arrow {
 position: absolute;
 bottom: 32px;
 right: 32px;
 background: none;
 border: none;
 cursor: pointer;
 color: #ffffff;
 height: 40px;
 width: 40px;
}

.nav-arrow:hover {
 opacity: 0.8;
}

/* Card Colors */
.thoughts,
[data-panel="thoughts"].active {
 background-color: #f18f86;
}

.feelings,
[data-panel="feelings"].active {
 background-color: #7ab7d8;
}

.behaviours,
[data-panel="behaviours"].active {
 background-color: #476477;
}

.motivation,
[data-panel="motivation"].active {
 background-color: #7ab7d8;
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
  .interplay {
    margin: 180px 0 90px 0;
  }

 .interplay-header {
  h2 {
   font-size: 140px;
  }
 }

 .interplay-text {
  font-size: 35px;
 }

 .tabs {
  justify-content: center;
 }

 .interplay-header .number {
  font-style: italic;
  font-size: 55px;
 }

 .mobile-cards {
  display: none;
 }

 .desktop-cards {
  display: grid;
  grid-template-columns: 350px 1fr;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
 }

 .tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
  position: relative;
  z-index: 2;
 }

 .tab-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  opacity: 0.5;
  position: relative;
  overflow: hidden;
 }

 .tab-button:hover {
  opacity: 0.8;
 }

 .tab-button.active {
  opacity: 1;
 }

 .tab-number {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  color: #666;
  opacity: 0.6;
  min-width: 25px;
 }

 .tab-button.active .tab-number {
  opacity: 1;
 }

 .tab-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #2d363d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 }

 .tab-button.active .tab-title {
  color: #000000;
 }

 .tab-content {
  position: relative;
  height: 100%;
  z-index: 1;
  grid-column: 2;
  overflow: hidden;
  border-radius: 12px;
 }

 .tab-panel {
  position: absolute;
  inset: 0;
  padding: 40px;
  gap: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
 }

 .tab-panel h3 {
  font-family: "Playfair Display", serif;
  font-size: 58px;
  color: #ffffff;
  margin-bottom: 24px;
 }

 .tab-panel p {
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  line-height: 32px;
  color: #ffffff;
 }

 /* Panel background colors */
 .tab-panel[data-panel="thoughts"] {
  background-color: #f18f86;
 }

 .tab-panel[data-panel="feelings"] {
  background-color: #7ab7d8;
 }

 .tab-panel[data-panel="behaviours"] {
  background-color: #476477;
 }

 /* Color indicators for tabs */
 .tab-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 100%;
  border-radius: 2px;
  transition: transform 0.3s ease;
 }

 .tab-button[data-tab="thoughts"]::before {
  background-color: #f18f86;
 }

 .tab-button[data-tab="feelings"]::before {
  background-color: #7ab7d8;
 }

 .tab-button[data-tab="behaviours"]::before {
  background-color: #476477;
 }

 .tab-button[data-tab="motivation"]::before {
  background-color: #7ab7d8;
 }

 .tab-button.active::before {
  transform: translateY(-50%) scaleY(1);
 }
}
