/* ==========================================================================
   RAHI ULTRA PREMIUM BLOG CSS
   ========================================================================== */

/* --- BLOG WIDGET GRID (Normal & Premium) --- */
.rahi-bp-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 20px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
@media (min-width: 768px) { .rahi-bp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rahi-bp-grid { grid-template-columns: repeat(3, 1fr); } }
.rahi-bp-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; display: flex; flex-direction: column; }
.rahi-bp-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transform: translateY(-4px); }
.rahi-bp-img-link { display: block; width: 100%; height: 200px; overflow: hidden; }
.rahi-bp-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rahi-bp-card:hover .rahi-bp-img { transform: scale(1.03); }
.rahi-bp-img-placeholder { width: 100%; height: 100%; background: #f4f6f8; }
.rahi-bp-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.rahi-bp-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 12px; color: #666; }
.rahi-bp-cat { background-color: #f0f4f8; color: #0c8346; padding: 4px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.rahi-bp-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 12px 0; }
.rahi-bp-title a { color: #111; text-decoration: none; transition: color 0.2s ease; }
.rahi-bp-title a:hover { color: #0c8346; }
.rahi-bp-excerpt { font-size: 15px; line-height: 1.6; color: #555; margin: 0 0 20px 0; flex-grow: 1; }
.rahi-bp-readmore { font-size: 14px; font-weight: 600; color: #0c8346; text-decoration: none; display: inline-block; transition: color 0.2s ease; }
.rahi-bp-readmore:hover { color: #096334; }

/* --- SINGLE POST VIEW (Tech Theme, Animated, Ultra Premium) --- */
:root {
    --tech-bg: #0b0c10;
    --tech-surface: #1f2833;
    --tech-neon: #00f0ff; /* Neon Cyan */
    --tech-text-main: #c5c6c7;
    --tech-text-bright: #ffffff;
    --tech-accent: #66fcf1;
}

.rahi-single-post-main.rahi-tech-theme {
    background-color: var(--tech-bg);
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 80px 20px;
    color: var(--tech-text-main);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Reading Progress Bar */
.rahi-tech-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--tech-neon);
    width: 0%;
    z-index: 999999;
    box-shadow: 0 0 10px var(--tech-neon);
    transition: width 0.1s ease;
}

/* Floating Tech Back Button */
.rahi-single-back-button {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
}
.rahi-single-back-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(31, 40, 51, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    color: var(--tech-neon);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.rahi-single-back-button a:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--tech-neon);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateX(-3px);
}

.rahi-single-article {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

/* Header Section */
.rahi-single-header {
    text-align: center;
    margin-bottom: 50px;
}

.rahi-single-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.rahi-single-cat-badge {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--tech-neon);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) inset;
}

.rahi-single-date-top {
    font-size: 14px;
    color: #8892b0;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rahi-single-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--tech-text-bright);
    line-height: 1.3;
    margin: 0 0 25px 0;
    text-transform: capitalize;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .rahi-single-title { font-size: 52px; }
}

.rahi-single-author-box {
    font-size: 14px;
    color: #8892b0;
    display: inline-block;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    letter-spacing: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
}
.rahi-single-author-box .author-label { color: var(--tech-neon); font-size: 12px; }
.rahi-single-author-box strong { color: var(--tech-text-bright); }

/* Tech Image Styling */
.rahi-single-featured-img {
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 240, 255, 0.1);
}

.rahi-single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.9);
}

.tech-img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11, 12, 16, 0) 50%, rgba(11, 12, 16, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

.tech-scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    z-index: 3;
    opacity: 0.5;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

/* Content Body (Glassmorphism & Tech Typography) */
.rahi-single-content-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--tech-text-main);
    background: rgba(31, 40, 51, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
    .rahi-single-content-body { padding: 25px; font-size: 16px; }
}

.rahi-single-content-body p { margin-bottom: 25px; }

.rahi-single-content-body h1, 
.rahi-single-content-body h2, 
.rahi-single-content-body h3, 
.rahi-single-content-body h4 {
    color: var(--tech-text-bright);
    font-weight: 700;
    margin: 45px 0 25px 0;
    position: relative;
    display: inline-block;
}

.rahi-single-content-body h2::after,
.rahi-single-content-body h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--tech-neon);
    box-shadow: 0 0 8px var(--tech-neon);
}

.rahi-single-content-body a {
    color: var(--tech-accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--tech-accent);
    transition: all 0.3s ease;
}
.rahi-single-content-body a:hover {
    color: var(--tech-neon);
    border-bottom-style: solid;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.rahi-single-content-body img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.rahi-single-content-body blockquote {
    border-left: 4px solid var(--tech-neon);
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(0, 240, 255, 0.05);
    font-style: italic;
    color: var(--tech-text-bright);
    border-radius: 0 8px 8px 0;
}

.rahi-single-comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations (Slide & Fade) */
@keyframes scanline {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}