/* =========================================
   MSH Modern Single Blog Post
   Momentum Sports Hub
   ========================================= */

:root {
    --msh-primary: #1a3c6e;
    --msh-accent: #0060b1;
    --msh-accent-hover: #1d4ed8;
    --msh-dark: #0f172a;
    --msh-text: #334155;
    --msh-text-light: #64748b;
    --msh-border: #e2e8f0;
    --msh-bg: #f8fafc;
    --msh-white: #ffffff;
    --msh-radius: 12px;
    --msh-content-width: 800px;
}

/* ---- HERO BANNER ---- */
.msh-hero-banner {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.msh-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}
.msh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.6) 40%,
        rgba(15, 23, 42, 0.2) 100%
    );
    z-index: 2;
}
.msh-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--msh-content-width);
    margin: 0 auto;
    padding: 60px 20px 50px;
}
.msh-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.msh-cat-badge {
    display: inline-block;
    padding: 5px 16px;
    background: var(--msh-accent);
    color: var(--msh-white) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.msh-cat-badge:hover {
    background: var(--msh-accent-hover);
    color: var(--msh-white) !important;
}
.msh-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--msh-white) !important;
    margin: 0 0 20px 0;
    padding: 0;
    letter-spacing: -0.5px;
}
.msh-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.msh-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.msh-hero-meta-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}
.msh-hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ---- ARTICLE WRAPPER ---- */
.msh-article-wrapper {
    background: var(--msh-bg);
    padding: 60px 20px 80px;
}
.msh-article-container {
    max-width: var(--msh-content-width);
    margin: 0 auto;
}

/* ---- POST CONTENT ---- */
.msh-post-content {
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    line-height: 1.8;
    font-size: 17px;
    color: var(--msh-text);
}
.msh-post-content > *:first-child {
    margin-top: 0;
}
.msh-post-content > *:last-child {
    margin-bottom: 0;
}
.msh-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--msh-dark);
    margin: 40px 0 16px;
    line-height: 1.3;
}
.msh-post-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--msh-dark);
    margin: 32px 0 12px;
    line-height: 1.3;
}
.msh-post-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--msh-dark);
    margin: 28px 0 12px;
}
.msh-post-content p {
    margin: 0 0 20px;
    color: var(--msh-text);
}
.msh-post-content a {
    color: var(--msh-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.msh-post-content a:hover {
    color: var(--msh-accent-hover);
}
.msh-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}
.msh-post-content blockquote {
    border-left: 4px solid var(--msh-accent);
    margin: 32px 0;
    padding: 20px 24px;
    background: var(--msh-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--msh-text);
}
.msh-post-content blockquote p {
    margin: 0;
}
.msh-post-content ul,
.msh-post-content ol {
    margin: 0 0 20px 20px;
    padding: 0;
}
.msh-post-content li {
    margin-bottom: 8px;
}
.msh-post-content pre {
    background: var(--msh-dark);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 24px 0;
}
.msh-post-content code {
    background: var(--msh-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.msh-post-content pre code {
    background: none;
    padding: 0;
}
.msh-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.msh-post-content th,
.msh-post-content td {
    padding: 12px 16px;
    border: 1px solid var(--msh-border);
    text-align: left;
}
.msh-post-content th {
    background: var(--msh-bg);
    font-weight: 700;
    color: var(--msh-dark);
}
.msh-post-content figure {
    margin: 24px 0;
}
.msh-post-content figcaption {
    font-size: 13px;
    color: var(--msh-text-light);
    text-align: center;
    margin-top: 8px;
}

/* ---- TAGS & SHARE ---- */
.msh-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    padding: 24px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}
.msh-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.msh-tags-label,
.msh-share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--msh-dark);
}
.msh-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--msh-bg);
    color: var(--msh-text) !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid var(--msh-border);
    transition: all 0.2s ease;
}
.msh-tag:hover {
    background: var(--msh-accent);
    color: var(--msh-white) !important;
    border-color: var(--msh-accent);
}
.msh-share {
    display: flex;
    align-items: center;
    gap: 8px;
}
.msh-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--msh-white) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.msh-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--msh-white) !important;
}
.msh-share-fb { background: #1877f2; }
.msh-share-tw { background: #0f172a; }
.msh-share-li { background: #0077b5; }
.msh-share-wa { background: #25d366; }

/* ---- AUTHOR BOX ---- */
.msh-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    border-left: 4px solid var(--msh-accent);
}
.msh-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.msh-author-info {
    flex: 1;
}
.msh-author-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--msh-accent);
}
.msh-author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--msh-dark);
    margin: 4px 0 8px;
}
.msh-author-bio {
    font-size: 14px;
    color: var(--msh-text-light);
    line-height: 1.6;
    margin: 0 0 12px;
}
.msh-author-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--msh-accent) !important;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}
.msh-author-link:hover {
    gap: 8px;
    color: var(--msh-accent-hover) !important;
}

