/* ==========================================================================
   Single Post Styles for GhanaRoll
   ========================================================================== */

/* Container and Layout */
.ghanaroll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.col-md-8 {
    flex: 1 1 auto;
    max-width: calc(100% - 300px);
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .col-md-8 {
        max-width: 100%;
    }
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.breadcrumbs a {
    color: #009739; /* Green */
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #EF3340; /* Red */
}

/* Post Title and Meta */
.post-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    color: #EF3340; /* Red */
}

/* Post Content and Images */
.post-content {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.post-thumbnail img,
.post-content img {
    width: 100%;
    height: auto;
    max-width: 100% !important;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Handle WordPress Alignments */
.post-content img.alignleft,
.post-content img.alignright,
.post-content img.aligncenter {
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
}

@media (max-width: 768px) {
    .post-thumbnail img,
    .post-content img {
        max-height: 200px;
        object-fit: cover;
    }
    .col-md-8, .col-md-4 {
        width: 100%;
    }
    .post-title {
        font-size: 1.5rem;
    }
    .post-meta {
        font-size: 0.75rem;
    }
    .post-meta span {
        margin-bottom: 5px;
    }
}

/* Floating Share Bar */
.ghanaroll-share-floating {
    position: fixed;
    top: 50%;
    left: 10px; /* Moved to left */
    transform: translateY(-50%);
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50px; /* Limit width for responsiveness */
}

.ghanaroll-share-floating span {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap; /* Prevent text wrap */
}

.ghanaroll-share-floating a {
    display: block;
    margin: 5px 0;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    text-decoration: none;
    width: 30px;
    text-align: center;
    font-size: 1rem; /* Ensure icon visibility */
}

.ghanaroll-share-floating .share-whatsapp { background: #25D366; }
.ghanaroll-share-floating .share-facebook { background: #3B5998; }
.ghanaroll-share-floating .share-x { background: #000000; }

@media (max-width: 768px) {
    .ghanaroll-share-floating {
        display: none; /* Hide on mobile, can adjust if needed */
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .ghanaroll-share-floating {
        left: 5px; /* Adjust for smaller screens */
        max-width: 40px;
    }
    .ghanaroll-share-floating a {
        width: 25px;
        font-size: 0.9rem;
    }
}

/* Horizontal Categories */
.ghanaroll-categories-horizontal {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.ghanaroll-categories-horizontal .category-link {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background: #009739;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
}

.ghanaroll-categories-horizontal .category-link:hover {
    background: #EF3340;
}

/* Scroll to Top Button */
.ghanaroll-scroll-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px; /* Temporarily keep right until share icons move */
    background: #EF3340;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.ghanaroll-scroll-top:hover {
    background: #009739;
}

.ghanaroll-scroll-top i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .ghanaroll-scroll-top {
        bottom: 10px;
        right: 10px;
    }
}

/* ./assets/css/single-post.css */
.share-buttons {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}
.share-buttons h3 {
    color: #009739; /* Green */
    margin-bottom: 10px;
}
.share-button {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    color: #fff !important;
    text-decoration: none !important;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #3B5998; }
.share-x { background: #000000; }