/* ==========================================================================
   SKYFALL - BLOG STYLES
   Archive and Single Post Templates
   ========================================================================== */

/* ==========================================================================
   BLOG HERO
   ========================================================================== */
.sf-blog-hero,
.sf-single-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: #050505;
    overflow: hidden;
}

.sf-blog-hero-bg,
.sf-single-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(234, 88, 12, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.sf-blog-hero-grid,
.sf-single-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(234, 88, 12, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 88, 12, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.sf-blog-hero-content,
.sf-single-hero-content {
    text-align: center;
}

.sf-blog-hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #EA580C;
    margin-bottom: 1.5rem;
}

.sf-blog-hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

.sf-blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sf-blog-stat {
    text-align: center;
}

.sf-blog-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #EA580C;
}

.sf-blog-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   BLOG GRID
   ========================================================================== */
.sf-blog-posts {
    background: #050505;
}

.sf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sf-blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .sf-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sf-blog-grid,
    .sf-blog-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   POST CARD
   ========================================================================== */
.sf-post-card {
    --hud-color: #EA580C;
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-post-card:hover {
    border-color: rgba(234, 88, 12, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sf-post-card .hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: all 0.4s ease;
    z-index: 3;
}

.sf-post-card .hud-corner-tl {
    top: 0; left: 0;
    border-top: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-post-card .hud-corner-tr {
    top: 0; right: 0;
    border-top: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-post-card .hud-corner-bl {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-post-card .hud-corner-br {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-post-card:hover .hud-corner {
    opacity: 1;
    width: 18px;
    height: 18px;
}

/* Card Image */
.sf-post-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sf-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sf-post-card:hover .sf-post-card-image img {
    transform: scale(1.05);
}

.sf-post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

/* Card Content */
.sf-post-card-content {
    padding: 1.5rem;
}

.sf-post-card-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sf-post-card-category {
    padding: 4px 10px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #EA580C;
    transition: all 0.3s ease;
}

.sf-post-card-category:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: rgba(234, 88, 12, 0.4);
}

.sf-post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.sf-post-card-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.sf-post-card-title a:hover {
    color: #EA580C;
}

.sf-post-card-excerpt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Card Meta */
.sf-post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-post-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-post-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(234, 88, 12, 0.3);
}

.sf-post-card-author span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.sf-post-card-details {
    display: flex;
    gap: 12px;
}

.sf-post-card-date,
.sf-post-card-reading {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.sf-post-card-date svg,
.sf-post-card-reading svg {
    opacity: 0.7;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.sf-pagination {
    margin-top: 4rem;
    text-align: center;
}

.sf-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sf-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.sf-pagination-btn:hover:not(.disabled) {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.4);
    color: #fff;
}

.sf-pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sf-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.sf-pagination-num:hover,
.sf-pagination-num.active {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.4);
    color: #EA580C;
}

.sf-pagination-num.active {
    font-weight: 700;
}

.sf-pagination-dots {
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.sf-pagination-info {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.sf-pagination-current {
    color: #EA580C;
    font-weight: 600;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.sf-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.sf-blog-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.sf-blog-empty-icon svg {
    color: #EA580C;
}

.sf-blog-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sf-blog-empty-text {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.sf-single-hero {
    padding: 10rem 0 4rem;
}

.sf-single-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.sf-single-category {
    padding: 6px 14px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #EA580C;
    transition: all 0.3s ease;
}

.sf-single-category:hover {
    background: rgba(234, 88, 12, 0.2);
}

.sf-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sf-single-title {
        font-size: 1.75rem;
    }
}

.sf-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sf-single-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-single-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(234, 88, 12, 0.3);
}

.sf-single-author-info {
    text-align: left;
}

.sf-single-author-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.sf-single-author-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.sf-single-reading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.sf-single-reading svg {
    color: #EA580C;
}

/* Featured Image */
.sf-single-featured {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.sf-single-featured-wrapper {
    --hud-color: #EA580C;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.sf-single-featured-wrapper .hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.sf-single-featured-wrapper .hud-corner-tl {
    top: 0; left: 0;
    border-top: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-single-featured-wrapper .hud-corner-tr {
    top: 0; right: 0;
    border-top: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-single-featured-wrapper .hud-corner-bl {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-single-featured-wrapper .hud-corner-br {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-single-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Layout */
.sf-single-content-wrapper {
    background: #050505;
}

.sf-single-layout {
    max-width: 800px;
    margin: 0 auto;
}

.sf-single-layout-with-sidebar {
    position: relative;
}

/* Content */
.sf-single-content {
    position: relative;
}

/* Prose Styles */
.sf-prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.sf-prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
}

.sf-prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.sf-prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

.sf-prose p {
    margin-bottom: 1.5rem;
}

.sf-prose a {
    color: #EA580C;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sf-prose a:hover {
    color: #f97316;
}

.sf-prose strong {
    color: #fff;
    font-weight: 600;
}

.sf-prose ul,
.sf-prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.sf-prose li {
    margin-bottom: 0.5rem;
}

.sf-prose ul li::marker {
    color: #EA580C;
}

.sf-prose ol li::marker {
    color: #EA580C;
    font-weight: 600;
}

.sf-prose blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(234, 88, 12, 0.05);
    border-left: 4px solid #EA580C;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.sf-prose pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow-x: auto;
}

.sf-prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: rgba(234, 88, 12, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #EA580C;
}

.sf-prose pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.sf-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.sf-prose hr {
    margin: 3rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(234, 88, 12, 0.3), transparent);
}

/* Tags */
.sf-single-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-single-tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.sf-single-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-single-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.sf-single-tag:hover {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.3);
    color: #EA580C;
}

/* ==========================================================================
   SOCIAL SHARE
   ========================================================================== */
.sf-social-share-buttons {
    display: flex;
    gap: 8px;
}

.sf-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sf-social-btn:hover {
    transform: translateY(-2px);
}

.sf-social-facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.4);
    color: #1877f2;
}

.sf-social-twitter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sf-social-linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077b5;
}

.sf-social-copy:hover {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.4);
    color: #EA580C;
}

/* Sticky Social */
.sf-social-share-sticky {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.sf-social-share-sticky .sf-social-share-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.sf-social-share-sticky .sf-social-share-buttons {
    flex-direction: column;
}

@media (max-width: 1400px) {
    .sf-social-share-sticky {
        right: 1rem;
    }
}

@media (max-width: 1200px) {
    .sf-social-share-sticky {
        display: none;
    }
}

/* Inline Social */
.sf-social-share-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-single-social-top {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-single-social-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.sf-single-social-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */
.sf-single-author-box {
    padding: 0 0 4rem;
    background: #050505;
}

.sf-author-card {
    --hud-color: #EA580C;
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 12px;
    padding: 2rem;
}

.sf-author-card .hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.sf-author-card .hud-corner-tl {
    top: 0; left: 0;
    border-top: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-author-card .hud-corner-tr {
    top: 0; right: 0;
    border-top: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-author-card .hud-corner-bl {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-author-card .hud-corner-br {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-author-card-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sf-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(234, 88, 12, 0.3);
}

.sf-author-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #EA580C;
    margin-bottom: 4px;
}

.sf-author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.sf-author-bio {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .sf-author-card-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.sf-single-related {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.sf-search-form-wrapper {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sf-search-form {
    width: 100%;
}

.sf-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.2);
    transition: all 0.3s ease;
}

.sf-search-input-wrapper:focus-within {
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.1);
}

.sf-search-icon {
    margin-left: 16px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.sf-search-input {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #fff;
    outline: none;
}

.sf-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sf-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 4px;
    background: linear-gradient(135deg, #EA580C 0%, #c2410c 100%);
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-search-submit:hover {
    background: linear-gradient(135deg, #f97316 0%, #EA580C 100%);
}

.sf-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    color: #EA580C;
    transition: all 0.3s ease;
}

.sf-empty-btn:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: rgba(234, 88, 12, 0.5);
}

.sf-empty-btn svg {
    transition: transform 0.3s ease;
}

.sf-empty-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .sf-search-input-wrapper {
        flex-wrap: wrap;
    }

    .sf-search-input {
        width: 100%;
        padding-left: 48px;
    }

    .sf-search-icon {
        position: absolute;
        left: 16px;
    }

    .sf-search-input-wrapper {
        position: relative;
    }

    .sf-search-submit {
        width: 100%;
        justify-content: center;
        margin: 4px;
    }
}
