/* Background and Layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0f172a, #1e293b 60%, #1e3a8a);
    color: #e0e0e0;
    line-height: 1.6;
}
  
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 18px;
}


/* Masthead – responsive */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping */
  gap: 14px;
  padding: 20px 26px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, #0099cc, #006699);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.masthead-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto; /* shrink/grow */
  min-width: 250px;
}

.masthead-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #b2ebf2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #004d66;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.masthead-icon:hover {
  transform: rotate(6deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.masthead-text .site-title {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #e0f7fa, #b2ebf2, #80deea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.masthead-text .site-tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.5px;
  color: #b2ebf2;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.masthead .date {
  font-size: 0.9rem;
  color: #004d66;
  background: #b2ebf2;
  padding: 5px 12px;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px 20px;
  }

  .masthead-left {
    width: 100%;
  }

  .masthead-text .site-title {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
  }

  .masthead-text .site-tagline {
    font-size: 0.85rem;
  }

  .masthead .date {
    margin-top: 10px;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .masthead-text .site-title {
    font-size: 1.5rem;
  }

  .masthead-text .site-tagline {
    font-size: 0.8rem;
  }

  .masthead-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .masthead .date {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}
  
/* Word of the Day */
.word-section {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .word-section:hover {
    transform: translateY(-2px);
  }
  
  .word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .word-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #38bdf8; /* sky blue highlight */
    text-shadow: 0 0 2px rgba(56, 139, 248, 0.8);
  }
  
  .toggle-symbol {
    font-size: 1.2rem;
    color: #94a3b8;
  }
  
  .toggle-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 5px;
  }
  
  .meaning {
    display: none;
    margin-top: 12px;
    font-style: italic;
    color: #e2e8f0;
  }
  
  .meaning-line {
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid #475569;
  }
  
  
/* Category Section */
.category-section {
    margin-bottom: 50px;
}
.category-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 0 10px;
    color: #f1f5f9;
}
.category-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #f59e0b, #10b981, #3b82f6, #ec4899);
    border-radius: 3px;
    margin-bottom: 20px;
}
  
/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* Max 2 per row */
}
    
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr; /* On mobile, stack vertically */
    }
}

.article-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.article-card:hover {
    transform: translateY(-5px);
}
.article-headline {
    margin: 0 0 10px;
}
.headline-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 1.2rem;
}
.headline-link:hover {
    text-decoration: underline;
}
.article-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}
  
/* Article Show Page */
.article-show {
    background: #1e293b;  /* Consistent with index cards */
    padding: 40px 50px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    margin: 40px auto;
    max-width: 950px; /* center and limit width */
}
  
.article-headline {
    font-size: 2.2rem;
    color: #00bcd4;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
}
  
.article-meta {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
  
.article-detailed-description {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.75;
    margin-bottom: 35px;
}
  
/* Sources block */
.article-sources {
    padding: 25px;
    background: #243447; /* slightly lighter than article bg */
    border-radius: 12px;
    border-left: 4px solid #00bcd4;
    margin-top: 30px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}
  
.article-sources h2 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin-bottom: 15px;
}
  
.source-link {
    display: block;
    color: #38bdf8;
    text-decoration: none;
    margin-bottom: 10px;
    word-break: break-word;
    transition: color 0.2s ease;
}
  
.source-link:hover {
    color: #26d9f5;
    text-decoration: underline;
}
  
/* Footer */
.footer {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

.footer-link, .content-link {
  color: #b2ebf2; /* light cyan */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-link:hover, .content-link:hover {
  color: #38bdf8; /* sky blue on hover */
}

/* Back button */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #00bcd4;
    color: #121212;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.back-button:hover {
    background: #26d9f5;
    transform: translateY(-2px);
}

