/* ---------- Global Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #202124;
  line-height: 1.5;
}

/* ---------- Header ---------- */
header {
  border-bottom: 1px solid #dadce0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ---------- Top Bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* ---------- Search Box ---------- */
.search-box {
  flex: 1;
  max-width: 600px;
  margin-left: 20px;
}

.search-box input {
  width: 100%;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #dadce0;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 3px rgba(26, 115, 232, 0.5);
}

/* ---------- Navigation Menu ---------- */
nav.menu {
  background: #fff;
  overflow-x: auto;
  border-top: 1px solid #dadce0;
}

nav.menu ul {
  display: flex;
  list-style: none;
  white-space: nowrap;
  padding: 0 20px;
}

nav.menu ul li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #5f6368;
  transition: color 0.2s, border-bottom 0.2s;
}

nav.menu ul li.active,
nav.menu ul li:hover {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
}

/* ---------- Main Content ---------- */
main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* ---------- Top Stories / Briefing ---------- */
.top-stories {
  margin-bottom: 30px;
}

.top-stories h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #202124;
}

.Time {
  margin-bottom: 20px;
}

.Time p {
  font-size: 14px;
  color: #5f6368;
}

/* ---------- Weather Widget ---------- */
.weather-app {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.weather-app h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #202124;
}

.weather-app input {
  padding: 8px;
  border: 1px solid #dadce0;
  border-radius: 5px;
  outline: none;
  margin-right: 8px;
}

.weather-app button {
  padding: 8px 12px;
  background: #1a73e8;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.weather-app button:hover {
  background: #1558b0;
}

#weatherResult {
  margin-top: 10px;
  font-size: 14px;
  color: #202124;
}

/* ---------- RSS Feed ---------- */
.rss-feed {
  margin-top: 30px;
}

.rss-feed h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #202124;
}

#rss-container {
  display: grid;
  gap: 15px;
}

/* Example card styling for RSS items (if JS injects them) */
#rss-container .rss-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#rss-container .rss-item:hover {
  transform: translateY(-2px);
}
