/*
 * GOLDRAGO SRL — Single Blog Article Styles
 * Extras din: single.php
 * Incarcat pe: is_singular('post')
 * ==========================================================================
 */

:root {
    --grg-bg-main: #0f1419;
    --grg-bg-panel: #1a1f26;
    --grg-bg-panel-hover: #22282f;
    --grg-accent-gold: #d4a853;
    --grg-accent-light: #e8c47a;
    --grg-accent-glow: rgba(212, 168, 83, 0.25);
    --grg-text-white: #F1F5F9;
    --grg-text-gray: #94A3B8;
    --grg-text-muted: #64748B;
    --grg-border: rgba(212, 168, 83, 0.15);
    --grg-border-hover: rgba(212, 168, 83, 0.35);
    --font-main: 'Sora', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

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

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

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

.grg-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 168, 83, 0.08);
    top: -100px;
    right: -150px;
    animation: grgOrbFloat 20s ease-in-out infinite;
}

.grg-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(184, 137, 46, 0.05);
    bottom: 20%;
    left: -100px;
    animation: grgOrbFloat 25s ease-in-out infinite reverse;
}

@keyframes grgOrbFloat {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.grg-meta-item i {
    color: var(--grg-accent-gold);
}

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

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

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

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

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

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

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

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

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

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

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

.grg-single-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: rgba(212, 168, 83, 0.05);
    border-left: 4px solid var(--grg-accent-gold);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--grg-text-white);
    font-size: 1.2rem;
}

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

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

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

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

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

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

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

.grg-tag-link:hover {
    background: rgba(212, 168, 83, 0.1);
    color: var(--grg-accent-light);
    border-color: var(--grg-accent-gold);
}

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

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

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

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

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

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

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

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

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

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

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

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

.grg-search-input:focus {
    border-color: var(--grg-accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

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

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

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

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

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

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

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

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

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

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

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

.grg-cta-widget {
    background: linear-gradient(135deg, #4a3210, #1a1f26);
    border: 1px solid var(--grg-border-hover);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.grg-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;
}

.grg-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);
}

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

.grg-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;
}

.grg-btn-white {
    background: white;
    color: #4a3210;
    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;
}

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

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

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

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

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

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