/*
Theme Name: Roberto Levak Blog
Theme URI: http://robertolevak.com/blog/
Author: Antigravity
Author URI: http://robertolevak.com/
Description: Custom WordPress theme matching the psychological strategist branding of Roberto Levak's website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roberto-blog
*/

:root {
  --bg-dark: #070A11;
  --bg-card: #0B111E;
  --bg-red-card: rgba(217, 56, 58, 0.15); /* Tinted red for cards */
  --bg-red-solid: #8C2426; /* Darker red for service cards */
  --color-red: #D9383A;
  --color-red-hover: #E84A4C;
  --color-blue: #3B82F6;
  --text-white: #FFFFFF;
  --text-gray: #94A3B8;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width-content: 800px;
}

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-white);
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.2rem, 3.5vw, 3.5rem); line-height: 1.1; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

a {
  color: var(--color-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-red-hover);
}

.text-red { color: var(--color-red); }
.text-blue { color: var(--color-blue); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-color: var(--color-red);
  color: var(--text-white) !important;
}
.btn-primary:hover {
  background-color: var(--color-red-hover);
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  border-color: var(--color-red);
  background-color: rgba(217, 56, 58, 0.1);
}

/* Custom Header / Navbar */
.site-header {
  background-color: rgba(7, 10, 17, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px 0;
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
}

.site-logo a {
  color: var(--text-white);
}

.site-logo span {
  color: var(--color-red);
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--text-white);
}

/* Hero Section for Blog Pages */
.blog-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at top right, rgba(217, 56, 58, 0.08), transparent 45%);
}

.blog-hero h1 {
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-gray);
  font-size: 1.15rem;
  max-width: 600px;
}

/* Main Grid & Cards */
.blog-content-area {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--color-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  height: 200px;
  width: 100%;
  position: relative;
  background-color: #141b29;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-gray);
  display: flex;
  gap: 12px;
}

.blog-card-meta a {
  color: var(--color-blue);
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  margin-top: 0;
}

.blog-card-title a {
  color: var(--text-white);
}

.blog-card-title a:hover {
  color: var(--color-red);
}

.blog-card-excerpt {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination .page-numbers {
  padding: 10px 18px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-gray);
  font-weight: 700;
  transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--color-red);
  color: var(--text-white);
}

/* Single Post Layout */
.single-post-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0;
  margin-bottom: 20px;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-meta a {
  color: var(--text-white);
  font-weight: 500;
}

.post-meta a:hover {
  color: var(--color-red);
}

.post-featured-image {
  margin-bottom: 50px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Typography & Spacing */
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #CBD5E1; /* Slightly lighter gray for long-form reading */
}

.post-content p {
  margin-bottom: 1.8em;
}

.post-content blockquote {
  margin: 2.5em 0;
  padding: 24px 32px;
  border-left: 4px solid var(--color-red);
  background: linear-gradient(90deg, rgba(217, 56, 58, 0.08) 0%, transparent 100%);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--text-white);
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.8em;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content pre,
.post-content code {
  background-color: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
}

.post-content pre {
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.8em;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
}

.post-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-tags a {
  background-color: var(--bg-card);
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
}

.post-tags a:hover {
  background-color: var(--color-red);
  color: var(--text-white);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 20px;
}

.nav-box {
  flex: 1;
  background-color: var(--bg-card);
  padding: 20px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-box:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.nav-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.nav-box-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-box-title a {
  color: var(--text-white);
}

.nav-box-title a:hover {
  color: var(--color-red);
}

.nav-box.prev-box {
  border-left: 3px solid var(--color-blue);
}

.nav-box.next-box {
  border-right: 3px solid var(--color-red);
  text-align: right;
}

/* Comments Area */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment-body {
  background-color: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.comment-content {
  font-size: 0.95rem;
  color: #CBD5E1;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Comment Form styling matching the original site's contact form */
.comment-respond {
  margin-top: 40px;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comment-respond h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.comment-notes {
  color: var(--text-gray);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-gray);
  font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 16px;
  background-color: #070A11; /* Even darker input fields */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.comment-form-cookies-consent input {
  margin-top: 4px;
}

.comment-form .submit {
  align-self: flex-start;
  background-color: var(--color-red);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-form .submit:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
}

/* Site Footer */
.site-footer {
  background-color: #05070D;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.site-footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .post-navigation {
    flex-direction: column;
  }
  .comment-respond {
    padding: 24px;
  }
}
