/*
 * GTAModPlace WordPress Theme - Custom CSS
 * Matches original Blogger theme styling
 */

/* ===== GLOBAL ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #fbfbfb;
  font-family: 'Poppins', sans-serif;
  color: #3e3e3e;
}

a { color: #3e3e3e; transition: color 0.2s ease; }
a:hover { color: #48bd4c; text-decoration: none; }

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .wp-block-site-title a {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.site-header .wp-block-navigation a {
  color: #eeeeee !important;
  font-size: 14px;
  padding: 8px 12px;
  transition: color 0.2s;
}
.site-header .wp-block-navigation a:hover { color: #48bd4c !important; }

.site-header .wp-block-navigation .has-child > a::after { border-color: #eeeeee transparent transparent; }

.site-header .wp-block-navigation__submenu-container {
  background: #eeeeee !important;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.site-header .wp-block-navigation__submenu-container a { color: #3a3a3a !important; }
.site-header .wp-block-navigation__submenu-container a:hover { color: #48bd4c !important; background: rgba(72,189,76,0.08); }

/* Mobile hamburger */
.site-header .wp-block-navigation__responsive-container-open svg { fill: #ffffff; }

/* ===== POST CARDS ===== */
.post-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.post-card .wp-block-post-featured-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-card .wp-block-post-title a {
  color: #3e3e3e;
  text-decoration: none;
  font-weight: 700;
}
.post-card .wp-block-post-title a:hover { color: #48bd4c; }

/* Category label */
.post-card .wp-block-post-terms a {
  display: inline-block;
  background: #5856d5;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  text-decoration: none;
}

/* Download button */
.post-card .wp-block-read-more {
  display: inline-block;
  background: #48bd4c;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.post-card .wp-block-read-more:hover { background: #3da641; }

/* ===== SIDEBAR ===== */
.site-sidebar .sidebar-widget h3 {
  background: #48bd4c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0 0 15px 0;
}

.site-sidebar .wp-block-categories-list li,
.site-sidebar .wp-block-latest-posts li {
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.site-sidebar .wp-block-categories-list a,
.site-sidebar .wp-block-latest-posts a {
  color: #3e3e3e;
  text-decoration: none;
}
.site-sidebar .wp-block-categories-list a:hover,
.site-sidebar .wp-block-latest-posts a:hover { color: #48bd4c; }

.site-sidebar .wp-block-search__input {
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}
.site-sidebar .wp-block-search__button {
  background: #48bd4c;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  cursor: pointer;
}

/* ===== SINGLE POST ===== */
.post-article .wp-block-post-title {
  font-size: 22px;
  font-weight: 700;
  color: #3e3e3e;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-article .wp-block-post-content {
  font-size: 14px;
  line-height: 1.8;
  color: #3e3e3e;
}
.post-article .wp-block-post-content h2 { font-size: 20px; margin: 20px 0 10px; }
.post-article .wp-block-post-content h3 { font-size: 18px; margin: 18px 0 8px; }
.post-article .wp-block-post-content p { margin-bottom: 14px; }
.post-article .wp-block-post-content img { border-radius: 4px; margin: 12px 0; }
.post-article .wp-block-post-content a { color: #2791e7; }
.post-article .wp-block-post-content a:hover { color: #48bd4c; }

/* Download button in post */
.post-article .wp-block-buttons .wp-block-button__link {
  background: #48bd4c;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  padding: 10px 20px;
  transition: background 0.2s;
}
.post-article .wp-block-buttons .wp-block-button__link:hover { background: #3da641; }

/* Post navigation */
.post-navigation .wp-block-post-navigation-link a {
  color: #5c8efc;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.post-navigation .wp-block-post-navigation-link a:hover { color: #48bd4c; }

/* ===== PAGINATION ===== */
.wp-block-query-pagination {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ddd;
  color: #3e3e3e;
  text-decoration: none;
  transition: all 0.2s;
}
.wp-block-query-pagination a:hover { background: #48bd4c; color: #ffffff; border-color: #48bd4c; }
.wp-block-query-pagination .current { background: #48bd4c; color: #ffffff; border-color: #48bd4c; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid rgba(0,0,0,0.08); }
.site-footer .wp-block-heading { font-size: 15px; font-weight: 700; color: #404040; }
.site-footer .wp-block-navigation a { color: #6d6d6d; font-size: 13px; text-decoration: none; }
.site-footer .wp-block-navigation a:hover { color: #2791e7; }
.site-footer .wp-block-social-links .wp-social-link { background: #48bd4c !important; }

/* ===== ARCHIVE HEADER ===== */
.archive-header .wp-block-query-title { color: #ffffff; font-size: 20px; font-weight: 700; }
.archive-header .wp-block-term-description { color: rgba(255,255,255,0.85); font-size: 13px; }

/* ===== COMMENTS ===== */
.wp-block-comments { margin-top: 25px; }
.wp-block-comments-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; }
.wp-block-comment-author-name { font-weight: 600; font-size: 14px; }
.wp-block-comment-date { font-size: 12px; color: #6d6d6d; }
.wp-block-comment-content { font-size: 14px; margin: 8px 0; }
.wp-block-post-comments-form input,
.wp-block-post-comments-form textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  width: 100%;
}
.wp-block-post-comments-form .submit {
  background: #48bd4c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.wp-block-post-comments-form .submit:hover { background: #3da641; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .post-card .wp-block-post-featured-image img { height: 120px; }
  .site-header .wp-block-site-title a { font-size: 16px; }
  .wp-block-columns { flex-direction: column; }
}

@media (max-width: 480px) {
  .post-card .wp-block-columns { flex-direction: column; }
  .post-card .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
  .post-card .wp-block-post-featured-image img { height: 180px; }
}
