/* China Monitor - Mobile Portrait Mode Styles */
/* Loaded only in portrait orientation */

/* Hide mobile warning - we now support portrait mode */
.mobile-warning {
  display: none !important;
}

/* Remove blur effect from app - override main CSS */
#app,
.mobile-warning.show ~ #app {
  filter: none !important;
  pointer-events: auto !important;
}

/* Hide mobile warning overlay */
.mobile-warning.show {
  display: none !important;
}

/* Root layout - full width */
html, body {
  width: 100%;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  width: 100%;
}

/* Main content - full width, no padding */
main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Header - minimal: only clock + theme toggle */
header {
  height: auto;
  min-height: 50px;
  padding: 0.5rem 1rem;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

/* Hide brand/logo on mobile portrait */
.brand {
  display: none;
}

/* Center clock */
.center-clock {
  order: 1;
  font-size: 1.2rem;
}

/* Weather controls - only theme toggle */
.weather-controls {
  order: 2;
  display: flex;
  align-items: center;
}

/* Hide weather display on mobile portrait */
.weather-display {
  display: none;
}

/* Hide weather elements */
#weather-location,
#weather-icon,
#weather-temp,
.weather-display .fa-location-dot {
  display: none;
}

/* Main content - single column */
main {
  padding: 0.5rem;
  gap: 0.5rem;
}

/* Top section - stack vertically, full width */
.top-section {
  flex-direction: column;
  min-height: auto;
  width: 100%;
}

.left-panel,
.right-panel {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-height: 300px;
  border-radius: 0;
}

/* Left panel - video on top, news below */
.left-panel {
  padding: 0 !important;
  margin: 0 !important;
}

.left-panel-content {
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

/* Video - full width on top, override desktop 45% */
.video-live {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.video-live iframe {
  width: 100% !important;
  height: 100%;
  border: none;
}

/* News - below video, smaller font */
#live-news-scroll {
  flex: 1;
  max-height: none;
  font-size: 0.75rem;
}

.news-title {
  font-size: 0.8rem;
}

.news-meta {
  font-size: 0.65rem;
}

/* Weather - compact, fit in screen */
.weather-header {
  grid-template-columns: minmax(50px, 1.2fr) 30px 65px 65px;
  font-size: 0.6rem;
  padding: 0.35rem 0.4rem;
  gap: 0.3rem;
}

.weather-item {
  grid-template-columns: minmax(50px, 1.2fr) 30px 65px 65px;
  font-size: 0.6rem;
  padding: 5px 0;
  gap: 0.3rem;
}

/* Reduce font sizes for mobile */
.weather-header-item,
.weather-city-cell {
  font-size: 0.6rem;
}

.weather-icon-cell {
  font-size: 0.75rem;
}

.weather-temp-cell {
  font-size: 0.6rem;
}

/* Cross Rates - compact, full width */
.cross-rates-section {
  margin-bottom: 0.5rem;
  width: 100%;
}

.cross-rates-section h2 {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem 0.4rem 2.5rem;
}

#cross-rates-widget {
  height: 140px;  /* 刚好容纳 3 个汇率条目 */
}

/* Bottom section - Stock tickers, simplified header */
.bottom-section {
  min-height: auto;
  width: 100% !important;
}

.bottom-section h2 {
  font-size: 0 !important;  /* Hide original text */
  padding: 0.4rem 0.8rem !important;
  position: relative;
  white-space: nowrap;
  height: 40px;  /* Fixed height for absolute positioning */
}

/* Show icon */
.bottom-section h2 i {
  display: inline-block !important;
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem !important;
  visibility: visible !important;
}

/* Show STOCK text */
.bottom-section h2::after {
  content: 'STOCK';
  font-family: var(--digital-font);
  font-size: 0.85rem !important;
  color: #ffffff;
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Hide desktop BJT time on mobile */
#bjt-time {
  display: none !important;
}

/* Show mobile BJT time */
#bjt-time-mobile {
  font-size: 0.65rem !important;
  right: 0.5rem !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: var(--digital-font) !important;
  color: var(--clock-color) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
  width: auto !important;
}

/* Light theme: BJT time golden yellow (same as desktop) */
[data-theme='light'] #bjt-time-mobile {
  color: #fde047 !important;
}

.tickers-wrapper {
  gap: 0;
}

.ticker-row {
  height: 40px;
}

.ticker-label {
  width: 70px;
  font-size: 0.65rem;
  padding: 0 6px;
}

.ticker-container {
  font-size: 0.7rem;
}

/* Footer - simplified, full width */
#site-footer {
  padding: 0.5rem;
  width: 100%;
}

.footer-content {
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

/* Remove border radius on mobile */
.bottom-section {
  border-radius: 0;
}

.cross-rates-section {
  border-radius: 0;
}

.footer-section h4 {
  font-size: 0.85rem;
}

.footer-section p {
  font-size: 0.75rem;
}

.footer-bottom {
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.7rem;
}

.view-counter {
  font-size: 0.75rem;
}

/* Hide less important elements on small screens */
@media (max-height: 700px) {
  .footer-content {
    display: none;
  }
  
  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
}

/* Smooth transitions */
* {
  transition-property: none;
}
