/* SwATips Modern Stylesheet */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

article {
  padding: 60px 40px;
  line-height: 1.7;
  color: #333;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #222;
  font-weight: 600;
}

article h1 {
  font-size: 2em;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  margin-top: 0;
}

article h2 {
  font-size: 1.6em;
}

article h3 {
  font-size: 1.3em;
}

article p {
  margin-bottom: 1em;
}

article a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

article a:hover {
  color: #764ba2;
  text-decoration: underline;
}

article code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

article pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1em 0;
  border-left: 4px solid #667eea;
}

article pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

article blockquote {
  border-left: 4px solid #667eea;
  padding-left: 15px;
  margin-left: 0;
  color: #666;
  font-style: italic;
}

article ul,
article ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

article li {
  margin-bottom: 0.5em;
}

article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

article th,
article td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

article th {
  background: #f5f5f5;
  font-weight: 600;
}

article tr:nth-child(even) {
  background: #f9f9f9;
}

article img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border-radius: 4px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95em;
}

.article-meta a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.article-meta a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.license-badge img {
  height: 21px;
  width: auto;
}

footer {
  background: #f8f9fa;
  padding: 30px 40px;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  article {
    padding: 30px 20px;
  }

  .article-meta {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  footer {
    padding: 20px;
  }
}
