/* Base Styles */
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: black !important;
  color: white;
  font-family: "nunito-sans", sans-serif;
}

#app {
  height: 100vh;
  width: 100vw;
  position: relative;
  background-color: black;
  overflow: hidden;
}

/* Ensure all page containers have consistent dimensions */
.clock-background,
.weather-background,
.news-background,
.page-background {
  height: 100vh !important;
  width: 100vw !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
}

/* Background Images */
.page-background {
  height: 100%;
  width: 100%;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Navigation Styles (from original App.css) */
.panel {
  width: 33%;
}

.box {
  font-size: 30px;
  padding: 100px 0;
  color: rgb(255, 255, 255);
  border: 1px solid;
  background-color: transparent;
  border: 0;
  font-size: 100px;
  text-align: center;
}

.flicking-viewport {
  position: absolute !important;
  bottom: 20px;
  width: 100%;
}

/* News Page Styles */
#content:after {
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: #e73739;
  border-style: solid;
  content: " ";
  top: -109px;
  right: -234px;
  border-width: 10px 10px 0 0;
  z-index: 10;
}

.swiper-slide-shadow {
  top: 61px !important;
  width: 86% !important;
  height: 90% !important;
  left: 106px !important;
  border-radius: 30px !important;
}

.swiper-cards {
  overflow: hidden !important;
}

/* Utility Classes */
.ui-center {
  text-align: center;
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateX(100px);
}

