/*=========== TABLE OF CONTENTS ===========
1. Common CSS
2. Page CSS
==========================================*/

/*-------------------------------------
  1. Common CSS
--------------------------------------*/
.user-profile {
  gap: var(--space-4xl);
  display: flex;
  background-color: var(--icon_white);
  flex: 1 1 300px;
  max-width: 500px;
  flex-direction: column;
  padding: var(--space-4xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--blue_gray_100);
  @media only screen and (max-width: 1050px) {
    max-width: 100%;
    width: 100%;
    flex: 1 1 auto;
  }

  @media only screen and (max-width: 550px) {
    padding: var(--space-4xl) var(--space-2xl);
    gap: var(--space-2xl);
  }
}

.user-profile__button {
  color: var(--icon_white) !important;
  padding-left: var(--space-2xl);
  padding-right: var(--space-2xl);
  background-color: var(--red_900) !important;
  box-shadow: 0 4px 8px 0 #00000019 !important;
  height: 48px;
  min-width: 152px;
  border-radius: 4px !important;
  @media only screen and (max-width: 550px) {
    min-width: unset;
    width: 100%;
  }
}

/*-------------------------------------
  2. Page CSS
--------------------------------------*/
.section {
  min-height: 100vh;
  padding-top: var(--space-6xl);
  padding-bottom: var(--space-6xl);
  background-image: url(../public/images/img_group_1.png);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  @media only screen and (max-width: 1050px) {
    min-height: auto;
  }

  @media only screen and (max-width: 550px) {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.section__header {
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  @media only screen and (max-width: 550px) {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.section__content {
  gap: 112px;
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-direction: column;

  @media only screen and (max-width: 1050px) {
    gap: 84px;
  }

  @media only screen and (max-width: 550px) {
    gap: 36px;
  }
}

.content__card {
  background-color: var(--icon_white);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5xl);
  border-radius: var(--radius-md);
  @media only screen and (max-width: 550px) {
    padding: var(--space-4xl);
  }
}

.card__description {
  margin-bottom: var(--space-5xl);
  gap: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.content__list {
  gap: var(--space-6xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  @media only screen and (max-width: 1050px) {
    flex-direction: column;
    align-items: stretch;
  }

  @media only screen and (max-width: 550px) {
    gap: var(--space-4xl);
  }
}

/*-------------------------------------
  3. Glassmorphism hero card
--------------------------------------*/
.section .content__card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/*-------------------------------------
  4. Gradient accent tagline
--------------------------------------*/
.section .text--tagline {
  background: linear-gradient(135deg, var(--red_900) 0%, #e8334a 50%, var(--red_700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*-------------------------------------
  5. Entrance animations
--------------------------------------*/
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section .content__card {
  animation: fadeSlideUp 0.6s ease-out both;
}

.section .content__list > .user-profile:nth-child(1) {
  animation: fadeSlideUp 0.6s ease-out 0.15s both;
}

.section .content__list > .user-profile:nth-child(2) {
  animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

/*-------------------------------------
  6. Card hover lift + shadow
--------------------------------------*/
.section .user-profile {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section .user-profile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

/*-------------------------------------
  7. Button hover glow
--------------------------------------*/
.section .user-profile__button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section .user-profile__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 8, 42, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .section .content__card,
  .section .content__list > .user-profile {
    animation: none;
  }
  .section .user-profile,
  .section .user-profile__button {
    transition: none;
  }
}
