/* =======================
   THEME VARIABLES
======================= */

/* Dark mode as default */
:root {
  --bg: #0f172a;          /* slate-900 */
  --fg: #e2e8f0;          /* slate-200 */
  --muted: #94a3b8;       /* slate-400 */
  --accent: #3b82f6;      /* blue-500 */
  --card-bg: #1e293b;     /* slate-800 */
  --border: #334155;      /* slate-700 */
}

body.light {
  --bg: #f8fafc;          /* slate-50 */
  --fg: #110000;          /* slate-900 */
  --muted: #64748b;       /* slate-500 */
  --accent: #2563eb;      /* blue-600 */
  --card-bg: #ffffff;
  --border: #cbd5e1;      /* slate-300 */
}

/* =======================
   BASE STYLES
======================= */

* {
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

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

/* =======================
   TYPOGRAPHY
======================= */

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* =======================
   HEADER & NAV & FOOTER
======================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
}

header nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
header nav a {
  color: var(--fg);
  font-weight: bold;
}
.avatar {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
}
#themeToggle {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #fff;
}
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  gap: 1rem;
  text-align: center;
}

footer {
  width: 100%;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin-bottom: 1rem;
}

footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  gap: 1.25rem;
}

footer .social-links li {
  display: flex;
  align-items: center;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

footer .social-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

footer .social-links i {
  font-size: 1.1rem;
  line-height: 1;
}




/* =======================
   LAYOUT / STRUCTURE
======================= */

.main {
  padding: 2rem 1rem;
}
.section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* =======================
   BUTTONS
======================= */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
.button:hover {
  background: #00a3c4;
}

.homepage-button {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
}
.homepage-button:hover {
  background-color: #0086c3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* =======================
   BLOG LIST: SINGLE COLUMN
======================= */

.blog-grid {
  display: block;
  margin-top: 2rem;
}
.blog-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, margin-left 0.2s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-3px);
  margin-left: -8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.blog-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.blog-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.read-more {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

/* =======================
   HOMEPAGE
======================= */
.homepage-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: var(--fg);
}
.homepage-intro h2 {
  text-align: center;
}


.homepage-content {
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.1rem;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto;
}
.link-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  text-align: center;
}
.link-card h2 {
  margin: 0 0 0.5rem;
}

/* =======================
   SINGLE POST / PROJECT
======================= */

.single-page {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.single-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.single-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.single-content {
  line-height: 1.8;
  font-size: 1.05rem;
}
.single-content h2,
.single-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--fg);
}
.single-content p {
  margin-bottom: 1.25rem;
}
.single-content a {
  color: var(--accent);
  text-decoration: underline;
}
.single-content pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}
.single-content code {
  color: #0ff;
  font-family: monospace;
}

/* Portfolio-related CSS removed */
