/*
Theme Name: Academic Lobster
Theme URI: https://academiclobster.com
Description: Custom theme for Academic Lobster - Building an AI Claw for Social Science
Author: Siliconometrics Lab
Template: twentytwentyfive
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* OpenClaw Red */
  --red: #e81b25;
  --red-dark: #c4151e;
  --red-light: #f4a3a7;
  --red-bg: #fdeced;
  /* ELTE TK Department Colors */
  --jti: #71728D;
  --pti: #5BA0A5;
  --ki: #708B5B;
  --szi: #1B5B6B;
  --tk: #C89B00;
  /* Backgrounds & Neutrals */
  --bg: #E4E4ED;
  --bg-light: #EEEEF4;
  --bg-card: #ffffff;
  --text: #2a2a2f;
  --text-muted: #5e5e6e;
  --text-light: #8a8a9a;
  --border: #c8c8d6;
}

/* ========== BASE ========== */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
}

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

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

.container,
.al-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER / NAV ========== */
.al-site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.al-site-header .al-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.al-site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.al-site-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.al-site-title span { color: var(--red); }

.al-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.al-nav a {
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
}
.al-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.al-nav a:hover { color: var(--red); }
.al-nav a:hover::after { width: 100%; }

/* ========== BUTTONS ========== */
.al-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}
.al-btn-primary {
  background: var(--red);
  color: #fff;
}
.al-btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}
.al-btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.al-btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* ========== SECTION DEFAULTS ========== */
.al-section { padding: 80px 0; }
.al-section-alt { background: var(--bg-light); }
.al-section-white { background: var(--bg-card); }
.al-section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.al-section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
}

/* ========== HERO ========== */
.al-hero {
  padding: 80px 0 100px;
  background: linear-gradient(170deg, var(--bg-card) 0%, var(--bg-light) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.al-hero .al-container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.al-hero-text { flex: 1; }
.al-hero-text h1,
.al-hero-text .wp-block-heading {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.al-hero-text .al-highlight {
  color: var(--red);
  position: relative;
}
.al-hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.8;
}
.al-hero-art {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.al-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== OPENCLAW SECTION ========== */
.al-openclaw-section { background: var(--bg-card); padding: 80px 0; }
.al-openclaw-section .al-container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.al-openclaw-icon { flex: 0 0 120px; text-align: center; }
.al-openclaw-content { flex: 1; }
.al-openclaw-content h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.al-openclaw-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.al-github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--red-bg);
  color: var(--red);
  transition: all 0.2s;
}
.al-github-link:hover {
  background: var(--red);
  color: #fff;
}

/* ========== MISSION ========== */
.al-mission-section {
  background: var(--bg-light);
  padding: 80px 0;
}
.al-mission-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 48px 56px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
  border-left: 5px solid var(--red);
}
.al-mission-card blockquote,
.al-mission-card .wp-block-quote {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
}
.al-mission-card .al-attribution {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
  font-style: normal;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== CATEGORIES ========== */
.al-categories-section { background: var(--bg-card); padding: 80px 0; }
.al-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}
.al-pill {
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: default;
}
.al-pill-prep { background: #f0e6d6; color: #8a6e3e; border-color: var(--tk); }
.al-pill-build { background: #dce8d4; color: #4a6038; border-color: var(--ki); }
.al-pill-ai { background: #d4ebed; color: #1a5060; border-color: var(--pti); }
.al-pill-tweaks { background: #d8d9e8; color: #50516a; border-color: var(--jti); }
.al-pill-usecases { background: #d0e0e4; color: #164a58; border-color: var(--szi); }
.al-pill-other { background: var(--red-bg); color: var(--red-dark); border-color: var(--red); }

/* ========== POSTS ========== */
.al-posts-section { background: var(--bg-light); padding: 80px 0; }
.al-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.al-post-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.al-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.al-post-card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.al-thumb-1 { background: linear-gradient(135deg, var(--bg), #d0d0e0); }
.al-thumb-2 { background: linear-gradient(135deg, #dce8d4, #c5d8ba); }
.al-thumb-3 { background: linear-gradient(135deg, #d4ebed, #b8dadd); }
.al-post-card-body { padding: 24px; }
.al-post-card-cat {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
}
.al-cat-prep { background: #f0e6d6; color: #8a6e3e; }
.al-cat-build { background: #dce8d4; color: #4a6038; }
.al-cat-ai { background: #d4ebed; color: #1a5060; }
.al-post-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.al-post-card h3 a { color: var(--text); }
.al-post-card h3 a:hover { color: var(--red); }
.al-post-card .al-post-meta {
  font-size: 13px;
  color: var(--text-light);
}
.al-post-card .al-post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
}

/* ========== LOBSTER DIVIDER ========== */
.al-lobster-divider {
  text-align: center;
  padding: 8px 0;
}

/* ========== FOOTER ========== */
.al-footer-section {
  background: #2a2a2f;
  color: #ccc;
  padding: 64px 0 0;
}
.al-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.al-footer-section h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.al-footer-section p,
.al-footer-section a {
  font-size: 14px;
  line-height: 1.8;
}
.al-footer-section a { color: var(--red-light); }
.al-footer-section a:hover { color: #fff; }
.al-footer-links { list-style: none; padding: 0; margin: 0; }
.al-footer-links li { margin-bottom: 8px; }
.al-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.al-footer-contact-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.al-footer-contact-btn:hover { background: var(--red-dark); color: #fff; }

/* ELTE TK Color Strip */
.al-elte-strip {
  display: flex;
  height: 6px;
  margin-top: 48px;
}
.al-elte-strip div { flex: 1; }

.al-footer-bottom {
  border-top: 1px solid #3a3a40;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* ========== WP BLOCK OVERRIDES ========== */
.wp-site-blocks {
  background: var(--bg);
}

.wp-block-post-title a {
  color: var(--text);
  text-decoration: none;
}
.wp-block-post-title a:hover {
  color: var(--red);
}

.wp-block-query .wp-block-post {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px;
}

.wp-block-navigation a {
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wp-block-navigation a:hover {
  color: var(--red);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .al-hero .al-container { flex-direction: column; text-align: center; }
  .al-hero-art { flex: 0 0 auto; }
  .al-hero-text p { margin-left: auto; margin-right: auto; }
  .al-hero-buttons { justify-content: center; }
  .al-openclaw-section .al-container { flex-direction: column; text-align: center; }
  .al-posts-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .al-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .al-hero-text h1,
  .al-hero-text .wp-block-heading { font-size: 32px; }
  .al-section { padding: 56px 0; }
  .al-mission-card { padding: 32px 24px; }
}
