/* ===================================
   MODERN DARK THEME STYLES
   Single Post & Author Pages
   Inspired by deltaexploits.gg design
   =================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0a0f;
    --dark-card: #13131a;
    --dark-card-hover: #1a1a24;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b2;
    --text-muted: #6b6b7e;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --success-green: #10b981;
}

/* ===================================
   SINGLE POST PAGE STYLES
   =================================== */

.single-post-wrapper {
    background: var(--dark-bg);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Hero Section */
.post-hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(180deg, #13131a 0%, #0a0a0f 100%);
    overflow: hidden;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.95) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-purple);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Post Title */
.post-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Post Meta */
.post-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.meta-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.meta-item a:hover {
    color: var(--accent-purple);
}

/* Content Section */
.single-post-content {
    padding: 60px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.post-main-content {
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.content-inner {
    padding: 48px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.content-inner p {
    margin-bottom: 24px;
}

.content-inner h2,
.content-inner h3,
.content-inner h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
}

.content-inner h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.content-inner h3 {
    font-size: 1.5rem;
}

.content-inner h4 {
    font-size: 1.25rem;
}

.content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.content-inner ul,
.content-inner ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.content-inner li {
    margin-bottom: 12px;
}

.content-inner a {
    color: var(--accent-purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.content-inner a:hover {
    border-bottom-color: var(--accent-purple);
}

.content-inner blockquote {
    border-left: 4px solid var(--accent-purple);
    padding: 20px 24px;
    margin: 32px 0;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.content-inner code {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content-inner pre {
    background: #1a1a24;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.content-inner pre code {
    background: none;
    padding: 0;
    color: #a0a0b2;
}

/* Tags Section */
.post-tags-section {
    padding: 32px 48px;
    border-top: 1px solid var(--border-color);
}

.post-tags-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.tags-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-item:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.tag-item svg {
    width: 14px;
    height: 14px;
}

/* Author Bio Card */
.author-bio-card {
    padding: 32px 48px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.author-bio-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    color: var(--text-secondary);
    font-size: 14px;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 32px 48px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-4px);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-next .nav-link {
    text-align: right;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Info */
.quick-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.info-value a {
    color: var(--accent-purple);
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-post-item:hover {
    background: rgba(139, 92, 246, 0.05);
}

.related-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.related-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.2);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.share-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    transform: translateY(-2px);
}

.share-btn.copy-link {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.share-btn.copy-link:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* ===================================
   AUTHOR PAGE STYLES
   =================================== */

.author-page-wrapper {
    background: var(--dark-bg);
    min-height: 100vh;
}

/* Author Hero */
.author-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #13131a 0%, #0a0a0f 100%);
    overflow: hidden;
}

.author-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.author-hero-content {
    position: relative;
    z-index: 1;
}

.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-avatar-large {
    position: relative;
    margin-bottom: 32px;
}

.author-avatar-large img {
    border-radius: 50%;
    border: 5px solid var(--dark-card);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.author-details {
    width: 100%;
}

.author-name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-bio {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Author Stats */
.author-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stat-item svg {
    color: var(--accent-purple);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author Social */
.author-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Author Posts Section */
.author-posts-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title svg {
    color: var(--accent-purple);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Modern Posts Grid */
.posts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.modern-post-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.modern-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.modern-post-card:hover .post-card-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modern-post-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay svg {
    color: white;
}

.post-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-meta svg {
    color: var(--accent-purple);
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--accent-purple);
}

.post-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    gap: 12px;
}

.post-tags-mini {
    display: flex;
    gap: 8px;
}

.tag-mini {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: 600;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 100px 20px;
}

.no-posts-icon {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.no-posts-found h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-posts-found p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.modern-pagination .nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-pagination a,
.modern-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.modern-pagination a:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.modern-pagination .current {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 80px 0 40px;
    }
    
    .content-inner {
        padding: 32px 24px;
    }
    
    .post-tags-section,
    .author-bio-card,
    .post-navigation {
        padding: 24px;
    }
    
    .author-bio-header {
        flex-direction: column;
        text-align: center;
    }
    
    .view-profile-btn {
        align-self: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .posts-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .author-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .post-hero-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .content-inner {
        font-size: 16px;
        padding: 24px 16px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Comments Section Styling */
.comments-section {
    padding: 32px 48px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .comments-section {
        padding: 24px;
    }
}