@charset "utf-8";

/* ===========================================
   New Posts Skin - Basic2 Theme
   Design System: Swiss Modernism + Trust
   =========================================== */

/* ---------------------------------------------
   Variables
   --------------------------------------------- */
:root {
    --new-primary: var(--theme-primary);
    --new-primary-light: var(--theme-primary-light);
    --new-text: #0F172A;
    --new-text-muted: #64748B;
    --new-border: #E2E8F0;
    --new-bg: #F8FAFC;
    --new-white: #FFFFFF;
    --new-success: #059669;
    --new-success-light: #DCFCE7;
    --new-purple: #7C3AED;
    --new-purple-light: #EDE9FE;
    --new-warning: #D97706;
    --new-warning-light: #FEF3C7;
    --new-danger: #DC2626;
    --new-radius: 12px;
    --new-radius-lg: 16px;
}

/* ---------------------------------------------
   Search Form
   --------------------------------------------- */
.new-search {
    background: var(--new-white);
    border-radius: var(--new-radius-lg);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--new-border);
    margin-bottom: 24px;
}

.new-search-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.new-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.new-filter {
    flex: 1;
    min-width: 150px;
}

.new-select,
.new-search select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--new-border);
    border-radius: var(--new-radius);
    background: var(--new-white);
    font-size: 14px;
    color: var(--new-text);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.new-select:focus,
.new-search select:focus {
    outline: none;
    border-color: var(--new-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-alpha-10);
}

.new-input-wrap {
    flex: 1;
}

.new-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--new-bg);
    border: 2px solid var(--new-border);
    border-radius: var(--new-radius);
    transition: all 0.2s ease;
}

.new-input-box:focus-within {
    border-color: var(--new-primary);
    background: var(--new-white);
    box-shadow: 0 0 0 3px var(--theme-primary-alpha-10);
}

.new-input-icon {
    width: 20px;
    height: 20px;
    margin-left: 16px;
    color: var(--new-text-muted);
    flex-shrink: 0;
}

.new-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--new-text);
}

.new-input:focus {
    outline: none;
}

.new-input::placeholder {
    color: var(--new-text-muted);
}

.new-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    margin: 4px;
    background: var(--theme-primary);
    color: var(--new-white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-submit:hover {
    background: var(--theme-primary-dark);
}

.new-submit svg {
    width: 18px;
    height: 18px;
}

/* ---------------------------------------------
   Header
   --------------------------------------------- */
.new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--new-text);
}

.new-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--new-text-muted);
}

.new-count svg {
    width: 20px;
    height: 20px;
    color: var(--new-primary);
}

.new-count strong {
    color: var(--new-text);
    font-weight: 700;
}

.new-delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--new-white);
    border: 1px solid var(--new-danger);
    border-radius: 8px;
    color: var(--new-danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-delete-btn:hover {
    background: var(--new-danger);
    color: var(--new-white);
}

.new-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------------------------------------------
   Select All
   --------------------------------------------- */
.new-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--new-bg);
    border-radius: var(--new-radius);
    margin-bottom: 16px;
}

.new-select-all label {
    font-size: 14px;
    color: var(--new-text-muted);
    cursor: pointer;
}

/* Checkbox Style */
.new-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--new-border);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    background: var(--new-white);
    transition: all 0.15s ease;
}

.new-checkbox:checked {
    background: var(--new-primary);
    border-color: var(--new-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.new-checkbox:hover {
    border-color: var(--new-primary);
}

/* ---------------------------------------------
   List
   --------------------------------------------- */
.new-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--new-white);
    border-radius: var(--new-radius);
    border: 1px solid var(--new-border);
    transition: all 0.2s ease;
}

.new-item:hover {
    border-color: var(--new-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.new-item-comment {
    background: var(--new-primary-light);
    border-color: var(--theme-primary-border);
}

.new-item-check {
    flex-shrink: 0;
}

.new-item-content {
    flex: 1;
    min-width: 0;
}

.new-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.new-badge-group {
    background: var(--new-success-light);
    color: var(--new-success);
}

.new-badge-group:hover {
    background: var(--new-success);
    color: var(--new-white);
}

.new-badge-board {
    background: var(--new-purple-light);
    color: var(--new-purple);
}

.new-badge-board:hover {
    background: var(--new-purple);
    color: var(--new-white);
}

.new-badge-comment {
    background: var(--new-warning-light);
    color: var(--new-warning);
}

.new-badge-comment svg {
    width: 12px;
    height: 12px;
}

.new-item-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--new-text);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-item-title:hover {
    color: var(--new-primary);
}

.new-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--new-text-muted);
}

.new-item-author,
.new-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-item-author svg,
.new-item-date svg {
    width: 14px;
    height: 14px;
}

.new-item-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--new-bg);
    border-radius: 8px;
    color: var(--new-text-muted);
    transition: all 0.2s ease;
}

.new-item:hover .new-item-arrow {
    background: var(--new-primary);
    color: var(--new-white);
}

.new-item-arrow svg {
    width: 18px;
    height: 18px;
}

/* ---------------------------------------------
   Empty State
   --------------------------------------------- */
.new-empty {
    padding: 80px 24px;
    text-align: center;
    background: var(--new-white);
    border-radius: var(--new-radius-lg);
    border: 1px solid var(--new-border);
}

.new-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #CBD5E1;
}

.new-empty-icon svg {
    width: 100%;
    height: 100%;
}

.new-empty-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--new-text);
}

.new-empty-text {
    margin: 0;
    font-size: 14px;
    color: var(--new-text-muted);
}

/* ---------------------------------------------
   Pagination
   --------------------------------------------- */
.new-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* ---------------------------------------------
   Responsive Design
   --------------------------------------------- */
@media (max-width: 768px) {
    #new_wrap {
        padding: 16px;
    }

    .new-search {
        padding: 16px;
    }

    .new-filters {
        flex-direction: column;
    }

    .new-filter {
        min-width: 100%;
    }

    .new-input-box {
        flex-wrap: wrap;
    }

    .new-submit {
        width: calc(100% - 8px);
        justify-content: center;
        margin: 4px;
    }

    .new-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .new-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .new-item-check {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .new-item {
        position: relative;
    }

    .new-item-arrow {
        display: none;
    }

    .new-item-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .new-item-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .new-item-author .sv {
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
    .new-item-badges {
        gap: 6px;
    }

    .new-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    .new-item-title {
        font-size: 15px;
    }
}

/* ---------------------------------------------
   Sideview (Member Info Popup)
   --------------------------------------------- */
.new-item-author .sv_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.new-item-author .sv_member {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--new-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.new-item-author .sv_member:hover {
    color: var(--new-primary);
}

.new-item-author .profile_img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.new-item-author .profile_img img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--new-border);
}

.new-item-author .sv {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 140px;
    margin-top: 8px;
    padding: 8px 0;
    background: var(--new-white);
    border: 1px solid var(--new-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.new-item-author .sv_wrap:hover .sv {
    display: block;
}

.new-item-author .sv a {
    display: block;
    padding: 8px 16px;
    color: var(--new-text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.new-item-author .sv a:hover {
    background: var(--new-bg);
    color: var(--new-primary);
}

.new-item-author .sv_nojs {
    display: none;
}

/* ---------------------------------------------
   Legacy Support
   --------------------------------------------- */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#new_sch {
    display: none;
}

/* Print Styles */
@media print {
    .new-search {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .new-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
