/* HAMCO Sports News - Single Post Styles */

:root {
    --news-primary: #fe0000;
    --news-dark: #1a1a1a;
    --news-gray: #666;
    --news-light-gray: #f8f9fa;
    --news-border: #e0e0e0;
    --content-max-width: 900px;
    --sidebar-width: 300px;
}

/* Reset and Base */
.post-content-wrapper {
    background: #fff;
    padding: 60px 20px;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
}

.post-content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 60px;
}

/* Main Content Area */
.post-main-content {
    max-width: var(--content-max-width);
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 28px;
    color: var(--news-dark);
    margin: 2em 0 1em;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--news-primary);
}

.post-content h3 {
    font-size: 22px;
    color: var(--news-dark);
    margin: 1.5em 0 0.75em;
}

.post-content ul, .post-content ol {
    margin: 1.5em 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-content a {
    color: var(--news-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.post-content a:hover {
    border-bottom-color: var(--news-primary);
}

.post-content strong {
    color: var(--news-dark);
}

.post-content blockquote {
    border-left: 4px solid var(--news-primary);
    margin: 2em 0;
    padding: 20px 30px;
    background: var(--news-light-gray);
    font-style: italic;
    font-size: 20px;
}

/* Post Hero Section */
/* Original post-hero - overridden below */
.post-hero-old {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.post-hero .hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.post-hero h1.post-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Breadcrumb */
.post-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
}

.post-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: #fff;
}

.post-breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* Post Meta */
.post-meta-header {
    margin-bottom: 30px;
}

.post-category-badge a {
    display: inline-block;
    background: var(--news-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 15px;
}

.post-meta-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.post-meta-details svg {
    margin-right: 5px;
    vertical-align: middle;
}

.meta-separator {
    opacity: 0.5;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--news-light-gray);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--news-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--news-primary);
}

/* Table of Contents Widget */
.toc-widget #table-of-contents,
.toc-widget .ez-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget li {
    margin-bottom: 10px;
}

.toc-widget a {
    color: var(--news-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.toc-widget a:hover {
    color: var(--news-primary);
}

/* Author Widget */
.author-widget .author-info {
    text-align: center;
}

.author-widget .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-widget .author-details h4 {
    margin-bottom: 10px;
}

.author-widget .author-details h4 a {
    color: var(--news-dark);
    text-decoration: none;
}

.author-widget .author-details p {
    font-size: 14px;
    color: var(--news-gray);
    margin-bottom: 15px;
}

.view-posts-btn {
    display: inline-block;
    background: var(--news-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s;
}

.view-posts-btn:hover {
    background: #d00;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--news-primary);
    color: #fff;
}

.category-list .category-name {
    color: var(--news-dark);
}

.category-list .category-count {
    font-size: 12px;
    color: var(--news-gray);
}

.category-list a:hover .category-name,
.category-list a:hover .category-count {
    color: #fff;
}

/* Social Share Section */
.social-share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
}

.social-share-section h4 {
    font-size: 16px;
    color: var(--news-dark);
    margin-bottom: 15px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: var(--news-gray); }

/* Post Tags */
.post-tags-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
}

.post-tags-section h4 {
    font-size: 16px;
    color: var(--news-dark);
    margin-bottom: 15px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    display: inline-block;
    background: var(--news-light-gray);
    color: var(--news-gray);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tag:hover {
    background: var(--news-primary);
    color: #fff;
}

/* Author Bio Section */
.author-bio-section {
    background: var(--news-light-gray);
    padding: 60px 20px;
}

.author-bio-container {
    max-width: 900px;
    margin: 0 auto;
}

.author-bio-card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.author-bio-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.author-bio-content h3 {
    font-size: 20px;
    color: var(--news-gray);
    margin-bottom: 10px;
}

.author-bio-content h3 span {
    color: var(--news-dark);
}

.author-bio-content p {
    color: var(--news-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-bio-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.author-bio-stats .stat {
    text-align: center;
}

.author-bio-stats strong {
    display: block;
    font-size: 24px;
    color: var(--news-primary);
}

.author-bio-stats span {
    font-size: 13px;
    color: var(--news-gray);
}

.author-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--news-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.author-bio-btn:hover {
    background: var(--news-primary);
    color: #fff;
}

/* Related Posts Section */
.related-posts-section {
    padding: 60px 20px;
    background: #fff;
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-section h2 {
    font-size: 28px;
    color: var(--news-dark);
    text-align: center;
    margin-bottom: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 25px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
}

.related-post-category {
    background: var(--news-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.related-post-date {
    color: var(--news-gray);
}

.related-post-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: var(--news-dark);
    text-decoration: none;
}

.related-post-content h3 a:hover {
    color: var(--news-primary);
}

.related-post-content p {
    font-size: 14px;
    color: var(--news-gray);
    margin-bottom: 15px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--news-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-section {
    padding: 60px 20px;
    background: var(--news-light-gray);
}

.comments-container {
    max-width: 900px;
    margin: 0 auto;
}

/* No Related Posts */
.no-related-posts {
    text-align: center;
    color: var(--news-gray);
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-content-grid {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: relative;
        top: 0;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-hero h1.post-title {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 22px;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

/* Easy TOC Plugin Override */
#ez-toc-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#ez-toc-container .ez-toc-title {
    display: none;
}

#ez-toc-container nav ul {
    padding: 0 !important;
}

#ez-toc-container nav ul li {
    margin-bottom: 8px;
}

#ez-toc-container nav ul li a {
    color: var(--news-gray);
    font-size: 14px;
}

#ez-toc-container nav ul li a:hover {
    color: var(--news-primary);
}

/* Hero Image and Placeholder Styles */
/* Post Hero with Image Support */
.post-hero {
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-image .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.85) 100%);
}

.post-hero-image .placeholder-img {
    object-fit: contain;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Related Posts Placeholder */
.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.related-post-image a {
    display: block;
    height: 100%;
}

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

.related-post-image img.placeholder-img {
    object-fit: contain;
    padding: 20px;
}

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