/* Article-specific CSS overrides
 * Extracted from inline styles to maintain design system consistency
 * Used for articles with specialized layouts and styling needs
 */

/* Google-inspired Color Palette */
:root {
  --blue: #4285F4;
  --red: #EA4335;
  --yellow: #FBBC05;
  --green: #34A853;
  --dark-blue: #1A73E8;
  --light-blue: #8AB4F8;
  --dark-gray: #202124;
  --medium-gray: #5F6368;
  --light-gray: #E8EAED;
  --white: #FFF;

  /* Theme Variables */
  --primary-bg: var(--white);
  --secondary-bg: var(--light-gray);
  --tertiary-bg: #F8F9FA;
  --primary-text: var(--dark-gray);
  --secondary-text: var(--medium-gray);
  --accent-color: var(--blue);
  --secondary-accent: var(--green);
  --highlight-color: var(--yellow);
  --cta-color: var(--red);
  --box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
  --transition-speed: 0.25s;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-bg: var(--dark-gray);
    --secondary-bg: #303134;
    --tertiary-bg: #404144;
    --primary-text: var(--white);
    --secondary-text: #BDC1C6;
    --accent-color: var(--light-blue);
  }
}

/* Reset & Base Styles for Articles */
.article-page *,
.article-page *::before,
.article-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.article-page html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.article-page body {
  font-family: Roboto, sans-serif;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.article-page h1,
.article-page h2,
.article-page h3,
.article-page h4,
.article-page h5,
.article-page h6 {
  font-family: 'Product Sans', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-page h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.article-page h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.article-page h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

.article-page p {
  margin-bottom: 1.5rem;
}

.article-page a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.article-page a:hover {
  color: var(--dark-blue);
}

.article-page ul,
.article-page ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-page li {
  margin-bottom: 0.8rem;
}

.article-page img {
  max-width: 100%;
  height: auto;
}

/* Container */
.article-page .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.article-page .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-bg);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

.article-page .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-page .logo {
  font-family: 'Product Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
}

.article-page .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 3px;
}

.article-page .logo-dot-1 {
  background-color: var(--blue);
}

.article-page .logo-dot-2 {
  background-color: var(--red);
}

.article-page .logo-dot-3 {
  background-color: var(--yellow);
}

.article-page .logo-dot-4 {
  background-color: var(--green);
}

.article-page .nav {
  display: flex;
  gap: 2rem;
}

.article-page .nav-link {
  color: var(--primary-text);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.article-page .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.article-page .nav-link:hover::after {
  width: 100%;
}

.article-page .nav-button {
  background-color: var(--cta-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgb(234 67 53 / 30%);
  transition: all var(--transition-speed);
}

.article-page .nav-button:hover {
  background-color: #D33426;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(234 67 53 / 30%);
}

/* Article Header */
.article-page .article-header {
  text-align: center;
  padding: 8rem 0 4rem;
  background-color: var(--primary-bg);
}

.article-page .article-title {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.article-page .article-meta {
  color: var(--secondary-text);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.article-page .article-meta strong {
  color: var(--primary-text);
  font-weight: 500;
}

.article-page .article-date {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  background-color: var(--tertiary-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

/* Article Content */
.article-page .article-content {
  padding: 2rem 0 4rem;
}

.article-page .article-section {
  margin-bottom: 3rem;
}

.article-page .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.article-page .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--blue), var(--red), var(--yellow), var(--green));
  border-radius: 2px;
}

.article-page .icon-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.article-page .icon-title .icon {
  font-size: 2rem;
  color: var(--red);
}

/* List with Icons */
.article-page .icon-list {
  list-style: none;
  margin-left: 0;
}

.article-page .icon-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.article-page .icon-list .icon {
  color: var(--red);
  font-weight: bold;
  flex-shrink: 0;
}

.article-page .highlight-text {
  font-weight: 500;
  color: var(--accent-color);
}

/* Highlight Box */
.article-page .highlight-box {
  background-color: var(--tertiary-bg);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

/* Quote */
.article-page .quote {
  font-style: italic;
  color: var(--secondary-text);
  text-align: center;
  font-size: 1.5rem;
  margin: 3rem auto;
  position: relative;
  padding: 0 2rem;
}

.article-page .quote::before,
.article-page .quote::after {
  content: '"';
  font-size: 3rem;
  position: absolute;
  color: var(--accent-color);
  opacity: 0.3;
}

.article-page .quote::before {
  top: -1.5rem;
  left: 0;
}

.article-page .quote::after {
  bottom: -2.5rem;
  right: 0;
}

/* Tags */
.article-page .article-tags {
  margin-top: 3rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Footer */
.article-page .footer {
  background-color: var(--tertiary-bg);
  text-align: center;
  padding: 3rem 0;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (width <= 768px) {
  .article-page h1 {
    font-size: 2.8rem;
  }

  .article-page h2 {
    font-size: 2rem;
  }

  .article-page .nav {
    display: none;
  }

  .article-page .article-header {
    padding: 7rem 0 3rem;
  }
}

@media (width <= 576px) {
  .article-page .container {
    padding: 0 1.5rem;
  }

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

  .article-page h2 {
    font-size: 1.8rem;
  }

  .article-page .quote {
    font-size: 1.2rem;
    padding: 0 1.5rem;
  }

  .article-page .quote::before {
    font-size: 2rem;
    top: -1rem;
  }

  .article-page .quote::after {
    font-size: 2rem;
    bottom: -1.5rem;
  }
}