/* 
File: assets/css/single-blog.css 
*/

/* ==========================================================================
   Variables & Typography
   ========================================================================== */
   :root {
    --primary-color: #0F62FE;
    --dark-color: #050B14;
    --bg-light: #F8FAFC;
    --gradient-blue: linear-gradient(90deg, #0F62FE 0%, #00D4FF 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-radius: 20px;
    --btn-radius: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 15px 45px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: #4A5568;
    line-height: 1.9;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.single-container {
    max-width: 1320px;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-blue);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.single-hero {
    background: var(--dark-color);
    padding: 140px 0 100px;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(15,98,254,0.15) 0%, rgba(5,11,20,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-bottom-glow {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    box-shadow: 0 -10px 40px rgba(0, 212, 255, 0.6);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
    opacity: 0.5;
}

.hero-title {
    font-size: 2.5rem;
}
@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}

/* ==========================================================================
   Content Area formatting
   ========================================================================== */
.post-content {
    font-size: 1.05rem;
    color: #4A5568;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    background: var(--bg-light);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 30px 0;
}

.post-content pre {
    background: #1E293B;
    color: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

/* ==========================================================================
   TOC & Share Box & Author Box
   ========================================================================== */
.toc-container {
    border-color: rgba(0,0,0,0.05) !important;
}

.toc-list li a {
    color: #4A5568;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.toc-list li a:hover, .toc-list li a.active {
    color: var(--primary-color);
    padding-left: 5px;
}

.share-btn {
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.share-btn.facebook:hover { background: #1877F2 !important; }
.share-btn.twitter:hover { background: #000000 !important; }
.share-btn.linkedin:hover { background: #0A66C2 !important; }
.share-btn.whatsapp:hover { background: #25D366 !important; }
.share-btn.copy-link:hover { background: var(--primary-color) !important; }

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.single-sidebar .widget {
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.cat-list li:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
.popular-post-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }

.hover-text-primary:hover { color: var(--primary-color) !important; }
.transition-colors { transition: color 0.3s ease; }

.newsletter-widget .newsletter-bg {
    background: var(--dark-color);
}
.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(15,98,254,0.3) 0%, transparent 60%);
    z-index: 0;
}

/* ==========================================================================
   Cards & Utilities
   ========================================================================== */
.related-card {
    transition: var(--transition);
    border-radius: var(--card-radius);
}
.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft) !important;
}

.transition-transform { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.group:hover .group-hover-scale { transform: scale(1.08); }

.hover-lift { transition: var(--transition); }
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box { border: 2px solid transparent; }
.cta-bg { background: var(--gradient-blue); }
.cta-rocket {
    width: 100px; height: 100px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--dark-color) !important;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
    .single-hero { padding: 100px 0 60px; }
    .cta-box { border-radius: 30px !important; text-align: center; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-rocket { margin-bottom: -20px; }
    .post-navigation { flex-direction: column; text-align: center !important; }
    .nav-prev, .nav-next { text-align: center !important; }
}