﻿/* =========================================================
   하부기록 BLOG
   ASP.NET MVC 5 / .NET Framework 4.6.2
========================================================= */

.blog-page {
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    padding: 0 20px 70px;
    box-sizing: border-box;
    color: #222;
    font-size: 15px;
}


/* =========================================================
   HEADER
========================================================= */

.blog-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 8px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 55px;
    padding: 0 2px;
    box-sizing: border-box;
}


/* LOGO */

.blog-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
    text-decoration: none;
}

    .blog-logo a:hover {
        color: #111;
        text-decoration: none;
    }


.logo-mark {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}


.logo-text {
    display: flex;
    flex-direction: column;
}


.logo-title {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}


.logo-subtitle {
    margin-top: 3px;
    color: #999;
    font-size: 12px;
    line-height: 1.2;
}


/* =========================================================
   NAV
========================================================= */

.blog-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}


    .blog-nav .nav-link {
        color: #777;
        font-size: 14px;
        text-decoration: none;
    }


        .blog-nav .nav-link:hover {
            color: #111;
        }


        .blog-nav .nav-link.active {
            color: #111;
            font-weight: 600;
        }


/* 검색 아이콘 */

.nav-search-button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}


    .nav-search-button:hover {
        border-color: #aaa;
        color: #111;
    }


/* 글쓰기 */

.header-write-button {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    background: #111;
    color: #fff !important;
    font-size: 13px;
    text-decoration: none;
}


    .header-write-button:hover {
        background: #333;
        color: #fff !important;
    }


/* =========================================================
   INTRO
========================================================= */

.blog-intro {
    margin-bottom: 42px;
}


.intro-label {
    margin-bottom: 10px;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.blog-intro h1 {
    margin: 0 0 10px;
    color: #111;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.3;
}


.blog-intro p {
    margin: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   TAG SEARCH RESULT
========================================================= */

.tag-search-result {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}


.tag-search-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


.tag-search-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}


    .tag-search-title i {
        color: #777;
        font-size: 14px;
    }


.tag-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.search-result-tag {
    padding: 5px 9px;
    border-radius: 20px;
    background: #e5e5e5;
    color: #111;
    font-size: 13px;
}


.all-post-link {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 13px;
    text-decoration: none;
}


    .all-post-link:hover {
        border-color: #111;
        background: #111;
        color: #fff;
        text-decoration: none;
    }


/* =========================================================
   POST LIST HEADER
========================================================= */

.post-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}


.post-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
}


.post-count-title {
    color: #111;
    font-size: 15px;
    font-weight: 700;
}


.post-count-number {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}


.post-count-unit {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   SEARCH
========================================================= */

.blog-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}


.blog-search-input {
    width: 220px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
}


    .blog-search-input:focus-within {
        border-color: #aaa;
    }


    .blog-search-input i {
        color: #999;
        font-size: 13px;
    }


    .blog-search-input input {
        width: 100%;
        height: 100%;
        margin-left: 7px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #333;
        font-size: 14px;
    }


        .blog-search-input input::placeholder {
            color: #999;
        }


.blog-search-button {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}


    .blog-search-button:hover {
        background: #333;
    }


/* =========================================================
   POST LIST
========================================================= */

.post-list {
    border-top: 1px solid #e5e5e5;
}


.post-item {
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 5px 21px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e5e5;
}


    .post-item:hover {
        background: #fcfcfc;
    }


.post-item-main {
    min-width: 0;
    flex: 1;
}


/* =========================================================
   DATE
========================================================= */

.post-date {
    margin-bottom: 7px;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   TITLE
========================================================= */

.post-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.5;
}


    .post-title a {
        color: #222;
        text-decoration: none;
    }


        .post-title a:hover {
            color: #666;
            text-decoration: underline;
        }


/* =========================================================
   AUTHOR
========================================================= */

.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #888;
    font-size: 13px;
}


.author-dot {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    background: #222;
}


/* =========================================================
   TAGS
========================================================= */

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}


.post-tag {
    color: #63835d;
    font-size: 13px;
    text-decoration: none;
}


    .post-tag:hover {
        color: #40573d;
        text-decoration: underline;
    }


.all-tags-link {
    padding-left: 9px;
    border-left: 1px solid #ddd;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}


    .all-tags-link:hover {
        color: #444;
        text-decoration: none;
    }


/* =========================================================
   DETAIL ARROW
========================================================= */

.post-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-size: 17px;
    text-decoration: none;
    opacity: 0;
    transition: all 0.15s ease;
}


.post-item:hover .post-arrow {
    opacity: 1;
}


.post-arrow:hover {
    border-color: #111;
    color: #111;
    text-decoration: none;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-post {
    padding: 80px 0;
    text-align: center;
    color: #999;
}


.empty-icon {
    margin-bottom: 15px;
    font-size: 34px;
}


.empty-post h3 {
    margin: 0 0 8px;
    color: #666;
    font-size: 17px;
}


.empty-post p {
    margin: 0;
    color: #999;
    font-size: 14px;
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}


.pagination-number,
.pagination-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    text-decoration: none;
}


    .pagination-number:hover,
    .pagination-arrow:hover {
        border-color: #aaa;
        color: #111;
        text-decoration: none;
    }


    .pagination-number.active {
        border-color: #111;
        background: #111;
        color: #fff;
    }


    .pagination-arrow.disabled {
        color: #ccc;
        pointer-events: none;
    }


/* =========================================================
   BOTTOM WRITE
========================================================= */

.bottom-write {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}


.bottom-write-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}


    .bottom-write-button:hover {
        background: #333;
        color: #fff;
        text-decoration: none;
    }


/* =========================================================
   FOOTER
========================================================= */

.blog-footer {
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    padding: 25px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 12px;
}


.footer-links {
    display: flex;
    gap: 18px;
}


    .footer-links a {
        color: #888;
        font-size: 12px;
        text-decoration: none;
    }


        .footer-links a:hover {
            color: #444;
        }


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .blog-page {
        padding: 0 16px 50px;
    }


    .blog-header {
        height: 68px;
        margin-bottom: 42px;
    }


    .blog-nav {
        gap: 9px;
    }


        .blog-nav .nav-link {
            display: none;
        }


    .header-write-button {
        height: 32px;
        padding: 0 11px;
        font-size: 12px;
    }


    .blog-intro {
        margin-bottom: 32px;
    }


        .blog-intro h1 {
            font-size: 27px;
        }


        .blog-intro p {
            font-size: 14px;
        }


    .tag-search-result {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }


    .tag-search-left {
        width: 100%;
    }


    .all-post-link {
        align-self: flex-end;
    }


    .post-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }


    .blog-search-form {
        width: 100%;
    }


    .blog-search-input {
        width: auto;
        flex: 1;
    }


    .post-item {
        min-height: 105px;
        gap: 10px;
        padding: 18px 3px 18px 0;
    }


    .post-title {
        font-size: 17px;       
    }


    .post-date {
        font-size: 12px;
    }


    .post-author {
        font-size: 12px;
    }


    .post-tag {
        font-size: 12px;
    }


    .all-tags-link {
        font-size: 12px;
    }


    .post-arrow {
        width: 30px;
        height: 30px;
        opacity: 1;
    }


    .blog-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 20px;
    }


    .footer-links {
        gap: 12px;
    }
}
