/*
 * RENTA CAR — Single Blog Article Styles
 * Extras din: single.php (linii 19-491)
 * Incarcat pe: is_singular('post')
 * ==========================================================================
 */

:root {
    --rnt-bg-main: #0c1220;
    --rnt-bg-panel: #141b2d;
    --rnt-bg-panel-hover: #1a2340;
    --rnt-accent-blue: #3b82f6;
    --rnt-accent-light: #60a5fa;
    --rnt-accent-glow: rgba(59, 130, 246, 0.25);
    --rnt-text-white: #F1F5F9;
    --rnt-text-gray: #94A3B8;
    --rnt-text-muted: #64748B;
    --rnt-border: rgba(59, 130, 246, 0.12);
    --rnt-border-hover: rgba(59, 130, 246, 0.30);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Inter', sans-serif;
}

body.rnt-single-dark {
    background-color: var(--rnt-bg-main) !important;
    color: var(--rnt-text-white) !important;
    font-family: var(--font-main) !important;
    overflow-x: hidden;
}

body.rnt-single-dark .site,
body.rnt-single-dark .site-content,
body.rnt-single-dark .ast-container,
body.rnt-single-dark #primary,
body.rnt-single-dark #content {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.rnt-single-dark .ast-article-single .entry-header,
body.rnt-single-dark .ast-post-title,
body.rnt-single-dark .entry-title {
    display: none !important;
}

#rnt-single-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 80px 0;
    overflow: hidden;
    z-index: 1;
}

.rnt-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.rnt-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.rnt-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.08);
    top: -100px;
    right: -150px;
    animation: rntOrbFloat 20s ease-in-out infinite;
}

.rnt-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.05);
    bottom: 20%;
    left: -100px;
    animation: rntOrbFloat 25s ease-in-out infinite reverse;
}

@keyframes rntOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}

.rnt-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.rnt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rnt-text-gray);
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.rnt-back-link:hover {
    color: var(--rnt-accent-light);
}

.rnt-blog-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .rnt-blog-layout {
        flex-direction: row;
    }

    .rnt-single-main {
        width: 65%;
    }

    .rnt-blog-sidebar {
        width: 35%;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

/* Article Header & Meta */
.rnt-article-header {
    margin-bottom: 40px;
}

.rnt-cat-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--rnt-accent-light);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.rnt-article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--rnt-text-white);
    margin-bottom: 20px;
}

.rnt-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--rnt-text-muted);
    border-bottom: 1px solid var(--rnt-border);
    padding-bottom: 20px;
}

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

.rnt-meta-item i {
    color: var(--rnt-accent-blue);
}

/* Featured Image */
.rnt-article-thumb {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--rnt-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rnt-article-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

/* Article Content */
.rnt-single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--rnt-text-gray);
}

.rnt-single-content h2,
.rnt-single-content h3,
.rnt-single-content h4 {
    color: var(--rnt-text-white);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.rnt-single-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--rnt-border);
    padding-bottom: 10px;
}

.rnt-single-content h3 {
    font-size: 1.4rem;
}

.rnt-single-content p {
    margin-bottom: 1.5em;
}

.rnt-single-content a {
    color: var(--rnt-accent-light);
    text-decoration: none;
    border-bottom: 1px dashed var(--rnt-accent-blue);
    transition: all 0.3s ease;
}

.rnt-single-content a:hover {
    color: var(--rnt-text-white);
    border-bottom-color: var(--rnt-text-white);
}

.rnt-single-content ul,
.rnt-single-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.rnt-single-content li {
    margin-bottom: 0.5em;
}

.rnt-single-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--rnt-accent-blue);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--rnt-text-white);
    font-size: 1.2rem;
}

.rnt-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    border: 1px solid var(--rnt-border);
}

.rnt-single-content pre {
    background: #0d1117;
    border: 1px solid var(--rnt-border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rnt-single-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--rnt-accent-light);
    background: rgba(10, 14, 26, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.rnt-single-content pre code {
    background: transparent;
    padding: 0;
    color: var(--rnt-text-white);
}

/* Article Footer */
.rnt-article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--rnt-border);
}

.rnt-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.rnt-tag-link {
    background: var(--rnt-bg-panel);
    color: var(--rnt-text-gray);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--rnt-border);
    transition: all 0.3s ease;
}

.rnt-tag-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--rnt-accent-light);
    border-color: var(--rnt-accent-blue);
}

.rnt-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rnt-nav-link {
    flex: 1;
    min-width: 250px;
    background: var(--rnt-bg-panel);
    border: 1px solid var(--rnt-border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rnt-nav-link:hover {
    border-color: var(--rnt-border-hover);
    background: var(--rnt-bg-panel-hover);
    transform: translateY(-3px);
}

.rnt-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--rnt-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rnt-nav-title {
    color: var(--rnt-text-white);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.rnt-nav-prev {
    text-align: left;
}

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

.rnt-nav-next .rnt-nav-label {
    justify-content: flex-end;
}

/* Sidebar Widgets */
.rnt-widget {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--rnt-border);
    border-radius: 20px;
    padding: 30px;
}

.rnt-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rnt-text-white);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--rnt-accent-blue);
}

.rnt-search-form {
    position: relative;
}

.rnt-search-input {
    width: 100%;
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--rnt-border);
    color: var(--rnt-text-white);
    padding: 12px 40px 12px 16px;
    border-radius: 10px;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}

.rnt-search-input:focus {
    border-color: var(--rnt-accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rnt-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--rnt-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.rnt-search-btn:hover {
    color: var(--rnt-accent-light);
}

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

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

.rnt-category-list li:last-child {
    margin-bottom: 0;
}

.rnt-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--rnt-text-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.rnt-cat-link:hover {
    color: var(--rnt-text-white);
}

.rnt-cat-name {
    transition: transform 0.3s ease;
}

.rnt-cat-link:hover .rnt-cat-name {
    transform: translateX(5px);
}

.rnt-cat-count {
    background: #0c1220;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--rnt-border);
    transition: border-color 0.3s ease;
}

.rnt-cat-link:hover .rnt-cat-count {
    border-color: var(--rnt-border-hover);
}

.rnt-cta-widget {
    background: linear-gradient(135deg, #1e3a8a, #0f1629);
    border: 1px solid var(--rnt-border-hover);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rnt-cta-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.rnt-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px;
    backdrop-filter: blur(5px);
}

.rnt-cta-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.rnt-cta-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.rnt-btn-white {
    background: white;
    color: #1e3a8a;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.rnt-btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.rnt-cta-contact {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--rnt-accent-light);
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 2;
}

/* Animations */
.rnt-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rnt-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}