/*
 * Breaking Bar Styles
 * Liner.hu
 * Elegant, compact design
 */

/*breaking bar*/
.breaking_bar {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50, #1a1a1a);
  padding: 0;
  height: 40px;
  z-index: 300;
  font: 500 14px/40px "Roboto", sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.breaking_bar_outer {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
  position: relative;
  left: 0;
  right: 0;
}

.breaking_bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #fb0b00, #ff5e62, #ff9966);
}

.breaking_bar .breaking_bar_content {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
}

.breaking_bar .breaking_before_title {
  font-weight: 700;
  color: white;
  padding: 0 15px;
  height: 40px;
  line-height: 40px;
  background: linear-gradient(135deg, #fb0b00, #e50914);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
}

.breaking_bar .breaking_before_title::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 8px solid #e50914;
}

.breaking_bar .breaking_bar_news_text {
  flex: 1;
  padding: 0 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.95);
}

.breaking_bar a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.breaking_bar a:hover {
  color: #ff9966;
}

.breaking_bar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -1px;
  left: 0;
  background-color: #ff9966;
  transition: width 0.3s ease;
}

.breaking_bar a:hover::after {
  width: 100%;
}

.breaking_bar .close_breaking_bar {
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 0 15px;
  height: 40px;
  line-height: 40px;
  background-color: rgba(0, 0, 0, 0.2);
}

.breaking_bar .close_breaking_bar:hover {
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
}

/** attached class to div by js **/
.breaking_bar_float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.move_wrapper {
  margin-top: 40px;
  transition: margin-top 0.5s ease;
}

/* Responsive */
@media (max-width: 767px) {
  .breaking_bar {
    height: 40px;
  }
  
  .breaking_bar::before {
    height: 2px;
  }
  
  .breaking_bar .breaking_bar_content {
    flex-direction: row;
    max-width: 100%;
  }
  
  .breaking_bar .breaking_before_title {
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
  
  .breaking_bar .breaking_before_title::after {
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 8px solid #e50914;
  }
  
  .breaking_bar_outer {
    width: 100vw;
    max-width: 100%;
    padding: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .br_scrolling {
    height: 40px;
    position: relative;
    flex: 1;
    overflow: hidden;
  }
  
  .br_scrolling a {
    color: white;
    font-size: 13px;
    position: absolute;
    width: max-content;
    min-width: 100%;
    height: 100%;
    margin: 0;
    line-height: 40px;
    padding: 0 12px;
    text-align: left;
    white-space: nowrap;
    /* Animation */
    transform: translateX(100%);
    animation: br_scrolling 20s linear infinite;
  }
  
  .br_scrolling a:hover {
    animation-play-state: paused;
  }
  
  .breaking_bar .close_breaking_bar {
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  
  /* Move it (define the animation) */
  @keyframes br_scrolling {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  .move_wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 400px) {
  .breaking_bar {
    height: 36px;
  }
  
  .breaking_bar .breaking_before_title {
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }
  
  .breaking_bar .breaking_before_title::after {
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 8px solid #e50914;
  }
  
  .br_scrolling {
    height: 36px;
  }
  
  .br_scrolling a {
    line-height: 36px;
    font-size: 12px;
    padding: 0 10px;
  }
  
  .breaking_bar .close_breaking_bar {
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  
  .move_wrapper {
    margin-top: 36px;
  }
} 