/* ==========================================================================
   SINGLE POST ULTRADIMENSIONAL - PREMIUM STYLES
   ========================================================================== */
:root {
    --single-ultra-bg: #050505;
    --single-ultra-accent: #FC6736;
    --single-ultra-text: #e0e0e0;
    --single-ultra-heading: #ffffff;
}

.single-ultra-page {
    background-color: var(--single-ultra-bg);
    color: var(--single-ultra-text);
    overflow-x: hidden;
    position: relative;
}

/* --- Progress Bar --- */
.ultra-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.ultra-progress-bar {
    height: 100%;
    background: var(--single-ultra-accent);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--single-ultra-accent);
}

/* --- Hero Section --- */
.single-ultra-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height, 80px)); /* Fallback to 80px if not defined */
}

.single-ultra-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    animation: heroZoomIn 20s infinite alternate linear;
}

@keyframes heroZoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.single-ultra-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.8) 50%, var(--single-ultra-bg) 100%);
}

.single-ultra-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.single-ultra-category {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    background: <?php echo $cat_color; ?>;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.single-ultra-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-heading);
    color: var(--single-ultra-heading);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.single-ultra-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.single-ultra-meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
}

.single-ultra-meta-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.single-ultra-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--single-ultra-accent);
}

/* --- Content Area --- */
.single-ultra-content-wrapper {
    position: relative;
    z-index: 20;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px 6rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.single-ultra-content-wrapper p {
    margin-bottom: 2rem;
    color: var(--single-ultra-text);
}

.single-ultra-content-wrapper h2, 
.single-ultra-content-wrapper h3, 
.single-ultra-content-wrapper h4 {
    color: var(--single-ultra-heading);
    font-family: var(--font-heading);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-ultra-content-wrapper h2 { font-size: 2.2rem; }
.single-ultra-content-wrapper h3 { font-size: 1.8rem; }

.single-ultra-content-wrapper a {
    color: var(--single-ultra-accent);
    text-decoration: none;
    background-image: linear-gradient(transparent calc(100% - 2px), var(--single-ultra-accent) 2px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: background-size 0.3s ease;
}

.single-ultra-content-wrapper a:hover {
    background-size: 100% 0%;
}

.single-ultra-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.single-ultra-content-wrapper blockquote {
    margin: 3rem 0;
    padding: 2rem 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
}

.single-ultra-content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--single-ultra-accent);
    opacity: 0.3;
    font-family: var(--font-heading);
    line-height: 1;
}

.single-ultra-content-wrapper ul,
.single-ultra-content-wrapper ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.single-ultra-content-wrapper li {
    margin-bottom: 1rem;
}

/* --- Post Navigation --- */
.single-ultra-navigation {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .single-ultra-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.ultra-nav-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ultra-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(252, 103, 54, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ultra-nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--single-ultra-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ultra-nav-card:hover::before {
    opacity: 1;
}

.ultra-nav-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--single-ultra-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.ultra-nav-title {
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.3;
    position: relative;
}

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