/*General*/

.button-icons{
  cursor: pointer;
}

/*Home Page*/

.trending-page {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    padding: 10px;
    position: relative;
    margin-bottom: 60px;
    margin-top: 55px;
  }
  
  .trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }

  .trending-header-title {
    display: flex;
    flex-direction: row;
  }
  
  .trending-header h1 {
    font-size: 24px;
    margin: 0;
  }
  
  .grid-view-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
  }
  
  .trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  @media screen and (min-width: 600px) {
    .trending-grid {
      grid-template-columns: repeat(6, 1fr);
    }
    
  }


  .trending-item {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .trending-item.large {
    grid-row: span 2;
    grid-column: span 2;
  }
  
  .trending-item.ads {
    grid-column: 1 / span 3 !important;
    aspect-ratio: 5 / 4;
  }
  
  .trending-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 10px;
  }
  
  .rating, .flag {
    position: absolute;
    top: 5px;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
  }
  
  .rating {
    left: 5px;
  }
  
  .flag {
    right: 5px;
  }
  
  .item-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
  }
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #111;
    padding: 10px 0;
  }
  
  .bottom-nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
  }
  
  .add-button {
    background-color: #ff4500 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
  }
  
  @media (max-width: 200px) {
    .trending-grid {
      grid-template-columns: 1fr 1fr;
    }
    .trending-item.large {
      grid-column: span 2;
    }
    .trending-item:nth-child(12n+5),
    .trending-item:nth-child(12n+6),
    .trending-item:nth-child(12n+10),
    .trending-item:nth-child(12n+11) {
      grid-column: auto;
    }
  }

.full-height {
  min-height: 100vh;
  background-color: black;
}

body {
    color: #262626;
    font-size: 14px;
    line-height: 18px;
    margin: auto;
    overscroll-behavior: none;
}

.app {
    background-color: #fafafa;
    min-height: 100vh;
}

.dark-nav {
    background-color: #000;
    color: #fff;
}

.navigation-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 54px;
    object-fit: contain;
    align-content: center;
    border-bottom: 1px solid lightgray;
    padding: 0 20px;
}

.navigation-headerWrapper {
    max-width: 975px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-headerButtons {
    display: flex;
    column-gap: 15px;
}

button {
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    border: 1px solid transparent;
}

.primary-button {
    background-color: #0095f6;
    border-radius: 4px;
    color: #fff;
    padding: 5px 9px;
    font-weight: 600;
    text-align: center;
}

.text-button {
    color: #0095f6;
    font-weight: 600;
    line-height: 28px;
    background-color: transparent;
}

.app-signUp {
    display: flex;
    flex-direction: column;
    margin: 28px 0;
    row-gap: 15px;
}

/* User profile page */

.user-profile-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #fff;
}

.user-profile {
  font-family: Arial, sans-serif;
  background-color: #000;
  padding: 10px;
  position: relative;
  margin-bottom: 60px;
  margin-top: 55px;
  flex-grow: 1;
}

.profile-header {
  text-align: left;
  margin-bottom: 20px;
  display: flex;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: inline-block;
  padding: 0 20px;
}

.profile-header h2 {
  margin: 10px 0;
  font-size: 24px;
}

.follow-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.bio {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.stat {
  text-align: center;
  cursor: pointer;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.stat-label {
  font-size: 12px;
  color: #999;
}

.stories h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.story-thumbnail {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
}

.story-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-thumbnail p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-size: 12px;
  color: #fff;
}

/*
Story detail page
*/

.character-profile{
    min-width: 50px;
    display: flex;
    align-self: center;
    justify-content: center;
}

.character-profile > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-content-me {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0;
}

.chat-content-me .chat-bubble {
    --rad: 20px;
    --rad-sm: 3px;
    background-color: #0095f6;
    color: white;
    padding: 5px;
    border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
}

.chat-content-other {
    display: flex;
    justify-content: flex-start;
    margin: 4px 0;
}

.chat-content-other .chat-bubble {
    --rad: 3px;
    --rad-sm: 20px;
    background-color: #f0f0f0;
    color: black;
    padding: 5px;
    border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
}

.chat-content {
    display: flex;
    flex-direction: row;
    max-width: 80%;
}

.chat-container{
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.character-name {
    padding: 2px 14px 2px 14px;
    text-shadow: -0.5px -0.2px rgb(128, 128, 128);
}

.chat-container-right{
    display: flex;
    flex-direction: column;
    align-items: end;
}

.chat-bubble > p {
    margin: 4px auto;
}

/* Search */

.tab-container {
  display: flex;
  justify-content: space-around;
}

.active-tab {
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  width: 100%;
  text-align: center;
}

.inactive-tab {
  color: #999;
  width: 100%;
  align-content: center;
  text-align: center;
}

.no-data-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-data-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.no-data-subtext {
  color: #999;
  font-size: 16px;
}

.nav-name {
    font-size: 0.8em;
}

.profile-stats{
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

/* styles.css or your main CSS file */
.install-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: #cea63d; /* Your app's theme color */
    color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease-out;
    animation: fadeInSlideUp 0.5s ease-out forwards;
}

.install-button:hover {
    background-color: #b89030; /* Darker shade on hover */
    transform: translateX(-50%) translateY(-2px); /* Slight lift on hover */
}

.install-button:active {
    background-color: #a07d2a; /* Even darker on click */
    transform: translateX(-50%) translateY(0px);
}

.install-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

.install-button .install-icon {
    width: 24px;
    height: 24px;
}

/* Optional: Animation for the button appearing */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.MuiSnackbarContent-message {
    display: flex;
}
