/* NLOG CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* 메뉴바 스타일 */
.nlog-menubar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nlog-menubar-title {
    font-size: 25px;
    font-weight: 600;
    color: #002291;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nlog-menubar-title:hover {
    color: #3340f8;
}

/* 검색 폼 */
.nlog-search {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.nlog-search select,
.nlog-search input[type="text"],
.nlog-search button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nlog-search select {
    background: #fff;
    color: #333;
    cursor: pointer;
    min-width: 80px;
}

.nlog-search select:hover {
    border-color: #999;
}

.nlog-search input[type="text"] {
    flex: 1;
    background: #fff;
    color: #333;
}

.nlog-search input[type="text"]:focus {
    outline: none;
    border-color: #002291;
    box-shadow: 0 0 4px rgba(0, 34, 145, 0.2);
}

.nlog-search button {
    background: #002291;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    min-width: 60px;
}

.nlog-search button:hover {
    background: #3340f8;
}

/* 로그인/로그아웃 버튼 */
.nlog-login,
.nlog-logout {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nlog-login {
    background: #002291;
    color: #fff;
}

.nlog-login:hover {
    background: #3340f8;
}

.nlog-logout {
    background: #f0f0f0;
    color: #333;
}

.nlog-logout:hover {
    background: #e0e0e0;
}

.nlog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 헤더 스타일 */
.nlog-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #ddd;
}

.nlog-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    letter-spacing: 2px;
}

.nlog-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.nlog-desc {
    font-size: 16px;
    color: #999;
    letter-spacing: 1px;
}

/* 리스트 스타일 */
.nlog-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 리스트 아이템 링크 */
.nlog-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 리스트 아이템 스타일 */
.nlog-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nlog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* 이미지 컨테이너 */
.nlog-item-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.nlog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nlog-item:hover .nlog-item-image img {
    transform: scale(1.05);
}

/* 콘텐츠 스타일 */
.nlog-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 토픽/카테고리 */
.nlog-item-topic {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nlog-item-topic1 {
    color: #002291;
    font-weight: 600;
}

.nlog-item-topic2 {
    color: #666;
}

/* 제목 */
.nlog-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 닉네임과 아이콘 */
.nlog-item-nick {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.nlog-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nlog-item-member {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.nlog-item-member img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 소개 텍스트 */
.nlog-item-text {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 테이블명 */
.nlog-item-table {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .nlog-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nlog-menubar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nlog-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .nlog-header h1 {
        font-size: 36px;
    }

    .nlog-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .nlog-item-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nlog-menubar {
        flex-direction: column;
        gap: 10px;
    }

    .nlog-menubar-title {
        width: 100%;
        text-align: center;
    }

    .nlog-search {
        flex-basis: 100%;
        max-width: 100%;
    }

    .nlog-search select {
        min-width: 60px;
    }

    .nlog-container {
        padding: 30px 15px;
    }

    .nlog-header {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .nlog-header h1 {
        font-size: 28px;
    }

    .nlog-subtitle {
        font-size: 16px;
    }

    .nlog-desc {
        font-size: 14px;
    }

    .nlog-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nlog-item-image {
        height: 200px;
    }

    .nlog-item-content {
        padding: 15px;
    }

    .nlog-item-title {
        font-size: 16px;
    }

    .nlog-item-nick {
        font-size: 12px;
    }

    .nlog-item-text {
        font-size: 12px;
    }

    .nlog-item-table {
        font-size: 11px;
    }
}

