/* ═══════════════════════════════════════════════════════════════════
   CERTACE BLOG STYLES
   Electric Blue Corporate Theme
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    padding: 16px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo-text span {
    color: var(--blue-500);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--white);
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: var(--gray-300);
    text-decoration: none;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--white);
}

.mobile-menu .mobile-cta {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    text-align: center;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG HERO
   ═══════════════════════════════════════════════════════════════════ */

.blog-hero {
    padding: 140px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG MAIN
   ═══════════════════════════════════════════════════════════════════ */

.blog-main {
    padding: 0 24px 80px;
}

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED POST
   ═══════════════════════════════════════════════════════════════════ */

.featured-post {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--blue-600);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.featured-content {
    padding-top: 20px;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: var(--blue-400);
}

.featured-excerpt {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-emoji {
    font-size: 100px;
    filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.3));
}

.read-more-btn {
    display: inline-block;
    margin-top: 16px;
    color: var(--blue-400);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.read-more-btn:hover {
    color: var(--blue-300);
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   POST META
   ═══════════════════════════════════════════════════════════════════ */

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.post-category {
    background: rgba(37, 99, 235, 0.2);
    color: var(--blue-400);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.post-date {
    font-size: 13px;
    color: var(--gray-500);
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.post-author {
    font-weight: 500;
}

.post-read-time {
    color: var(--gray-600);
}

/* ═══════════════════════════════════════════════════════════════════
   POSTS GRID
   ═══════════════════════════════════════════════════════════════════ */

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.post-card-image {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    padding: 30px;
    text-align: center;
}

.post-card-image .post-emoji {
    font-size: 60px;
}

.post-card-content {
    padding: 24px;
}

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

.post-card-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: var(--blue-400);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG CTA
   ═══════════════════════════════════════════════════════════════════ */

.blog-cta,
.article-cta {
    background: linear-gradient(135deg, var(--blue-900) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
}

.blog-cta h2,
.article-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.blog-cta p,
.article-cta p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.article-main {
    padding: 100px 24px 80px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--blue-400);
}

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 30px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
}

.author-avatar {
    font-size: 40px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.author-role {
    font-size: 13px;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE CONTENT
   ═══════════════════════════════════════════════════════════════════ */

.article-content {
    color: var(--gray-300);
    font-size: 17px;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 20px;
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin: 40px 0 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content strong {
    color: var(--white);
}

.article-content .score-image,
.article-content .article-image {
    margin: 30px 0;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.article-content .score-image img,
.article-content .article-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-content .image-caption {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--gray-500);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-section span {
    font-size: 14px;
    color: var(--gray-500);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.3);
}

.share-btn.linkedin {
    background: rgba(0, 119, 181, 0.2);
    color: #0077b5;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════════ */

.related-section {
    max-width: 800px;
    margin: 60px auto;
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.related-emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-card h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.related-card h3 a:hover {
    color: var(--blue-400);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.blog-footer {
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    padding: 60px 24px 30px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-emblem {
    font-size: 24px;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--blue-400);
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-600);
}

/* ═══════════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════════ */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}

.error-content {
    text-align: center;
}

.error-emoji {
    font-size: 80px;
    margin-bottom: 24px;
    display: block;
}

.error-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.error-content p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .featured-image {
        display: none;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cta,
    .article-cta {
        padding: 40px 30px;
    }
    
    .blog-cta h2,
    .article-cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    /* Header Mobile */
    .blog-header {
        padding: 12px 0;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo-emblem {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .header-nav {
        gap: 12px;
    }
    
    .header-nav-link {
        display: none;
    }
    
    .btn-primary-small {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Blog Hero Mobile */
    .blog-hero {
        padding: 100px 16px 40px;
    }
    
    .blog-hero h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .blog-hero p {
        font-size: 15px;
    }
    
    /* Blog Main Mobile */
    .blog-main {
        padding: 0 16px 60px;
    }
    
    /* Featured Post Mobile */
    .featured-post {
        padding: 24px 20px;
        margin-bottom: 40px;
    }
    
    .featured-badge {
        top: 12px;
        left: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .featured-content {
        padding-top: 24px;
    }
    
    .featured-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .featured-excerpt {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .post-meta {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .post-category {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .post-footer {
        gap: 12px;
        font-size: 12px;
    }
    
    .read-more-btn {
        font-size: 14px;
    }
    
    /* Section Title Mobile */
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Post Cards Mobile */
    .posts-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .post-card-image {
        padding: 24px;
    }
    
    .post-card-image .post-emoji {
        font-size: 48px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .post-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .post-card-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    /* CTA Mobile */
    .blog-cta,
    .article-cta {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .blog-cta h2,
    .article-cta h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .blog-cta p,
    .article-cta p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    /* Article Page Mobile */
    .article-main {
        padding: 80px 16px 60px;
    }
    
    .back-link {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .article-title {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .article-author {
        padding: 16px;
        gap: 12px;
    }
    
    .author-avatar {
        font-size: 32px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-role {
        font-size: 12px;
    }
    
    /* Article Content Mobile */
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .article-content .lead {
        font-size: 17px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 32px 0 16px;
    }
    
    .article-content p {
        margin-bottom: 16px;
    }
    
    .article-content ul {
        padding-left: 20px;
        margin: 16px 0;
    }
    
    .article-content li {
        margin-bottom: 10px;
    }
    
    /* Score Image Mobile */
    .article-content .score-image,
    .article-content .article-image {
        margin: 24px 0;
        padding: 16px;
        border-radius: 10px;
    }
    
    .article-content .score-image img,
    .article-content .article-image img {
        border-radius: 6px;
    }
    
    .article-content .image-caption {
        margin-top: 12px;
        font-size: 13px;
    }
    
    /* Article Footer Mobile */
    .article-footer {
        margin-top: 40px;
        padding-top: 24px;
    }
    
    .share-section {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .share-section span {
        font-size: 13px;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .share-btn {
        flex: 1;
        text-align: center;
    }
    
    /* Related Posts Mobile */
    .related-section {
        margin: 40px auto;
    }
    
    .related-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .related-card {
        padding: 20px;
    }
    
    .related-emoji {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .related-card h3 {
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .blog-footer {
        padding: 40px 16px 24px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo .logo-text {
        font-size: 18px;
    }
    
    .footer-brand p {
        font-size: 13px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-col a {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 16px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Error Page Mobile */
    .error-page {
        padding: 100px 16px;
    }
    
    .error-emoji {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .error-content h1 {
        font-size: 24px;
    }
    
    .error-content p {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .blog-hero h1 {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .blog-cta h2,
    .article-cta h2 {
        font-size: 18px;
    }
}
