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

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --accent: #c0392b;
  --accent-dark: #96281b;
  --border: #e0e0e0;
  --tag-bg: #f0f0f0;
  --header-bg: #1a1a1a;
  --max-width: 1200px;
}

body.dark-mode {
  --bg: #121212;
  --bg-card: #1e1e1e;
  --text: #e0e0e0;
  --text-secondary: #aaa;
  --border: #333;
  --tag-bg: #2a2a2a;
  --header-bg: #0a0a0a;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

header {
  background: var(--header-bg);
  color: white;
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
  cursor: pointer;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: #ccc;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: white;
  border-bottom-color: var(--accent);
}

.dark-mode-toggle {
  background: none;
  border: 1px solid #555;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 15px;
}

.dark-mode-toggle:hover {
  border-color: white;
  color: white;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.trust-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  transition: background 0.3s;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.trust-inner span {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: bold;
}

.ticker {
  background: var(--accent);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}

.live-ticker-bar {
  border-bottom: 2px solid var(--border);
  background: var(--bg-card);
  min-height: 46px;
  overflow: hidden;
}

.live-ticker-bar .tradingview-widget-container {
  width: 100%;
}

.ticker-content {
  display: inline-block;
  animation: scroll 40s linear infinite;
  padding-left: 100%;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-content span {
  margin-right: 60px;
  font-weight: bold;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 5px;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  display: inline-block;
}

.page-subtitle {
  color: var(--text-secondary);
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 30px;
  margin-top: 5px;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.featured-article:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.featured-image {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
  font-weight: bold;
}

.featured-hero-wrapper {
  position: relative;
  overflow: hidden;
}

.featured-hero-wrapper .featured-image {
  display: block;
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(192,57,43,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.4s;
}

.featured-overlay:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(192,57,43,0.7) 100%);
}

.featured-brand {
  text-align: center;
  color: white;
}

.featured-brand-icon {
  width: 80px;
  height: 80px;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', serif;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 15px;
  letter-spacing: 2px;
  background: rgba(192,57,43,0.6);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s;
}

.featured-overlay:hover .featured-brand-icon {
  transform: scale(1.1);
  background: rgba(192,57,43,0.9);
}

.featured-brand-text {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.featured-brand-sub {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.featured-overlay:hover .featured-brand-sub {
  opacity: 1;
}

.featured-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content .tag {
  font-size: 0.7rem;
}

.featured-content h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 10px 0;
}

.featured-content .excerpt {
  color: var(--text-secondary);
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.featured-content .meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #888;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--text);
  padding-bottom: 8px;
}

.section-header h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.article-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.article-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card-image-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #2c2c2c, #444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.article-card-body {
  padding: 15px 15px 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card-body .excerpt {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body .meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #999;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: bold;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}

.widget-section {
  padding: 15px;
  overflow: hidden;
}

.widget-section .tradingview-widget-container {
  width: 100%;
  min-height: 400px;
}

.sidebar-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: color 0.2s;
}

.category-list li:hover {
  color: var(--accent);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-count {
  background: var(--tag-bg);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #888;
}

.about-sidebar p {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-page {
  max-width: 800px;
  margin: 0 auto;
}

.article-page .back-link {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: inline-block;
}

.article-page h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.article-page .article-meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-page .article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-page .article-hero {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 25px;
}

.article-page .article-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-page .article-body p {
  margin-bottom: 18px;
}

.article-page .article-body ul, .article-page .article-body ol {
  margin: 15px 0 15px 30px;
}

.article-page .article-body li {
  margin-bottom: 8px;
}

.article-page .article-body b, .article-page .article-body strong {
  font-weight: 700;
}

.article-page .article-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: 15px 0;
}

.article-page .article-body iframe {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 4px;
}

.reading-time {
  color: var(--accent);
  font-weight: bold;
}

.author-profile {
  display: flex;
  gap: 20px;
  padding: 25px;
  margin: 40px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 4px solid var(--accent);
  transition: background 0.3s;
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.author-links {
  display: flex;
  gap: 15px;
}

.author-links a {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.related-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.related-section h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.related-img-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #2c2c2c, #444);
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.related-card h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 5px;
}

.related-card .meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #999;
}

#app {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#app.page-exit {
  opacity: 0;
  transform: translateY(8px);
}

#app.page-enter {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.dark-mode .featured-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(192,57,43,0.6) 100%);
}

body.dark-mode .article-card-image-placeholder,
body.dark-mode .related-img-placeholder {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .category-count {
  background: #333;
  color: #aaa;
}

@media (max-width: 700px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-links {
    justify-content: center;
  }
  .trust-inner {
    gap: 15px;
  }
  .trust-inner span {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

.contact-intro {
  margin-bottom: 30px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.2s;
}

.contact-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.contact-card h3 {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-card p {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

.contact-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: var(--accent-dark);
  color: white;
}

.contact-what {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
}

.contact-what h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  display: inline-block;
}

.submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 35px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 5px;
}

.submit-btn {
  background: var(--accent);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background: var(--accent-dark);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.form-note {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

.submit-success {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 35px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.submit-success h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.submit-success p {
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-also {
  margin-top: 10px;
}

.contact-also h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  display: inline-block;
}

.contact-also .contact-cards {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .contact-also .contact-cards {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row .form-group {
    margin-bottom: 20px;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

footer {
  background: var(--header-bg);
  color: #aaa;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: block;
}

.footer-brand p {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #888;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #333;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #666;
}

.loading {
  text-align: center;
  padding: 60px;
  font-family: 'Arial', sans-serif;
  color: #999;
}

.no-results {
  text-align: center;
  padding: 60px;
  font-family: 'Arial', sans-serif;
  color: #999;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image, .featured-image-placeholder {
    min-height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 15px 20px;
    gap: 12px;
    border-bottom: 2px solid var(--accent);
  }

  nav.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card-image, .article-card-image-placeholder {
    height: 180px;
  }

  .article-card-body {
    padding: 15px;
  }

  .live-ticker-bar {
    display: none;
  }

  .article-page h1 {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 1.4rem;
  }
}
