/**
 * Single Post Styles
 * Modern single blog post layout
 */

/* ========================================
   Post Hero Section
   ======================================== */
.single-post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.single-post-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.single-post-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.single-post-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px 80px;
    text-align: center;
    color: #fff;
}

.single-post-hero .post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post-hero .post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.single-post-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.single-post-hero .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.single-post-hero .post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-post-hero .post-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-post-hero .post-meta .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .single-post-hero {
        min-height: 400px;
    }
    
    .single-post-hero h1 {
        font-size: 2rem;
    }
    
    .single-post-hero .post-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Post Container
   ======================================== */
.single-post-container {
    max-width: 1237px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .single-post-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

/* ========================================
   Post Content
   ======================================== */
.single-post-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.post-body {
    padding: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 35px 0 15px;
}

.post-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: #764ba2;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
}

.post-body blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.post-body pre,
.post-body code {
    background: #1a1a2e;
    color: #e9ecef;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
}

.post-body pre {
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-body code {
    padding: 2px 8px;
    font-size: 0.9em;
}

.post-body pre code {
    padding: 0;
}

@media (max-width: 768px) {
    .post-body {
        padding: 30px 20px;
        font-size: 1rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
}

/* ========================================
   Post Tags
   ======================================== */
.post-tags {
    padding: 0 50px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags .tags-label {
    font-weight: 600;
    color: #666;
}

.post-tags .tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

@media (max-width: 768px) {
    .post-tags {
        padding: 0 20px 25px;
    }
}

/* ========================================
   Share Buttons
   ======================================== */
.post-share {
    padding: 30px 50px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-share .share-label {
    font-weight: 600;
    color: #666;
}

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

.post-share .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-share .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.post-share .share-btn.facebook {
    background: #1877f2;
}

.post-share .share-btn.twitter {
    background: #1da1f2;
}

.post-share .share-btn.whatsapp {
    background: #25d366;
}

.post-share .share-btn.email {
    background: #ea4335;
}

@media (max-width: 768px) {
    .post-share {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Author Box
   ======================================== */
.author-box {
    margin: 0 50px 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-box .author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.author-box .author-info .author-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
}

.author-box .author-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.author-box .author-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .author-box {
        margin: 0 20px 25px;
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Post Navigation
   ======================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eee;
}

.post-navigation .nav-link {
    padding: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.post-navigation .nav-link:hover {
    background: #f8f9fa;
}

.post-navigation .nav-link.prev {
    border-right: 1px solid #eee;
}

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

.post-navigation .nav-link.empty {
    pointer-events: none;
}

.post-navigation .nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

.post-navigation .nav-link.next .nav-label {
    justify-content: flex-end;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.post-navigation .nav-link:hover .nav-title {
    color: #667eea;
}

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-link.prev {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .post-navigation .nav-link.next {
        text-align: left;
    }
    
    .post-navigation .nav-link.next .nav-label {
        justify-content: flex-start;
    }
}

/* ========================================
   Comments Section
   ======================================== */
.comments-section {
    padding: 40px 50px;
    border-top: 1px solid #eee;
}

.comments-section .comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-section .comment {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.comments-section .comment:last-child {
    border-bottom: none;
}

.comments-section .comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comments-section .comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comments-section .comment-author .fn {
    font-weight: 600;
    color: #1a1a2e;
}

.comments-section .comment-meta {
    font-size: 0.85rem;
    color: #888;
}

.comments-section .comment-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.comments-section .comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.comments-section .comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment Form */
.comments-section .comment-respond {
    margin-top: 40px;
}

.comments-section .comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.comments-section .comment-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.comments-section .comment-form input:focus,
.comments-section .comment-form textarea:focus {
    border-color: #667eea;
    outline: none;
}

.comments-section .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comments-section .comment-form .submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comments-section .comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .comments-section {
        padding: 30px 20px;
    }
}