.page-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-exit-active {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Weather Page Styles */
.weather-background {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.weather-overlay {
  background: rgba(0, 0, 0, 0.4);
  height: 100vh;
  width: 100vw;
  position: absolute;
}

.weather-icon {
  font-size: 15rem;
  padding-right: 1rem;
}

.weather-location {
  font-size: 5.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  font-family: ivymode, sans-serif;
}

.weather-temp {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  font-family: ivymode, sans-serif;
}

.weather-icon-accent {
  margin-right: 0.5rem;
  color: #ae8b2f;
  font-size: 2.5rem;
}

.weather-mini-detail {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: "nunito-sans", sans-serif;
}

.weather-detail-card {
  border-radius: 15px;
  padding: 1.5rem;
  color: white;
  backdrop-filter: blur(10px);
  text-align: center;
  font-family: "nunito-sans", sans-serif;
}

.hour-time {
  font-size: 2rem;
  font-weight: 400;
}

.hour-icon {
  font-size: 4rem;
}

.hour-temp {
  font-size: 2.2rem;
  font-weight: 900;
}

.city-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  font-family: "nunito-sans", sans-serif;
}

.daily-temp {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
}

/* Additional Weather Styles */
.weather-main {
  color: white;
  margin-bottom: 3rem;
}

.weather-location-row {
  column-gap: 1rem;
}

.weather-temp-row {
  column-gap: 1rem;
  animation-delay: 0.5s;
}

.weather-mini-icon {
  margin-right: 0.5rem;
  color: #ae8b2f;
}

.weather-mini-icon-tint {
  margin-right: 0.5rem;
  font-weight: 900;
  color: #ae8b2f;
}

/* News Page Styles */
.news-background {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-overlay {
  height: 100vh;
  width: 100vw;
  position: absolute;
  z-index: 2;
}

.news-swiper {
  width: 100%;
  height: 70vh;
}

.news-card {
  width: 80%;
  margin: 120px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 500px;
}

.news-card-inner {
  padding: 3rem;
  overflow: visible;
}

.news-card-inner-fullwidth {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.news-image-fullwidth {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content-container {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-header {
  margin-bottom: 0;
  overflow: visible;
}

.news-title-section {
  display: flex;
  align-items: flex-start;
}

.news-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #333;
  font-family: ivymode, sans-serif;
  line-height: 1.2;
  margin: 0;
}

.news-image-section {
  position: relative;
  overflow: visible;
}

.news-image {
  width: 470px;
  margin-top: -100px;
  object-fit: cover;
  height: 330px;
}

.news-image-top {
  width: 100%;
  max-width: 500px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.news-content-row {
  margin-top: 3rem !important;
}

.news-content-main {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.news-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
  font-family: "nunito-sans", sans-serif;
  overflow: hidden;
}

.news-text h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 1rem 0 0.5rem 0;
}

.news-text em {
  font-style: italic;
  color: #555;
}

.news-text p {
  margin-bottom: 1rem;
}

.news-tags {
  margin-bottom: 0.5rem;
}

.news-tag {
  display: inline-block;
  background: #a5954d;
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
}

.news-date {
  font-size: 1rem;
  color: #333;
  font-weight: 900;
  margin-top: auto;
}

.news-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.news-qr-section p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-qr-code {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.swiper-pagination-bullet {
  background: #ae8b2f;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Custom News Slider Styles */
.custom-news-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 8rem;
}

.news-cards-container {
  position: relative;
  width: 90%;
  height: 60vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-slide {
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-slide .news-card {
  width: 100%;
  height: auto;
  margin: 0;
}

.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.news-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(174, 139, 47, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-dot.active {
  background: #ae8b2f;
  transform: scale(1.2);
}

.news-dot:hover {
  background: #ae8b2f;
  transform: scale(1.1);
}

/* Main Navigation Styles */
#main-navigation {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  pointer-events: none;
}

#main-navigation .flicking-viewport {
  position: absolute !important;
  bottom: 100px !important;
  width: 100% !important;
  height: 200px !important;
  pointer-events: auto;
}

#main-navigation .flicking-camera {
  display: flex;
  align-items: center;
  height: 100%;
}

#main-navigation .panel {
  width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-navigation .box {
  font-size: 100px;
  padding: 50px;
  color: rgb(255, 255, 255);
  background-color: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#main-navigation .box:hover {
  transform: scale(1.1);
}

#main-navigation .box i {
  color: #fff;
}

/* Time Weather Widget Styles - Original Design */
.time-weather-main-clock {
  display: inline-block;
  position: absolute;
  color: white;
  top: 100px;
  z-index: 1;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Nunito Sans", Arial, sans-serif;
  opacity: 0.8;
}

.time-weather-main-clock .time {
  font-size: 140px;
  font-weight: 700;
  font-family: "nunito-sans", sans-serif;
}

.time-weather-main-clock .date {
  font-size: 50px;
  font-family: "nunito-sans", sans-serif;
}

.time-weather-main-clock .text-strong {
  font-weight: 700;
}

/* Circle Progress Styles */
.timer-container {
  position: fixed;
  background: transparent;
  pointer-events: none;
  z-index: 999;
  display: none;
}

.circle-svg {
  background: transparent;
  width: 300px;
  height: 300px;
}

.progress-circle {
  fill: transparent;
  stroke: #a5954d;
  stroke-width: 5px;
  stroke-dasharray: 471;
  stroke-dashoffset: 0;
  animation: clock-animation linear infinite;
  transform: rotate(-90deg);
  transform-origin: center;
  animation-play-state: paused;
}

/* Dark Overlay for backgrounds */
.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* News QR Box Styles */
.news-qr-box {
  width: 330px !important;
  margin: -150px auto 0 auto;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.news-qr-box-icon {
  font-size: 3rem;
  color: #fff;
  font-weight: 900;
}

.news-qr-box-text {
  flex: 1;
  text-align: left;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0 1rem;
  line-height: 1.4rem;
}

.news-qr-box-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
}

/* Welcome Text Styles */
.welcome-container {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 999;
  pointer-events: none;
}

.welcome-text {
  color: rgb(255, 255, 255);
  font-size: 25px;
  font-family: "nunito-sans", sans-serif;
  vertical-align: middle;
  margin-right: 5px;
}

.welcome-logo {
  height: 35px;
  margin-left: 10px;
  vertical-align: middle;
}
