/* CSS VARIABLES */

:root {
  --White: #FFFFFF;
  --Black: #000000;
  --Navy950: #0E1323;
  --Navy900: #1C204B;
  --Navy800: #33397A;
  --Navy200: #BBC0FF;
  --Orange300: #FF8B64;
  --Purple700: #7335D2;
  --Purple600: #5747EA;
  --Purple500: #7078C9;
  --Blue300: #55C2E6;
  --Pink400: #FF5E7D;
  --Green400: #48CF82;
  --Yellow300: #F1C75B;
  --Grey200: #d8d8d8;
}





/* CSS RESET */


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default list styles */
ol, ul {
  list-style: none;
}

/* Ensure images are responsive and don't exceed their container */
img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}

/* Remove default anchor styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Reset buttons to avoid inconsistent styling */
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  appearance: none;
}

/* Ensure form elements don't overflow */
input, textarea {
  width: 100%;
}

/* Remove default table spacing */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Set base font and line height */
html {
  font-size: 100%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
  scroll-behavior: smooth;
}

/* Remove default focus outlines for better accessibility control */
:focus {
  outline: none;
}

/* Ensure body takes up at least full viewport height */
body {
  min-height: 100vh;
  font-family: "Rubik", sans-serif;
}





/* TYPOGRAPHY */

.text-preset-1 {
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 56px;
  line-height: 66px;
  letter-spacing: 0px;
}

.text-preset-2 {
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 40px;
  line-height: 47px;
  letter-spacing: 0px;
}

.text-preset-3 {
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
}

.text-preset-4 {
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0px;
}

.text-preset-5-medium {
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  line-height: 21px;
  letter-spacing: 0px;
}

.text-preset-5-regular {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 21px;
  letter-spacing: 0px;
}

.text-preset-6 {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 0px;
}






/* GENERAL STYLING */
body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--Navy950);
}

.main-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.activity-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* PROFILE SECTION */
#profile-section {
  background-color: var(--Navy900);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-info {
  background-color: var(--Purple600);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  
}

.profile-header {
  display: flex;
  gap: 24px;
  padding: 32px;
}

.profile-picture {
  height: 64px;
  width: 64px;
  border: 3px solid var(--White);
  border-radius: 50%;
}

.text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-title{
  color: var(--Navy200);
  display: block;
  margin-bottom: 10px;
}

.profile-name{
  color: var(--White);
}

/* nav bar */
.nav-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 24px;
}

.nav-btn {
  color: var(--Purple500);
  cursor: pointer;
}

.nav-btn:hover:not(.active) {
  color: var(--Navy200)
}

.nav-btn:focus {
  outline: 2px solid var(--Navy200);
  outline-offset: 2px;
}

.active {
  color: var(--White);
}





/* STAT CARDS */

.stat-section-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
}

#work-card {
  background-color: var(--Orange300);
}

#play-card {
  background-color: var(--Blue300);
}

#study-card {
  background-color: var(--Pink400);
}

#exercise-card {
  background-color: var(--Green400);
}

#social-card {
  background-color: var(--Purple700)
}

#self-care-card {
  background-color: var(--Yellow300);
}

.card-top {
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  height: 41px;
}

.card-top-image {
  position: absolute;
  top: -.5rem;
}

.card-stats {
  background-color: var(--Navy900);
  border-radius: 15px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.activity-header, .activity-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--White);
}

.ellipsis-icon {
  height: 5px;
  width: 21px;
}

.previous-total {
  color: var(--Navy200);
}






/* MEDIA QUERIES */

/* tablet layout */
@media (min-width: 768px) {
  .main-container{
    margin-top: 180px;
    margin-bottom: 180px;
  }

  .main-container, #profile-section, .activity-cards {
    width: 612px;
  }

  /* profile section */

  .profile-info {
    justify-content: flex-start;
  }

  .nav-menu {
    min-width: 343px;
    align-self: center;
  }

  /* stat cards section */
 .activity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
 }

 .card-top {
  max-height: 33px;
  padding: 0 12px;
 }
 .card-top-image {
  height: 57.48px;
  width: 57.48px;
 }

 .card-stats {
  gap: 16px;
 }

 .ellipsis-icon {
  width: 11.79px;
  height: 3.64px;
 }

 .activity-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
 }

 .time-total{
  font-size: 56px;
  line-height: 66px;
 }

 #work-card, #exercise-card {
  max-width: 191.72px;
 }
}

/* desktop layout */
@media (min-width: 1440px) {
  .main-container {
    min-width: 1116px;
    flex-direction: row;
    gap: 32px;
  }

  #profile-section {
    width: 255px;
  }

  .profile-header {
    flex-direction: column;
    min-height: 355px;
    gap: 40px;
  }

  #profile-heading {
    font-size: 40px;
    line-height: 47px;
    max-width: 138px;
  }

  .profile-title {
    margin-bottom: 0px;
  }

  .nav-menu {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 68px;
    align-self: self-start;
    margin-left: 32px;
    gap: 24px
  }

  .stat-section-card{
    width: 255px

  }

  .card-top{
    min-height: 50px;
  }

  .card-stats {
    padding: 32px;
    gap: 24px;
  }

  .activity-stats {
    align-self: self-start;
  }

  .card-top-image {
    min-height: 78px;
    min-width: 78px;
  }

  .profile-picture {
    height: 78px;
    width: 78px;
  }

  #work-card, #exercise-card {
    max-width: 255px;
   }

   .ellipsis-icon{
    width: 21px;
    height: 5px;
   }

   .card-stats:hover {
    background-color: var(--Navy800);
   }

   .nav-btn:focus {
    display: none;
  }
}