/*
Theme Name: Affiliate By Alien
Theme URI: https://affiliatebyalien.com
Author: Mehedi Hasan
Description: High-converting Affiliate Marketing & AI Tool Review Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: affiliate-by-alien
*/

:root {
  --bg-color: #0b0f19;
  --card-bg: #111827;
  --card-border: #1f2937;
  --primary-color: #10b981;
  --accent-color: #8b5cf6;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid var(--card-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.site-logo span {
  color: var(--primary-color);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-navigation a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Post Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.post-card h2 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
}

.post-card h2 a:hover {
  color: var(--primary-color);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 14px;
}

.read-more-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 18px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
}

.read-more-btn:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 50px;
}