/* Shared Theme Variables */
:root {
    --cyan-top: #00bcd4;
    --yellow-accent: #ffd54f;
    --green-bg: #e8f5e9;
    --green-dark: #2e7d32;
    --text-dark: #333;
    --white: #fff;
    --action-color: #673ab7; /* Deep purple to represent the 'Hub' aspect */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--green-bg);
    color: var(--text-dark);
    line-height: 1.7;
    padding-bottom: 300px; /* Space for the bottom meme */
    position: relative;
    min-height: 100vh;
}

/* Cyan Top Bar */
header {
    background-color: var(--cyan-top);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: var(--white);
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--green-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s;
}

header a:hover {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
}

/* Main Container */
.container {
    max-width: 850px; /* Slightly wider for the main hub page */
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--yellow-accent);
}

/* Cool Banner Setup */
.banner-wrapper {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(103,58,183,0.9), transparent); /* Purple hub overlay */
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.banner-overlay span {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Typography & SEO Headings */
h1 {
    color: var(--green-dark);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--cyan-top);
    font-size: 1.9rem;
    margin: 2.5rem 0 1rem 0;
    border-bottom: 2px solid var(--green-bg);
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

h3 {
    color: var(--green-dark);
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #444;
}

/* Journalistic Dropcap */
.dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    color: var(--action-color);
    font-weight: bold;
}

a.text-link {
    color: var(--cyan-top);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

a.text-link:hover {
    border-bottom: 2px solid var(--yellow-accent);
}

/* Buttons Container */
.shiba-btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.shiba-btn {
    font-family: inherit;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.shiba-btn-primary { background-color: var(--cyan-top); color: var(--white); }
.shiba-btn-primary:hover { background-color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.shiba-btn-secondary { background-color: var(--yellow-accent); color: var(--text-dark); }
.shiba-btn-secondary:hover { background-color: var(--action-color); color: var(--white); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

/* Play Button Animation */
.pulse-btn {
    animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-btn:hover {
    animation: none;
}

/* Related Posts Section (Hub Directory) */
.related-posts-section {
    background-color: #fafafa;
    border: 2px solid var(--green-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.related-posts-section h3 {
    margin-top: 0;
    color: var(--action-color);
    text-align: center;
}

.related-posts-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #555;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-btn {
    background-color: var(--white);
    border: 2px solid var(--cyan-top);
    color: var(--text-dark);
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.related-btn:hover {
    background-color: var(--cyan-top);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,188,212,0.2);
}

/* Bottom Meme Image */
.meme-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.meme-footer img {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 4px solid var(--yellow-accent);
}