/*
Theme Name: SlangBlog Static Multilingual
Theme URI: https://slangblog.com
Author: Andy Ortiz
Description: A static multilingual theme for the Slang Blog (EN/ES/PT)
Version: 1.0
Template: none
*/
/* === HEADER === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;          /* use padding instead of max-width */
  width: 100%;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  height: 32px;
  display: block;
}


.blog-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

.header-right .cta-btn {
  background: #4B3EF9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-right .cta-btn:hover {
  background: #2f25b8;
}
.cta-btn {
  background: #4B3EF9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  font-family: inherit;        /* <-- matches surrounding text */
  font-size: 0.95rem;          /* consistent with nav text size */
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.cta-btn:hover {
  background: #3628c6;
}





/* === POSTS GRID === */
.site-main {
  padding: 80px 60px;
  background: #f9f9ff;
  min-height: 80vh;  /* keeps the main area tall even for short posts */
  box-sizing: border-box;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Remove underline from post card links */
.post-card a,
.post-card a:visited {
  text-decoration: none;
  color: inherit;
}

.post-card a:hover {
  text-decoration: none;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 20px 24px;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #141229;
  margin-bottom: 10px;
}

.post-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.post-date {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

/* Empty message */
.no-posts {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  margin-top: 60px;
}

.load-more-container {
  text-align: center;
  margin: 40px 0 60px;
}

.load-more-btn {
  background: #4B3EF9;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.load-more-btn:hover {
  background: #3628c6;
}





/* === SINGLE POST === */
.single-post .post-detail {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.single-post .post-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.single-post .post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.single-post .post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.post-content p {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #333;
}




/* Limit images, videos, and embeds inside posts */
.single-post .post-content img,
.single-post .post-content iframe,
.single-post .post-content video {
  max-width: 800px;   /* matches readable width */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
}










/* === FOOTER === */
.site-footer {
  background: #141229;
  color: #d3d2e3;
  padding: 60px 80px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  bottom: 0;
  left: 0;
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
  gap: 60px;
}

/* Left Side */
.footer-left {
  display: grid;
  grid-template-columns: auto auto; 
  align-items: flex-start;
  gap: 60px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-logo img {
  height: 32px;
  margin-bottom: 20px;
}

.footer-section h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #d3d2e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

/* Right Side */
.footer-right {
  max-width: 400px;
  text-align: right;
}

.footer-right a {
  color: #d3d2e3;
  text-decoration: none;
}

.footer-right a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.social-links img {
  height: 18px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.social-links img:hover {
  opacity: 1;
}

.footer-right p {
  font-size: 13px;
  margin: 4px 0;
  line-height: 1.4;
}


.footer-language ul {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-language li {
  list-style: none;
}

.footer-language a {
  color: #d3d2e3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-language a:hover {
  color: #fff;
}

/* Optional: highlight current language */
.footer-language .current-lang a {
  font-weight: 700;
  color: #fff;
}

/* Ensures footer stays at the bottom even if content is short */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif !important;
}

body * {
  font-family: inherit !important;
}

main {
  min-height: calc(100vh - 240px); /* adjust 240px ≈ header+footer combined */
  display: block;
}



/* === RESPONSIVE LAYOUTS === */

/* --- Large Tablets (≤1200px) --- */
@media (max-width: 1200px) {
  .header-inner {
    padding: 0 40px;
  }

  .posts-container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 30px;
  }

  .site-main {
    padding: 60px 40px;
  }

  .single-post .post-detail {
    padding: 0 30px;
  }
}

/* --- Tablets (≤900px) --- */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 30px;
    gap: 10px;
  }

  .header-right {
    align-self: flex-end;
  }

  .posts-container {
    grid-template-columns: 1fr 1fr; /* still 2 per row */
    gap: 24px;
  }

  .post-thumb img {
    height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-right {
    text-align: left;
  }
}

/* --- Phones (≤600px) --- */
@media (max-width: 600px) {
  .header-inner {
    padding: 12px 20px;
  }

  .header-left {
    gap: 10px;
  }

  .blog-title {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .posts-container {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 24px;
  }

  .site-main {
    padding: 40px 20px;
  }

  .single-post .post-detail {
    padding: 0 16px;
    margin: 40px auto;
  }

  .footer-inner {
    gap: 30px;
  }

  .footer-left {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-right {
    max-width: 100%;
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* === SINGLE POST HERO === */
.post-hero {
  background: #A99CF7; /* your purple color */
  padding: 80px 60px;
  color: #fff;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 55%;
  min-width: 300px;
}

.hero-text .post-date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero-text .post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-text .post-excerpt {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

.hero-image {
  flex: 1 1 40%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* === SINGLE POST HERO === */
.post-hero {
  background: #A99CF7; /* your purple */
  color: #fff;
  margin-top: 0;          /* remove gap below header */
  padding: 100px 0;       /* large vertical breathing room */
  width: 100vw;           /* stretch full width of viewport */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;     /* fix centering inside WordPress wrapper */
  margin-right: -50vw;
  box-sizing: border-box;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 55%;
  min-width: 300px;
}

.hero-text .post-date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero-text .post-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.hero-text .post-excerpt {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.95;
  color: #f0f0ff;
  max-width: 90%;
}

.hero-image {
  flex: 1 1 40%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === SINGLE POST BODY === */
.post-body {
  background: #fff;
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
}

.post-content {
  line-height: 1.8;
  color: #222;
  font-size: 1.05rem;
}

.post-content img,
.post-content iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.single-post .site-main {
  padding: 0px 60px 60px !important;
}

/* Prevent ANY image inside the post body from overflowing */
.single-post .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Fix for large embeds */
.single-post .post-content iframe,
.single-post .post-content video {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
}