:root {
  --gold: #bfa56f;
  --navy: #000310;
  --dark: #0a0b0c;
  --text: #dae0e5;
  --bg-news: #0a0b0c;
  --card-bg: #16181a;
  --glass-bg: rgba(22, 24, 26, 0.9);
  --glass-border: rgba(191, 165, 111, 0.2);
  --hermes-orange: #ff7b00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-news);
  color: #e0e0e0;
  font-family: "Roboto", sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 20px 0;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(90deg, #050505 0%, #151515 100%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.brand-title {
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 2.2em;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(191, 165, 111, 0.35);
}

.portal-subtitle {
  margin-top: 5px;
  color: #666;
  font-size: 10px;
  letter-spacing: 3px;
}

.back-btn {
  position: absolute;
  top: 50%;
  left: 20px;
  padding: 5px 15px;
  transform: translateY(-50%);
  border: 1px solid #444;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.back-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.artemia-greek-line-wrapper {
  width: 100%;
  height: 40px;
  overflow: hidden;
  margin-bottom: 20px;
}

.artemia-greek-line {
  width: 200%;
  height: 40px;
  background-image: url("../images/greekShapeLine.png");
  background-position: left center;
  background-repeat: repeat-x;
  background-size: auto 34px;
  opacity: 0.4;
  animation: moveLine 20s linear infinite;
}

@keyframes moveLine {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.dashboard-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.widget-box {
  min-width: 300px;
  flex: 1;
  padding: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.widget-title {
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(191, 165, 111, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  text-align: center;
}

.clock-item h4 {
  margin-bottom: 2px;
  color: #aaa;
  font-size: 10px;
}

.clock-item span {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  font-size: 11px;
}

.geo-item strong {
  display: block;
  margin-bottom: 2px;
  color: #888;
}

.geo-item span {
  color: #ddd;
  word-break: break-word;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  margin: 20px 0;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #444;
  border-radius: 20px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--hermes-orange);
  background: rgba(255, 123, 0, 0.1);
  color: var(--hermes-orange);
}

.news-container {
  max-width: 1200px;
  width: 100%;
  min-height: 50vh;
  padding: 0 20px;
  column-count: 3;
  column-gap: 20px;
}

.feed-status {
  width: 100%;
  margin-top: 50px;
  color: #888;
  text-align: center;
  column-span: all;
}

.news-card {
  width: 100%;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 20px;
  break-inside: avoid;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: var(--card-bg);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--hermes-orange);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Moldura quadrada equivalente a uma clipping mask no Illustrator. */
.news-card > .news-image-link {
  width: 100%;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0c0e10;
}

.news-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(20%);
  transition: 0.5s;
}

.news-image.news-image--fallback {
  padding: 18%;
  background: #07090c;
  object-fit: contain;
}

.news-card:hover .news-image {
  filter: grayscale(0%);
}

.news-content {
  padding: 15px;
}

.category-tag {
  display: inline-block;
  padding: 3px 6px;
  margin-bottom: 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.tag-news { background: #ff7b00; color: #000; }
.tag-tech { background: #00f0ff; color: #000; }
.tag-oculto { background: #9b59b6; color: #fff; }
.tag-macom { background: #3498db; color: #fff; }
.tag-studio { background: #2ecc71; color: #fff; }

.news-title {
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.3;
}

.news-title a {
  color: #fff;
  text-decoration: none;
}

.news-title a:hover {
  color: var(--hermes-orange);
}

.news-excerpt {
  margin-bottom: 15px;
  color: #aaa;
  font-size: 0.9em;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #333;
  color: #666;
  font-size: 11px;
}

.news-date {
  opacity: 0.6;
}

.news-read-more {
  color: var(--hermes-orange);
  text-decoration: none;
}

.load-more-container {
  width: 100%;
  margin: 30px 0;
  text-align: center;
}

.load-more-btn {
  display: none;
  padding: 10px 25px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 2px;
  transition: 0.3s;
}

.load-more-btn:hover {
  background: var(--gold);
  box-shadow: 0 0 15px rgba(191, 165, 111, 0.4);
  color: #000;
}

.hidden-card {
  display: none !important;
}

.footer {
  width: 100%;
  padding: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(191, 165, 111, 0.2);
  background: #111;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 900px) {
  .news-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .news-container {
    column-count: 1;
  }

  .back-btn {
    position: relative;
    margin-bottom: 10px;
    transform: none;
  }
}

@media (prefers-color-scheme: light) {
  html body {
    background: #f4f5f7 !important;
    color: #1a1c1e !important;
  }

  html body header {
    border-bottom-color: #bfa56f !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  html body .brand-title {
    color: #bfa56f !important;
    text-shadow: none !important;
  }

  html body .back-btn {
    border-color: #ccc !important;
    background: #f4f5f7 !important;
    color: #1a1c1e !important;
  }

  html body .back-btn:hover {
    border-color: #bfa56f !important;
    color: #bfa56f !important;
  }

  html body .widget-box {
    border-color: rgba(191, 165, 111, 0.4) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  }

  html body .widget-title {
    border-bottom-color: #eee !important;
    color: #bfa56f !important;
  }

  html body .clock-item h4,
  html body .geo-item strong {
    color: #666 !important;
  }

  html body .clock-item span,
  html body .geo-item span {
    color: #1a1c1e !important;
  }

  html body .filter-btn {
    border-color: #ccc !important;
    color: #666 !important;
  }

  html body .filter-btn:hover,
  html body .filter-btn.active {
    border-color: #ff7b00 !important;
    background: rgba(255, 123, 0, 0.05) !important;
    color: #ff7b00 !important;
  }

  html body .news-card {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  html body .news-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  }

  html body .news-title a {
    color: #1a1c1e !important;
  }

  html body .news-excerpt {
    color: #444 !important;
  }

  html body .news-footer {
    border-top-color: #eee !important;
    color: #888 !important;
  }

  html body .footer {
    border-top-color: #ddd !important;
    background: #e9ebee !important;
    color: #888 !important;
  }

  html body .artemia-greek-line {
    opacity: 0.15 !important;
    filter: none !important;
  }
}
