/*
Theme Name: Red Modern Blog
Theme URI: https://example.com
Author: PBN Master
Author URI: https://example.com
Description: Modern red theme untuk blog & PBN dengan auto-sitemap integration
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-modern-blog
*/

:root {
  --red-dark: #C41E3A;
  --red-main: #DC143C;
  --red-light: #FF6B6B;
  --red-accent: #FF4757;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-main) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

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

.site-title a:hover {
  opacity: 0.9;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.main-navigation a:hover {
  color: var(--white);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-main) 50%, var(--red-light) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--red-main);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

/* ===== POSTS ===== */
.posts-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--red-main);
  border-bottom: 3px solid var(--red-main);
  padding-bottom: 1rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-card:hover {
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
  transform: translateY(-5px);
  border-color: var(--red-main);
}

.post-date {
  color: var(--red-main);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.post-title a {
  transition: color 0.3s ease;
}

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

.post-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.read-more {
  display: inline-block;
  color: var(--red-main);
  font-weight: 700;
  margin-top: 1rem;
  position: relative;
}

.read-more::after {
  content: ' →';
  transition: transform 0.3s ease;
}

.post-card:hover .read-more::after {
  transform: translateX(5px);
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
}

.widget h3 {
  font-size: 1.1rem;
  color: var(--red-main);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--red-main);
  padding-bottom: 0.5rem;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--gray-700);
  transition: color 0.3s ease;
}

.widget a:hover {
  color: var(--red-main);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-300);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.75rem;
}

.footer-widget a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: var(--red-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--red-light);
}

/* ===== SOCIAL MEDIA BAR ===== */
.social-media-bar {
  background: linear-gradient(90deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 2rem;
  border-top: 3px solid var(--red-main);
  border-bottom: 3px solid var(--red-main);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.social-container h4,
.internal-links h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.15);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: var(--white);
  transform: translateY(-3px);
}

.internal-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.internal-links li {
  margin: 0.5rem 0;
}

.internal-links a {
  color: var(--red-main);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.internal-links a:hover {
  text-decoration: underline;
  color: var(--red-dark);
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-nav a {
  color: var(--red-main);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.breadcrumb-nav span {
  color: var(--gray-800);
  font-weight: 600;
}

/* ===== RELATED POSTS ===== */
.related-posts {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  border: 1px solid var(--gray-200);
}

.related-posts h3 {
  margin: 0 0 2rem 0;
  font-size: 1.5rem;
  color: var(--gray-900);
  font-weight: 700;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  background: var(--white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.related-post-card:hover {
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
  transform: translateY(-3px);
}

.related-post-card .post-thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-card:hover img {
  transform: scale(1.05);
}

.related-post-card h4 {
  margin: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.related-post-card h4 a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s;
}

.related-post-card h4 a:hover {
  color: var(--red-main);
}

.related-post-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.related-post-card .read-more {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: var(--red-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.related-post-card .read-more:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ===== INTERNAL LINKING WIDGET ===== */
.internal-linking-widget {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--red-main);
  margin: 0 0 2rem 0;
}

.internal-linking-widget h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--red-main);
  font-weight: 600;
}

.site-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.site-card:hover {
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
  border-color: var(--red-main);
}

.site-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--red-main);
  font-weight: 600;
}

.site-card p {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.btn-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--red-main);
  color: var(--white);
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-link:hover {
  background: var(--red-dark);
  text-decoration: none;
}

/* ===== NETWORK FOOTER ===== */
.network-footer {
  background: rgba(0, 0, 0, 0.03);
  color: var(--gray-600);
  padding: 2rem 0;
  border-top: 2px solid var(--red-main);
}

.network-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.network-column h5 {
  color: var(--gray-900);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.network-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.network-column li {
  margin: 0.5rem 0;
}

.network-column a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.network-column a:hover {
  color: var(--red-main);
  text-decoration: underline;
  padding-left: 5px;
}

.network-info {
  text-align: center;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  max-width: 1200px;
  margin: 0 auto;
}

.network-badge {
  background: var(--red-main);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .social-media-bar {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .internal-links ul {
    text-align: center;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .network-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-posts {
    padding: 1rem;
  }

  .related-posts h3 {
    font-size: 1.2rem;
  }
}
