.demo {
  color: aqua;
}

.demo2 {
  color: aquamarine;
}

.header-component{
  background-color: red;
}

.header-component {
  width: 240px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
  padding: 20px;
}

.header-component::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.header-component::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

#date-time-container{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#date-time{
  font-family:Arial, Helvetica, sans-serif;
}

#date-time2{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: x-large;
  font-weight: 100;
}

.weather-component__card{
  background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 840px;
    height: auto;
}

.weather-component__card::before{
  content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
}

.weather-component__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.8),
      transparent,
      rgba(255, 255, 255, 0.3));
}

input.weather-component__search-bar{
  color: white;
  background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.weather-component__button, .weather-component__button-microphone{
  color: white;
  background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
    border-radius: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

#city{
  font-size: large;
  font-weight: 100;
  font-family: Arial, Helvetica, sans-serif;
}

#temp{
  background: none;
  font-weight: lighter;
  font-size: 3.8rem;
}

.weather-component__data-wrapper{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}



figure.weather-component__icn {
  font-size: x-small;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius:15px ;
  width: 150px;
  height: 40px;
  margin: auto;
}

.weather-component__icn img {
  width: 30px;
  height: 30px;
}

/* 2x2 grid layout */
.weather-component__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  /* space between items */
  margin-top: 1rem;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  /* frosted-glass feel */
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  height: 90px;
}

.grid-item img {
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Optional: make sunrise/sunset stacked neatly */
.grid-item:last-child span {
  display: block;
}

.grid-item .heading{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.grid-item .heading h6{
  font-size: x-small;
}

.grid-item-air-quality{
  display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    /* frosted-glass feel */
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    height: 90px;
}

.grid-item-air-quality .heading{
  width: 100%;
    display: flex;
    justify-content: space-between;
}

.grid-item-air-quality .heading h6{
  font-size: x-small;
  margin-bottom: 0px;
}

.grid-item-sun{
  
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      background: rgba(255, 255, 255, 0.1);
      /* frosted-glass feel */
      padding: 0rem;
      border-radius: 12px;
      font-size: 0.9rem;
      height: 90px;
}

.sunset, .sunrise{
  width: 137px;
  margin-bottom: 0px;
}

.grid-item-sun .sunrise .heading , .grid-item-sun .sunset .heading{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.grid-item-sun .heading h6{
  font-size: x-small;
  padding-bottom: 0%;
  margin-bottom: 0rem;
}


@media (max-width: 550px) {

  /* tablets and up */
  .card {
    width: 50%;
    /* half screen */
  }
}

/* Voice Command Enhancements */
.voice-command-btn {
    position: relative;
    transition: all 0.3s ease;
}

.voice-command-btn.listening {
    background: #ff4444 !important;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.voice-status {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-status.show {
    opacity: 1;
}

/* Mood Recommendations Section */
.mood-recommendations-card {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(0, 191, 255, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.mood-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mood-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mood-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mood-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.mood-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffeb3b;
}

.mood-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Time Machine Section */
.time-machine-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(30, 144, 255, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.time-machine-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#time-machine-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
}

#time-machine-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.historical-content {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-height: 150px;
}

.historical-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffa500;
}

/* Interactive Globe Section */
.globe-card {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(70, 130, 180, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.globe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.globe-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.globe {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        linear-gradient(45deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #1a1a2e 100%),
        radial-gradient(circle at 20% 30%, rgba(70, 130, 180, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 149, 237, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(25, 25, 112, 0.4) 0%, transparent 30%);
    animation: globeRotate 30s linear infinite;
    box-shadow: 
        inset -40px -40px 80px rgba(0, 0, 0, 0.6),
        inset 20px 20px 40px rgba(100, 149, 237, 0.1),
        0 0 60px rgba(70, 130, 180, 0.4),
        0 0 100px rgba(25, 25, 112, 0.2);
    overflow: hidden;
    border: 2px solid rgba(100, 149, 237, 0.3);
}

.globe-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        /* Latitude lines */
        repeating-linear-gradient(
            0deg,
            transparent 0%,
            transparent 8%,
            rgba(100, 149, 237, 0.15) 8.5%,
            rgba(100, 149, 237, 0.15) 9%,
            transparent 9.5%
        ),
        /* Longitude lines */
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 12%,
            rgba(100, 149, 237, 0.1) 12.5%,
            rgba(100, 149, 237, 0.1) 13%,
            transparent 13.5%
        ),
        /* Continental outlines */
        radial-gradient(ellipse at 25% 40%, rgba(34, 139, 34, 0.4) 0%, transparent 25%),
        radial-gradient(ellipse at 75% 35%, rgba(34, 139, 34, 0.3) 0%, transparent 20%),
        radial-gradient(ellipse at 50% 65%, rgba(34, 139, 34, 0.35) 0%, transparent 30%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 139, 34, 0.25) 0%, transparent 15%);
}

@keyframes globeRotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.globe-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.weather-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.weather-marker.sunny {
    background: radial-gradient(circle, #ffeb3b, #ff9800);
    animation: glow-sunny 2s ease-in-out infinite alternate;
}

.weather-marker.rainy {
    background: radial-gradient(circle, #2196f3, #1976d2);
    animation: glow-rainy 2s ease-in-out infinite alternate;
}

.weather-marker.cloudy {
    background: radial-gradient(circle, #9e9e9e, #607d8b);
    animation: glow-cloudy 2s ease-in-out infinite alternate;
}

@keyframes glow-sunny {
    from { box-shadow: 0 0 10px #ffeb3b; }
    to { box-shadow: 0 0 20px #ff9800, 0 0 30px #ff5722; }
}

@keyframes glow-rainy {
    from { box-shadow: 0 0 10px #2196f3; }
    to { box-shadow: 0 0 20px #1976d2, 0 0 30px #0d47a1; }
}

@keyframes glow-cloudy {
    from { box-shadow: 0 0 10px #9e9e9e; }
    to { box-shadow: 0 0 20px #607d8b, 0 0 30px #455a64; }
}

.globe-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.globe-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.globe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.globe-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    transform: translateY(-2px);
}

/* Loading animations */
.mood-loading, .historical-placeholder {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Map styles */
.map-box {
  position: relative;
  width: 100%;
  margin: 12px 0 16px 0;
}
#weather-map {
  width: 100%;
  height: 360px;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
}
#weather-map .leaflet-container,
.leaflet-container {
  background: #000 !important; /* match app tone while tiles load */
}
.map-header {
  position: absolute;
  top: -14px;
  left: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
/* Hide default Leaflet attribution */
.leaflet-control-attribution { display: none !important; }

/* Responsive Design for new features */
@media (max-width: 768px) {
    .mood-content {
        grid-template-columns: 1fr;
    }
    
    .globe-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .time-machine-controls {
        flex-direction: column;
    }
    
    .globe-controls {
        flex-direction: column;
        align-items: center;
    }
}