/* === Earth Title Header (h1 over starfield) === */
.page-title-slt--earth {
    background-color: transparent !important;
    background-image: url('https://brickcrisis.com/wp-content/uploads/2024/12/Network-Logo-Banner-Starfield-Only-1500x500-1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
}

.page-title-slt--earth .entry-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .page-title-slt--earth .entry-title {
        font-size: 32px;
    }
}

/* === Breadcrumb Styling === */
.earths-breadcrumb {
    font-size: 0.95rem;
    margin: 20px auto 40px auto;
    max-width: 900px;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.earths-breadcrumb a {
    color: var(--bcn-color-primary-hover);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.earths-breadcrumb a:hover {
    color: var(--bcn-color-primary);
    text-decoration: underline;
}

/* === Earth Image + Meta Block === */
.earth-meta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.earth-image-badge {
    position: relative;
    margin-bottom: 20px;
    pointer-events: auto;
}

.earth-image-badge img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--bcn-shadow-card);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earth-meta {
    max-width: 600px;
    width: 100%;
    background-color: var(--bcn-color-surface);
    color: #fff;
    border-radius: var(--bcn-radius-md);
    padding: 20px 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.earth-meta p {
    margin: 10px 0;
}

.earth-meta strong {
    color: var(--bcn-color-accent);
    font-weight: 600;
}

.earth-meta a.external-link {
    color: var(--bcn-color-primary-hover);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.earth-meta a.external-link:hover {
    color: var(--bcn-color-primary);
    border-color: var(--bcn-color-primary);
}

/* Multiverse text */
.dc-era {
    margin-top: 5px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 720px) {
    .earth-image-badge img {
        width: 120px;
        height: 120px;
    }

    .earth-meta {
        padding: 15px 20px;
        text-align: center;
    }
}

/* === Related Content (single-column, aligned with meta box) === */
.tagged-content {
    margin: 30px auto;
    max-width: 600px;
    padding: 0 16px;
    box-sizing: border-box;
}

.tagged-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
    color: #ffffff;
}

.tagged-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.tagged-content ul li {
    margin: 8px 0;
    text-align: left;
}

.tagged-content ul li a {
    display: inline-block;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--bcn-color-primary-hover);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.tagged-content ul li a:hover {
    color: var(--bcn-color-primary);
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* === Earth Grid === */
.earth-grid-wrapper {
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.earth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
}

.earth-grid-item {
    text-align: center;
}

.earth-grid-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--bcn-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earth-grid-link:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.earth-grid-title {
    margin-top: 10px;
    font-size: 18px;
    color: #298fd7;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.earth-grid-link:hover .earth-grid-title {
    color: var(--bcn-color-accent);
}

/* Multiverse era text on archive grid */
.earth-grid-era {
    font-size: 80%;
    margin-top: -5px;
    margin-bottom: 10px;
    text-align: center;
    color: inherit;
}

/* Force 3 columns on wide screens */
@media (min-width: 1025px) {
  .earth-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2 columns */
@media (min-width: 641px) and (max-width: 1024px) {
  .earth-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .earth-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide author container on single Earth pages */
body.single-earths .secondline-author-container {
    display: none !important;
}

/* Related posts inside earth-meta */
.earth-meta .earth-related-posts {
    text-align: center;
    margin-top: 20px;
}

.earth-meta .earth-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.earth-meta .earth-related-posts ul li {
    margin: 6px 0;
}

.earth-meta .earth-related-posts ul li a {
    color: var(--bcn-color-primary-hover);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.earth-meta .earth-related-posts ul li a:hover {
    color: var(--bcn-color-primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}