/* ---- POST NAVIGATION ---- */
.msh-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}
.msh-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--msh-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.msh-nav-item:hover {
    border-color: var(--msh-accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.msh-nav-placeholder {
    background: transparent;
    box-shadow: none;
    border: none;
}
.msh-nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--msh-accent);
}
.msh-nav-next .msh-nav-label {
    justify-content: flex-end;
}
.msh-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--msh-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msh-nav-next {
    text-align: right;
}

/* ---- RELATED POSTS ---- */
.msh-related-posts {
    margin-bottom: 48px;
}
.msh-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--msh-dark);
    margin: 0 0 24px;
    padding: 0;
}
.msh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.msh-related-card {
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--msh-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.msh-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.msh-related-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.msh-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.msh-related-card:hover .msh-related-img img {
    transform: scale(1.05);
}
.msh-related-body {
    padding: 20px;
}
.msh-related-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--msh-accent);
    margin-bottom: 8px;
}
.msh-related-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--msh-dark);
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msh-related-date {
    font-size: 13px;
    color: var(--msh-text-light);
}

/* ---- COMMENTS SECTION ---- */
.msh-comments-section {
    background: var(--msh-white);
    border-radius: var(--msh-radius);
    padding: 40px 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.msh-comments-section .comments-title,
.msh-comments-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--msh-dark);
    margin: 0 0 24px;
    padding: 0;
}
.msh-comments-section .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.msh-comments-section .comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--msh-border);
}
.msh-comments-section .comment:last-child {
    border-bottom: none;
}
.msh-comments-section .comment-author img {
    border-radius: 50%;
    margin-right: 12px;
}
.msh-comments-section .comment-author .fn {
    font-weight: 700;
    color: var(--msh-dark);
}
.msh-comments-section .comment-metadata {
    font-size: 13px;
    color: var(--msh-text-light);
    margin-bottom: 8px;
}
.msh-comments-section .comment-metadata a {
    color: var(--msh-text-light);
    text-decoration: none;
}
.msh-comments-section .comment-content {
    color: var(--msh-text);
    line-height: 1.7;
}
.msh-comments-section .reply a {
    font-size: 13px;
    font-weight: 600;
    color: var(--msh-accent);
    text-decoration: none;
}

/* Comment Form */
.msh-comments-section .comment-respond {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--msh-border);
}
.msh-comments-section .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--msh-dark);
    margin: 0 0 20px;
}
.msh-comments-section .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--msh-dark);
    margin-bottom: 6px;
}
.msh-comments-section .comment-form input[type="text"],
.msh-comments-section .comment-form input[type="email"],
.msh-comments-section .comment-form input[type="url"],
.msh-comments-section .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--msh-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--msh-text);
    background: var(--msh-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.msh-comments-section .comment-form input:focus,
.msh-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: var(--msh-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.msh-comments-section .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}
.msh-comments-section .comment-form .form-submit input[type="submit"],
.msh-comments-section .comment-form .submit {
    display: inline-block;
    padding: 14px 32px;
    background: var(--msh-accent);
    color: var(--msh-white);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.msh-comments-section .comment-form .form-submit input[type="submit"]:hover,
.msh-comments-section .comment-form .submit:hover {
    background: var(--msh-accent-hover);
    transform: translateY(-1px);
}

/* ---- RESPONSIVE ---- */
@media only screen and (max-width: 1024px) {
    .msh-hero-banner {
        min-height: 440px;
    }
    .msh-hero-title {
        font-size: 34px;
    }
    .msh-post-content {
        padding: 36px;
    }
    .msh-comments-section {
        padding: 32px 36px;
    }
}

@media only screen and (max-width: 768px) {
    .msh-hero-banner {
        min-height: 380px;
    }
    .msh-hero-content {
        padding: 40px 16px 36px;
    }
    .msh-hero-title {
        font-size: 26px;
    }
    .msh-hero-meta {
        gap: 12px;
    }
    .msh-hero-meta-item {
        font-size: 12px;
    }
    .msh-article-wrapper {
        padding: 32px 16px 48px;
    }
    .msh-post-content {
        padding: 24px;
        font-size: 16px;
    }
    .msh-post-content h2 {
        font-size: 22px;
    }
    .msh-post-content h3 {
        font-size: 19px;
    }
    .msh-post-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
    }
    .msh-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
    .msh-post-nav {
        grid-template-columns: 1fr;
    }
    .msh-nav-next {
        text-align: left;
    }
    .msh-nav-next .msh-nav-label {
        justify-content: flex-start;
    }
    .msh-related-grid {
        grid-template-columns: 1fr;
    }
    .msh-comments-section {
        padding: 24px;
    }
    .msh-section-title {
        font-size: 22px;
    }
}

@media only screen and (max-width: 480px) {
    .msh-hero-banner {
        min-height: 320px;
    }
    .msh-hero-title {
        font-size: 22px;
    }
    .msh-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}