* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(55, 53, 53);
}

.profile-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-button {
    background: #e3e3e5;
    color: #333;
}

.profile-button:hover {
    background: #b1b1b2;
}



/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 400px);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.blog-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-author {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: #f3f4f6;
    border-color: #0f0f0f;
}

.page-btn.active {
    background: #6e6f70;
    color: white;
    border-color: #535454;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #9ca3af;
}

/* Footer */
footer {
    background: #2c2c2d;
    color: #e5e7eb;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ============================================
   cancel button 상단 고정
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* modal header- fixted top */
.modal-header {
    position: sticky;
    top: 0;
    padding: 2rem 4rem 2rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    padding-right: 1rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.modal-meta-item {
    color: #6b7280;
    font-size: 0.875rem;
}

/* cancle button- fixed-top*/
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 11;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 2rem;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.modal-image .icon {
    font-size: 5rem;
}

.modal-text p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-text li {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Write Modal */
.write-modal-content {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #1d4ed8;
}

/* Profile Modal */
.profile-content {
    text-align: center;
}

.profile-picture {
    width: 120px;
    height: 120px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-image: url("/picture/profile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1rem;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.profile-bio {
    text-align: left;
    margin: 2rem 0;
}

.profile-bio h3 {
    margin-bottom: 1rem;
    color: #333;
}

.profile-bio p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.875rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.2);
}

/* Code Block */
.code-block {
    position: relative;
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block button.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.3s ease;
}

.code-block button.copy-btn:hover {
    background-color: #004999;
}

.code-block button.copied {
    background-color: #28a745 !important;
}

/* scrollbar style */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* 블로그 내 컨텐츠 */
 /* ===========================
   공통 컨테이너 스타일
=========================== */
.container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.8;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }
}

/* ===========================
   섹션 스타일
=========================== */
.section {
    margin-bottom: 60px;
}

.section h3 {
    font-size: 1.8em;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0 30px 0;
}

.section p {
    color: #4b5563;
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.section strong {
    color: #1f2937;
    font-weight: 600;
}

/* ===========================
   리스트 스타일
=========================== */
.section ul,
.section ol {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.section ul li,
.section ol li {
    /* padding: 12px 0; */
    padding-left: 24px;
    position: relative;
    color: #4b5563;
    /* line-height: 1.7; */
}

.section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.section ol {
    counter-reset: list-counter;
}

.section ol li {
    counter-increment: list-counter;
}

.section ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

/* ===========================
   소개 / 인트로
=========================== */
.intro {
    margin-bottom: 60px;
}

.intro p {
    font-size: 1.15em;
    color: #374151;
    line-height: 1.9;
}

/* ===========================
   강조 박스 / 예제 블록
=========================== */
.highlight-box,
.example-block,
.insight-block {
    padding: 24px 28px;
    margin: 30px 0;
    font-size: 1.05em;
    line-height: 1.8;
    color: #374151;
}

.highlight-box {
    background: #f9fafb;
    border-left: 3px solid #111827;
}

.example-block {
    background: #f9fafb;
    border-left: 3px solid #111827;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.example-block strong {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #111827;
}

.insight-block {
    background: #f9fafb;
    border-left: 3px solid #111827;
    font-style: italic;
}

/* ===========================
   구분선 / 디바이더
=========================== */
.divider {
    width: 50px;
    height: 3px;
    background: #111827;
    margin: 50px 0;
}

/* ===========================
   섹션 헤더 (DIKW 스타일)
=========================== */
.section-header {
    margin-bottom: 30px;
}

.section-header::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 30px;
}

.section-number {
    display: inline-block;
    font-size: 0.9em;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-header h3 {
    font-size: 1.05em;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}




/* 미니멀 테이블 스타일 */
.example-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin: 20px 0;
}

.example-block th, 
.example-block td {
    padding: 10px 12px;
    text-align: left;
}

.example-block thead th {
    border-bottom: 2px solid #111827;
    color: #111827;
    font-weight: 600;
}

.example-block tbody tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.example-block td {
    color: #4b5563;
}


/* ===========================
   리스트 스타일 (ul & ol) 
=========================== */
.section ul,
.section ol {
    padding: 15px 25px;       
    margin: 20px 0;            
    background-color: #f3f4f6; 
    border-radius: 8px;         
}

.section ul li,
.section ol li {
    position: relative;
    padding: 6px 0 6px 30px;  
    color: #374151;
    line-height: 1.5;
}

/* ul 커스텀 심볼 */
.section ul li::before {
    content: '•';
    position: absolute;
    left: 10px;                
    color: gray;
    font-size: 1em;
}

/* ol 커스텀 숫자 스타일 */
.section ol {
    counter-reset: list-counter;
}

.section ol li {
    counter-increment: list-counter;
}

.section ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 5px;                 
    color:  gray;
    font-weight: 600;
}




/* ============================================
   반응형 디자인
   ============================================ */

/* tablet */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.25rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* modal 반응형 */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1.5rem 3.5rem 1.5rem 1.5rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 1.25rem;
        right: 1.25rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-image {
        height: 150px;
        font-size: 4rem;
    }

    .modal-image .icon {
        font-size: 4rem;
    }

    .write-modal-content {
        padding: 1.5rem;
    }

    .profile-stats {
        gap: 1.5rem;
        flex-direction: column;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .code-block {
        padding: 12px;
        font-size: 12px;
    }

    .code-block code {
        font-size: 12px;
    }

/* test */
   .section h3 {
        font-size: 1.5em;
    }
    .section-header h2{
        font-size: 1.5em;
    }

}

/* modile (480px 이하) */
@media (max-width: 480px) {
    nav {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .profile-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    main {
        padding: 1rem 0.75rem;
    }

    .blog-header h1 {
        font-size: 1.75rem;
    }

    .blog-header p {
        font-size: 0.95rem;
    }

    .blog-grid {
        gap: 1rem;
    }

    .blog-card {
        border-radius: 8px;
    }

    .blog-image {
        height: 150px;
        font-size: 3rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    /* 모달 모바일 반응형 */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        width: 100%;
        border-radius: 8px;
    }

    .modal-header {
        padding: 1rem 3rem 1rem 1rem;
        border-radius: 8px 8px 0 0;
    }

    .modal-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .modal-meta {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.75rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-image {
        height: 120px;
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .modal-image .icon {
        font-size: 3rem;
    }

    .modal-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .write-modal-content {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 150px;
    }

    .submit-button {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-title {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .profile-bio {
        margin: 1.5rem 0;
    }

    .profile-bio h3 {
        font-size: 1rem;
    }

    .profile-bio p {
        font-size: 0.85rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .social-link {
        font-size: 1.25rem;
    }

    .code-block {
        padding: 10px;
        margin: 15px 0;
    }

    .code-block code {
        font-size: 11px;
    }

    .code-block button.copy-btn {
        padding: 4px 8px;
        font-size: 0.75em;
        top: 8px;
        right: 8px;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .footer-content {
        padding: 2rem 1rem 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }
}

/* de 데스크톱 (1200px 이상) */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 900px;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-body {
        padding: 2.5rem;
    }

    .modal-image {
        height: 250px;
    }

    .modal-text p {
        font-size: 1.05rem;
        line-height: 1.9;
    }
}


