/* ===== Blog Page Styles ===== */

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* Filter Tabs */
.blog-filter {
    padding: 24px 0;
    position: sticky;
    top: 70px;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-tab.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-badge.labor {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.blog-badge.housing {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.blog-badge.consumer {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.blog-badge.traffic {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.blog-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Blog CTA */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #3b82f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 24px;
    overflow-y: auto;
}

.blog-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 48px auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    border-color: #3b82f6;
}

.modal-header {
    margin-bottom: 32px;
    padding-right: 48px;
}

.modal-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

.modal-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0 10px;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul,
.modal-body ol {
    line-height: 1.9;
    margin-bottom: 16px;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #fff;
    font-weight: 600;
}

.modal-footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tag {
    font-size: 0.8125rem;
    color: #60a5fa;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 100px;
}

.modal-cta {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Modal Body Post Styles (상세페이지 디자인) */
.modal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body h2:first-of-type {
    margin-top: 32px;
}

/* Story Box (사연) */
.modal-body .story-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    border-left: 4px solid;
}

.modal-body .story-box.labor {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.modal-body .story-box.housing {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.modal-body .story-box.consumer {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.modal-body .story-box.traffic {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.modal-body .story-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}

.modal-body .story-box p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.8;
}

/* Info Box */
.modal-body .info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
}

.modal-body .info-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 16px;
    font-size: 1rem;
}

.modal-body .info-box p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body .info-box p:last-child {
    margin-bottom: 0;
}

.modal-body .info-box ul {
    margin: 0;
    padding-left: 20px;
}

.modal-body .info-box li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body .info-box li:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.modal-body .warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
}

.modal-body .warning-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 1rem;
}

.modal-body .warning-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Tip Box */
.modal-body .tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
}

.modal-body .tip-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 16px;
    font-size: 1rem;
}

.modal-body .tip-box p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body .tip-box ul {
    margin: 0;
    padding-left: 20px;
}

.modal-body .tip-box li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body .tip-box li:last-child {
    margin-bottom: 0;
}

/* Post Disclaimer */
.modal-body .post-disclaimer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 48px 0 0;
}

.modal-body .post-disclaimer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.modal-body .post-disclaimer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Post CTA in Modal */
.modal-body .post-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 20px;
    margin-top: 48px;
}

.modal-body .post-cta h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}

.modal-body .post-cta > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.modal-body .post-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-body .post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-body .post-cta-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.modal-body .post-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}

.modal-body .post-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body .post-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Blog Card Cursor */
.blog-card {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    /* 모바일 메뉴 스타일 */
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        flex-direction: column;
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        padding-bottom: 100px;
        gap: 0.5rem;
        z-index: 99;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active .nav-divider {
        display: none;
    }

    .nav.scrolled .nav-links.active {
        top: 52px;
        height: calc(100vh - 52px);
        height: calc(100dvh - 52px);
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-mobile-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-mobile-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .blog-hero {
        padding: 120px 0 40px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .filter-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Modal Responsive */
    .modal-content {
        margin: 24px auto;
        padding: 24px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-cta {
        flex-direction: column;
    }
}

/* Modal AdFit */
.modal-adfit {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
