
/* Blog Article Styles - RateYourCyber */
/* Version 1.0 - December 2025 */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --secondary: #f1f5f9;
    --accent: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 32px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0f172a;
    border-radius: 1px;
}

.nav-btn {
    background: #0f172a;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
}

/* Breadcrumb Bar */
.blog-breadcrumb-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 0;
    text-align: center;
}

.blog-breadcrumb {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.blog-breadcrumb:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.blog-breadcrumb i {
    margin-right: 8px;
}

/* Navigation Links Bar */
.blog-nav-bar {
    background: white;
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-nav-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.blog-nav-bar a:hover {
    color: var(--primary);
}

.blog-nav-bar .separator {
    margin: 0 16px;
    color: var(--border-color);
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.blog-article {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 60px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.blog-article h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.blog-article h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-article p {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 17px;
}

article ul {
    list-style-type: disc;
    margin-bottom: 24px;
    padding-left: 24px;
}

article li {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 17px;
}

article strong {
    color: var(--text-primary);
    font-weight: 600;
}

article img {
    width: 100%;
    border-radius: 12px;
    margin: 32px 0;
}

/* Stat Box */
.stat-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 32px 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-box .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-box .stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Highlight Box */
.highlight-box {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 28px;
    margin: 32px 0;
}

.highlight-box h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

/* Blog Content Direct Styles */
.blog-content p {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-featured-image {
    width: 100%;
    border-radius: 12px;
    margin: 0 0 40px 0;
}

/* Blog CTA */
.blog-cta {
    background: #0f172a;
    color: white !important;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 60px;
}

.blog-cta h3 {
    color: white !important;
    margin-bottom: 16px;
    font-size: 24px;
    margin-top: 0;
}

.blog-cta p {
    color: white !important;
    opacity: 0.9;
    margin-bottom: 24px;
}

.blog-cta strong,
.blog-cta ul,
.blog-cta li {
    color: white !important;
}

.blog-cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary) !important;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 8px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
}

/* Blog Navigation */
.blog-navigation {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.back-to-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
}

.back-to-home i {
    margin-right: 8px;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h3,
.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column p {
    color: #94a3b8;
    line-height: 1.6;
}

.social-links {
    display: flex;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 12px;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .blog-title {
        font-size: 36px;
    }
    
    .blog-article {
        padding: 40px 24px;
    }
    
    .blog-content {
        padding: 40px 16px;
    }
    
    .header-container {
        flex-direction: column;
        padding: 16px 24px;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 8px 16px;
    }

    .stat-box .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 28px;
    }
    
    .blog-article h2 {
        font-size: 24px;
    }
    
    .blog-article {
        padding: 32px 20px;
    }

    .stat-box .stat-number {
        font-size: 32px;
    }
}
