/* 
 * Luxury Blog Detail Styles
 * Isolated CSS for single-blog.php
 */

/* Hero Section */
.single-blog-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: #000;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s ease-out;
}

.single-blog-hero:hover .hero-bg-img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(14, 17, 38, 0.4) 0%, 
        rgba(14, 17, 38, 0.2) 50%, 
        var(--primary-1) 100%
    );
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 40px;
}

.blog-meta-top {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-category-label {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-date-label {
    opacity: 0.8;
}

.single-blog-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.blog-author-line {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Content Area */
.single-blog-content-area {
    padding: 100px 0;
    background: #fff;
    position: relative;
    z-index: 4;
}

/* Layout Grid */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

/* Sticky Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px; /* Adjust based on header height */
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.blog-main-content {
    min-width: 0; /* Prevents grid blowout */
    text-align: left; /* Explicit left alignment */
}

/* Quick Index / TOC Refresh */
.blog-quick-index {
    background: #fcfcfd;
    border-left: 2px solid var(--secondary-2);
    padding: 25px;
    border-radius: 0 12px 12px 0;
}

.index-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-1);
    margin-bottom: 20px;
}

.index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-list li {
    margin-bottom: 12px;
}

.index-list li a {
    text-decoration: none;
    color: var(--primary-1);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: inline-block;
}

.index-list li a:hover {
    opacity: 1;
    color: var(--secondary-1);
    transform: translateX(3px);
}

/* Typography Overrides - Left Aligned */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-1);
    text-align: left;
}

.entry-content p {
    margin-bottom: 30px;
}

.entry-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 60px 0 25px;
    color: var(--primary-1);
    text-align: left;
    letter-spacing: -0.5px;
}

.entry-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--primary-1);
    text-align: left;
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary-1);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    color: var(--primary-3);
    font-size: 1.2em;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content img {
    margin: 40px auto;
    border-radius: 12px;
}

/* Navigation & Footer */
.single-blog-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.share-article {
    margin-bottom: 60px;
    text-align: center;
}

.share-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
    color: #999;
}

.social-links-placeholder {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
}

.social-links-placeholder span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.social-links-placeholder span:hover {
    color: var(--secondary-2);
}

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

.nav-previous, .nav-next {
    flex: 1;
}

.nav-previous a, .nav-next a {
    display: block;
    padding: 25px;
    background: #fcfcfd;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-1);
    font-weight: 700;
    transition: all 0.4s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

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

/* Responsiveness */
@media (max-width: 1024px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        max-height: none;
    }
    
    .blog-quick-index {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .single-blog-hero {
        height: 60vh;
    }
    
    .blog-main-content {
        padding: 0 20px;
    }
    
    .nav-links {
        flex-direction: column;
    }
}
