/* ================================================================
   nocoding.make.cab - Article Styles
   Dark theme matching the main landing page
   ================================================================ */

/* ── Global Overrides ── */
body {
    background: #0B0F19 !important;
    color: #F0F0F5 !important;
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Override twentytwentyfive theme backgrounds */
.wp-site-blocks,
.wp-block-group,
.wp-block-template-part,
body .is-layout-constrained {
    background: transparent !important;
    color: #F0F0F5 !important;
}

/* ── Custom Header: 노코딩시대 ── */
.nc-custom-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.12);
}

.nc-custom-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nc-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.nc-header-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #9D4EDD, #00F5D4);
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.nc-header-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #F0F0F5;
    letter-spacing: -0.5px;
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
}

.nc-header-logo:hover .nc-header-logo-text {
    color: #00F5D4;
}

.nc-header-logo:hover .nc-header-logo-icon {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.nc-header-logo-icon {
    transition: transform 0.3s ease;
}

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

.nc-header-nav-link,
.nc-header-nav-home {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8B8FA3;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 100px;
    transition: all 0.25s ease;
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
}

.nc-header-nav-link:hover,
.nc-header-nav-home:hover {
    color: #F0F0F5;
    background: rgba(255, 255, 255, 0.06);
}

.nc-header-nav-link.nc-header-nav-active {
    color: #00F5D4;
    background: rgba(0, 245, 212, 0.08);
}

.nc-header-nav-home {
    color: #00F5D4;
    border: 1px solid rgba(0, 245, 212, 0.25);
    margin-left: 8px;
}

.nc-header-nav-home:hover {
    background: rgba(0, 245, 212, 0.12);
    color: #00F5D4;
    border-color: rgba(0, 245, 212, 0.4);
}

/* Hide default block theme header */
header.wp-block-template-part,
.wp-block-template-part[data-type="header"] .wp-block-site-title {
    display: none !important;
}

@media (max-width: 600px) {
    .nc-custom-header-inner {
        height: 56px;
        padding: 0 16px;
    }
    .nc-header-logo-text {
        font-size: 16px;
    }
    .nc-header-nav-link,
    .nc-header-nav-home {
        padding: 5px 10px;
        font-size: 12px;
    }
    .nc-header-nav {
        gap: 2px;
    }
}

/* ── Main Content Area ── */
main,
.wp-block-post-content,
.entry-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
}

/* ── Post Title ── */
.wp-block-post-title,
h1.entry-title,
h1 {
    font-size: clamp(28px, 5vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #F0F0F5 !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15) !important;
}

/* ── Post Meta ── */
.wp-block-post-date,
.wp-block-post-terms,
.post-meta,
time {
    color: #8B8FA3 !important;
    font-size: 14px !important;
}

.wp-block-post-terms a {
    color: #00F5D4 !important;
    background: rgba(0, 245, 212, 0.08) !important;
    padding: 3px 12px !important;
    border-radius: 100px !important;
    border: 1px solid rgba(0, 245, 212, 0.2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ── Article Wrapper ── */
.nc-article-wrapper {
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #F0F0F5;
    line-height: 1.85;
    font-size: 16px;
}

.nc-article-wrapper p {
    margin-bottom: 20px;
    color: #C0C4D8;
    font-size: 16px;
    line-height: 1.85;
}

.nc-article-wrapper .nc-article-lead {
    font-size: 18px;
    color: #D8DBE8;
    line-height: 1.9;
    padding: 24px;
    background: rgba(157, 78, 221, 0.06);
    border-left: 3px solid #9D4EDD;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
}

/* ── Headings ── */
.nc-article-wrapper h2 {
    font-size: 24px;
    font-weight: 800;
    color: #F0F0F5;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 245, 212, 0.12);
    position: relative;
}

.nc-article-wrapper h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00F5D4, #9D4EDD);
    border-radius: 2px;
}

.nc-article-wrapper h3 {
    font-size: 19px;
    font-weight: 700;
    color: #E8EAF0;
    margin-top: 32px;
    margin-bottom: 14px;
}

/* ── Lists ── */
.nc-article-wrapper ul,
.nc-article-wrapper ol {
    margin: 16px 0 24px 0;
    padding-left: 0;
}

.nc-article-wrapper ul li,
.nc-article-wrapper ol li {
    padding: 8px 0 8px 24px;
    color: #C0C4D8;
    position: relative;
    list-style: none;
    line-height: 1.8;
}

.nc-article-wrapper ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #00F5D4, #9D4EDD);
    border-radius: 50%;
}

.nc-article-wrapper ol {
    counter-reset: nc-counter;
}

.nc-article-wrapper ol li {
    counter-increment: nc-counter;
}

.nc-article-wrapper ol li::before {
    content: counter(nc-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: rgba(0, 245, 212, 0.12);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #00F5D4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Strong / Links ── */
.nc-article-wrapper strong {
    color: #F0F0F5;
    font-weight: 700;
}

.nc-article-wrapper a {
    color: #00F5D4;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 245, 212, 0.3);
    transition: all 0.3s ease;
}

.nc-article-wrapper a:hover {
    color: #9D4EDD;
    border-bottom-color: rgba(157, 78, 221, 0.5);
}

/* ── CTA Box ── */
.nc-article-wrapper .nc-article-cta {
    margin-top: 48px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 245, 212, 0.08));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    text-align: center;
}

.nc-article-wrapper .nc-article-cta p {
    color: #D8DBE8;
    font-size: 16px;
    margin-bottom: 0;
}

.nc-article-wrapper .nc-article-cta a {
    color: #00F5D4;
    font-weight: 700;
    border-bottom: 2px solid #00F5D4;
    padding-bottom: 2px;
}

.nc-article-wrapper .nc-article-cta a:hover {
    color: #9D4EDD;
    border-bottom-color: #9D4EDD;
}

/* ── Featured Image ── */
.wp-block-post-featured-image img,
.wp-post-image {
    border-radius: 16px !important;
    border: 1px solid rgba(157, 78, 221, 0.15) !important;
    margin-bottom: 32px !important;
}

/* ── Footer ── */
footer,
.wp-block-template-part[data-type="footer"] {
    background: rgba(5, 5, 10, 0.9) !important;
    color: #8B8FA3 !important;
    border-top: 1px solid rgba(157, 78, 221, 0.1) !important;
}

footer a {
    color: #00F5D4 !important;
}

/* ── Comments Section ── */
.wp-block-comments,
.comments-area {
    color: #C0C4D8 !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0F19;
}

::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 78, 221, 0.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nc-article-wrapper .nc-article-lead {
        font-size: 16px;
        padding: 20px;
    }

    .nc-article-wrapper h2 {
        font-size: 21px;
        margin-top: 36px;
    }

    .nc-article-wrapper h3 {
        font-size: 17px;
    }

    main,
    .wp-block-post-content,
    .entry-content {
        padding: 24px 16px !important;
    }
}
