/* ================================
   Blog Page Styles
   ================================ */

.blog-main {
    min-height: 100vh;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #22d3ee 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-title .title-icon {
    display: flex;
    color: #06b6d4;
    -webkit-text-fill-color: initial;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Tags */
.featured-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.tag-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.3);
}

.tag-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Article Card */
.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
}

.article-link {
    display: block;
}

.article-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 79, 207, 0.1));
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-darker);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #22d3ee;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tag {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-tag.cybersecurity {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.article-tag.tutorial {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.article-tag.beginner {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.article-tag.ctf {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.article-tag.tools {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.article-tag.news {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-tag.darkweb {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #06b6d4;
    transition: gap 0.3s ease;
}

.article-card:hover .read-more {
    gap: 12px;
}

/* Coming Soon Card */
.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.coming-soon-content {
    text-align: center;
    color: var(--text-muted);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.coming-soon h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    border-radius: var(--radius-xl);
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
}

.newsletter-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.newsletter-text p {
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    width: 280px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-darker);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Active Nav Link */
.nav-link.active {
    color: #22d3ee !important;
}

.nav-link.active::before {
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05)) !important;
}

/* ================================
   Article Page Styles
   ================================ */

.article-page {
    min-height: 100vh;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.article-header {
    margin-bottom: 40px;
}

.article-tags-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.article-page-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.article-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name-large {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Article Cover */
.article-cover {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 79, 207, 0.1));
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

/* Table of Contents */
.toc {
    padding: 28px;
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--glass-border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    color: #22d3ee;
}

.toc-list a:hover::before {
    background: #22d3ee;
    transform: scale(1.3);
}

/* Article Body */
.article-body {
    margin-bottom: 60px;
}

.article-body section {
    margin-bottom: 50px;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--glass-border);
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Article Figure (In-article images) */
.article-figure {
    margin: 40px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-darker);
}

.article-figure img {
    width: 100%;
    display: block;
}

.article-figure figcaption {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.warning-icon {
    flex-shrink: 0;
    color: #f87171;
}

.warning-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.warning-content strong {
    color: #f87171;
}

.info-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.info-icon {
    flex-shrink: 0;
    color: #22d3ee;
}

.info-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-content strong {
    color: #22d3ee;
}

.styled-list,
.numbered-list {
    margin: 24px 0;
    padding-left: 24px;
}

.styled-list li,
.numbered-list li {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.styled-list li strong,
.numbered-list li strong {
    color: var(--text-primary);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.tool-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    margin-bottom: 16px;
}

.tool-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Code Block */
.code-block {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 30px 0;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.code-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.copy-btn {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #22d3ee;
}

/* Article Actions */
.article-actions {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    color: var(--text-muted);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-4px);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.4);
    color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077b5;
}

.share-btn.copy-link:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

/* Author Card */
.author-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-xl);
}

.author-avatar-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.author-info-full h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-info-full p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.author-socials {
    display: flex;
    gap: 12px;
}

.author-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.author-social:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .blog-main,
    .article-page {
        padding: 100px 20px 60px;
    }
    
    .blog-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .article-page-title {
        font-size: 1.8rem;
    }
    
    .article-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-cover {
        height: 250px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

