/* 
Custom Single Post Template Styles
*/

/* Custom Single Post Container */
.custom-single-post {
    background: #fff;
    margin-bottom: 40px;
}

.custom-single-post .article-inner {
    padding: 0;
}

/* Custom Breadcrumbs */
.custom-breadcrumbs {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #333;
}

.breadcrumb-nav span {
    color: #999;
}

/* Entry Header */
.custom-single-post .entry-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* Category Tags */
.entry-categories {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background: #e3b505;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-tag:hover {
    background: #d4a404;
    color: white;
}

/* Large Title */
.large-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 25px;
    font-family: Georgia, "Times New Roman", serif;
}

/* Meta Information */
.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    font-size: 14px;
    color: #95a5a6;
}

.meta-item a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #2c3e50;
}

/* Advertisement Spaces */
.advertisement-top,
.advertisement-middle {
    margin: 40px 0;
    text-align: center;
}

.ad-container {
    position: relative;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Featured Image */
.entry-image {
    margin: 40px 0;
}

.featured-image {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Main Content */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 50px;
}

.entry-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 1.8em;
    border-bottom: 3px solid #e3b505;
    padding-bottom: 10px;
}

.entry-content h3 {
    font-size: 1.5em;
    color: #34495e;
}

.entry-content h4 {
    font-size: 1.3em;
    color: #34495e;
}

/* Blockquotes and Quote Styling */
.entry-content blockquote {
    background: #f8f9fa;
    border-left: 5px solid #e3b505;
    margin: 30px 0;
    padding: 25px 30px;
    font-size: 1.1em;
    font-style: italic;
    line-height: 1.6;
    color: #495057;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.entry-content blockquote::before {
    content: """;
    font-size: 4em;
    color: #e3b505;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.entry-content blockquote p {
    margin-bottom: 15px;
    text-align: left;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
}

.entry-content blockquote cite::before {
    content: "— ";
}

/* Images in Content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.entry-content .wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.entry-content .wp-caption-text {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.entry-content ul li {
    list-style-type: none;
    position: relative;
}

.entry-content ul li::before {
    content: "•";
    color: #e3b505;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Links */
.entry-content a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: #2980b9;
}

/* Page Links */
.page-links {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links-title {
    font-weight: 600;
    margin-right: 15px;
    color: #495057;
}

.page-links a,
.page-links span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #e3b505;
    color: white;
    border-color: #e3b505;
}

/* Tags */
.entry-tags {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.entry-tags h5 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tag-list a {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    margin: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: #34495e;
    color: white;
}

/* Social Share */
.blog-share {
    margin: 40px 0;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.blog-share h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

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

.author-info {
    flex: 1;
}

.author-name {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 600;
}

.author-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-posts-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.author-posts-link:hover {
    color: #2980b9;
}

/* Post Navigation */
.post-navigation {
    margin: 50px 0;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    background: #e3b505;
    color: white;
    border-color: #e3b505;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 181, 5, 0.3);
}

.nav-direction {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.nav-next .nav-link {
    text-align: right;
}

/* Comments */
#comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .large-title {
        font-size: 2em;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-meta {
        flex-direction: row;
        gap: 10px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .entry-content blockquote {
        padding: 20px 25px;
        margin: 20px 0;
    }
    
    .entry-content blockquote::before {
        font-size: 3em;
        top: -5px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .large-title {
        font-size: 1.8em;
    }
    
    .entry-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .custom-single-post .article-inner {
        padding: 0 10px;
    }
    
    .entry-content blockquote {
        padding: 15px 20px;
        font-size: 1em;
    }
}
