/* css/navigation.css */

/* Base Navigation Structure */
.neopoet-navigation-wrapper {
  position: relative;
  font-family: 'Roboto', sans-serif;
  z-index: 1000;
}

/* Material Icons Configuration */
.material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

/* Main Content Adjustment */
.main-content {
  margin-left: 220px;
  padding: 20px;
  min-height: 100vh;
  width: auto;
}
.menu-title {
  flex-grow: 1;
}

/* User Avatar Styles */
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 16px;
  object-fit: cover;
}


/* User avatar styles */
.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #0d77b5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 16px;
}

/* Notifications and Indicators */
.update-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #f44336;
  color: white;
  border-radius: 12px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
  padding: 0 6px;
  line-height: 18px;
}

.members-only-indicator {
  position: relative;
  margin-left: 8px;
  color: #9e9e9e;
}

.members-only-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.members-only-indicator:hover .members-only-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Reset Elements */
.neopoet-navigation-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Notifications Styles */
.notifications-wrapper {
  max-width: 800px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.notification-item {
  position: relative;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-start;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  background-color: #e0e0e0;
  flex-shrink: 0;
  font-size: 0;

  img {
    border-radius: 50%;
  }
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  a {
    text-decoration: none;
  }
}

.privatemsg--thread{
  .privatemsg-message{
    position: relative;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
  }
  .privatemsg-message-column{
    width:100%;
  }
  .privatemsg-message-information{
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
    float: right;
    span{
      padding-right: 10px;
    }
    a{
      color:#333;
      text-decoration: none;
    }
  }
  .field--name-owner{
    margin:0;
    a{
      font-weight: 700;
      color:#333;
      text-decoration: none;
    }
    a:hover{
      color: #666;
    }
  }
}
.notification-header {
  margin-bottom: 4px;
  color: #666;
  font-size: 14px;
  flex: 2;

  a {
    cursor: pointer;
    color: #666;
    font-size: 14px;
  }

  p{
    padding-right:65px;
  }

  pre {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0 0;
    color: #666;
    white-space: break-spaces;
    font-style: italic;
    p{
      padding-right:0;
    }
  }

  a:focus {
    outline: none;
  }

  a:hover {
    color: #333;
  }

  p {
    margin: 0;
  }
}

.subscribe-btn {
  display: flex;
  justify-content: flex-end;
  padding-inline: 0;
  margin: 10px 0;

  .flag {
    position: relative;
  }

  a {
    font-weight: bold;
    background-color: #0d77b5;
    max-width: 200px;
    width: 100%;
    text-align: center;
    padding: 10px 16px 10px 36px;
    border-radius: 4px;
    color: #FFF;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out;
  }

  a:focus {
    outline: none;
  }

  a:hover {
    background: #1976d2;
  }
}

.notification-header strong {
  color: #333;
  font-weight: 600;
}

.block-privatemsg {
  margin: 0;

  .privatemsg-block-new-messages-count {
    display: none;
  }

  p {
    margin: 0;
  }

  a {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    background-color: #0d77b5;
    max-width: 200px;
    width: 100%;
    text-align: center;
    padding: 8px 16px 8px 28px;
    border-radius: 4px;
    color: #FFF;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  a::before {
    position: absolute;
    display: block;
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    left: 10px;
    top: 35%;
    width: 10px;
    height: 10px;
    background-image: url("../images/plus-icon.svg");
  }

  a:hover {
    background: #1976d2;
  }

  a:focus {
    outline: none;
  }
}

.notification-time {
  color: #999;
  font-size: 12px;
  float: right;
  position: absolute;
  right: 15px;
  top: 15px;
}

.notification-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
  background-color: #e5e7eb;
  color: #666;
}

/* Responsive Design */
@media screen and (min-width: 1101px) {
  .sidebar{
    width: 220px;
  }
  .main-content {
    margin-left: 220px;
  }
}

@media screen and (max-width: 768px) {
  /* Main content adjustments */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }
  
  /* Fix breadcrumb positioning */
  .breadcrumb {
    margin-left: 70px; /* Provide space for hamburger menu */
  }
  
  /* Center align main headings for better mobile layout */
  .block__title, 
  h2.block__title,
  .main-content > h1:first-child,
  .main-content > h2:first-child,
  .view-header h2,
  .view-content h2 {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: large;
  }
  
  /* For "Stream" and other secondary headings that aren't the first item */
  h2:not(:first-of-type) {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: large;
  }
  
  /* Ensure consistent card styling */
  .views-row {
    margin-bottom: 20px;
  }
  
  .views-row article {
    padding: 20px;
    margin: 0;
  }
  
  /* Add backdrop when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   X. Horizontal Navigation Menus (for blocks in content area for menus)
   -------------------------------------------------------------------------- */
/* Material Design Tabs - Match Olivero exactly */
nav.menu--contest-menu .menu,
nav.menu--workshop-menu .menu,
nav.menu--updates-menu .menu {
  display: flex !important;
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0 20px;
  margin: 0;
  list-style: none !important;
  border-bottom: 0 !important;
}

nav.menu--contest-menu .menu__item,
nav.menu--workshop-menu .menu__item,
nav.menu--updates-menu .menu__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  height: 54px !important;
}

nav.menu--contest-menu .menu__link,
nav.menu--workshop-menu .menu__link,
nav.menu--updates-menu .menu__link {
  display: flex !important;
  flex-grow: 1 !important;
  align-items: center !important;
  padding: 0 27px !important;
  text-decoration: none !important;
  color: rgb(11, 13, 15) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 22.4px !important;
  border: 1px solid rgb(234, 238, 240) !important; /* Full border */
  background-color: transparent !important;
  margin-bottom: -1px !important;
  height: 54px !important;
  box-sizing: border-box !important;
}

nav.menu--contest-menu .menu__link--active-trail,
nav.menu--workshop-menu .menu__link--active-trail,
nav.menu--updates-menu .menu__link--active-trail,
nav.menu--contest-menu .menu__link.is-active,
nav.menu--workshop-menu .menu__link.is-active,
nav.menu--updates-menu .menu__link.is-active {
  border-bottom: 3px solid #0d77b5 !important;
  margin-bottom: -2px !important;
}