:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --accent-color: #17a2b8;
  --light-gray-color: #f8f9fa;
  --container-bg-color: #ffffff;
  --header-bg-color: #ffffff;
  --footer-bg-color: #343a40;
  --footer-text-color: #ffffff;
  --link-color: #007bff;
  --border-color: #dee2e6;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --primary-color: #4dabf7;
  --secondary-color: #adb5bd;
  --accent-color: #3bc9db;
  --light-gray-color: #1e1e1e;
  --container-bg-color: #1e1e1e;
  --header-bg-color: #1e1e1e;
  --footer-bg-color: #1c1c1c;
  --footer-text-color: #e0e0e0;
  --link-color: #4dabf7;
  --border-color: #333333;
}

/* Base and Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--text-color);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Header and Navigation */
.site-header {
  background-color: var(--header-bg-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}
.logo:hover {
  text-decoration: none;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav a {
    font-weight: 500;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

#theme-toggle-btn, #lang-toggle-btn {
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Main Content */
#main-content {
  padding: 40px 0;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding: 2rem 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.footer-nav ul li {
  margin-left: 20px;
}

.footer-nav a {
    color: var(--footer-text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav {
    margin-top: 1rem;
  }
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    margin-top: 1rem;
  }
}

/* Homepage specific styles */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--light-gray-color);
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
  background-color: #0056b3; /* Darken primary color */
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--container-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.post-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
}

/* Lotto Analyzer Page Styles */
.text-center {
  text-align: center;
}

#lotto-generator {
  margin-top: 40px;
  padding: 30px;
  background-color: var(--light-gray-color);
  border-radius: 8px;
}

#lotto-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  min-height: 60px;
}

.lotto-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  transition: transform 0.3s;
  animation: appear 0.5s ease-out forwards;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#generate-btn {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

#generate-btn:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

#lotto-analysis {
  margin-top: 30px;
  padding: 20px;
  border: 1px dashed var(--border-color);
  border-radius: 5px;
  text-align: left;
}

#lotto-analysis h3 {
  margin-top: 0;
  text-align: center;
}

#lotto-analysis ul {
  padding-left: 20px;
}

/* Page content general styles */
.page-content {
  background-color: var(--container-bg-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.page-content h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.page-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.page-content p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.page-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1.2rem;
}

.page-content ul li {
  margin-bottom: 0.5rem;
}

.page-content .post-meta {
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

/* Blog list specific styles */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-summary {
  background-color: var(--container-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-summary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.post-summary h2 {
  margin-top: 0;
  font-size: 1.8rem;
  border-bottom: none;
  padding-bottom: 0;
}

.post-summary h2 a {
  color: var(--text-color);
}

.post-summary h2 a:hover {
  color: var(--primary-color);
}

.post-summary .post-meta {
  text-align: left;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}
.ad-container {
    margin: 40px auto;
    text-align: center;
}