/* SCNU 공통 컴포넌트 스타일 */
/* 인디고플랫폼 스타일을 참고한 공통 컴포넌트 */

/* ===== 페이지 헤더 ===== */
.scnu-page-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.scnu-page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.scnu-page-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== 검색 섹션 ===== */
.scnu-search-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.scnu-search-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scnu-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.scnu-search-category {
    min-width: 120px;
    flex-shrink: 0;
}

.scnu-search-category select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.scnu-search-category select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.scnu-search-input {
    flex: 1;
    min-width: 200px;
}

.scnu-search-input input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.scnu-search-input input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.scnu-search-input input::placeholder {
    color: #999;
}

.scnu-search-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== 버튼 스타일 ===== */
.scnu-btn-primary {
    background: #2a5298;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.scnu-btn-primary:hover {
    background: #1e3c72;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
    color: white;
    text-decoration: none;
}

.scnu-btn-secondary {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.scnu-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
    text-decoration: none;
}

.scnu-btn-danger {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.scnu-btn-danger:hover {
    background: #ee5a24;
    color: white;
    text-decoration: none;
}

/* ===== 결과 요약 ===== */
.scnu-results-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scnu-results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.scnu-results-number {
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

/* ===== 카드 아이템 ===== */
.scnu-item-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.scnu-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.scnu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.scnu-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.scnu-item-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.scnu-item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.scnu-item-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scnu-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scnu-info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.scnu-info-value {
    color: #333;
    font-size: 0.9rem;
}

/* ===== 태그 시스템 ===== */
.scnu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scnu-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== 액션 버튼 ===== */
.scnu-item-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.scnu-btn-interest {
    background: #fff;
    color: #2a5298;
    border: 1px solid #2a5298;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scnu-btn-interest:hover {
    background: #2a5298;
    color: white;
    text-decoration: none;
}

/* ===== 빈 상태 ===== */
.scnu-empty-state {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.scnu-empty-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

/* ===== 페이지네이션 ===== */
.scnu-pagination-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.scnu-pagination .page-link {
    color: #2a5298;
    border: 1px solid #e0e0e0;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.scnu-pagination .page-link:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.scnu-pagination .page-item.active .page-link {
    background: #2a5298;
    border-color: #2a5298;
}

/* ===== 상세 검색 필터 ===== */
.scnu-search-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: none;
}

.scnu-search-filters.show {
    display: block;
}

.scnu-filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.scnu-filter-label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
    font-size: 0.9rem;
}

.scnu-filter-input {
    flex: 1;
    min-width: 150px;
}

.scnu-filter-input input,
.scnu-filter-input select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
}

.scnu-filter-input input:focus,
.scnu-filter-input select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.scnu-toggle-filters {
    background: none;
    border: none;
    color: #2a5298;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.scnu-toggle-filters:hover {
    color: #1e3c72;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .scnu-page-title {
        font-size: 1.5rem;
    }
    
    .scnu-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scnu-search-category,
    .scnu-search-input,
    .scnu-search-actions {
        width: 100%;
    }
    
    .scnu-search-actions {
        justify-content: center;
    }
    
    .scnu-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scnu-item-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .scnu-item-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .scnu-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scnu-filter-label {
        min-width: auto;
        margin-bottom: 0.3rem;
    }
}

/* ===== 테이블 스타일 ===== */
.scnu-table-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.scnu-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.scnu-table thead {
    background: #f8f9fa;
}

.scnu-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9rem;
}

.scnu-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    height: 5rem;
}

.scnu-table-row:hover {
    background: #f8f9fa;
}

.scnu-table-row:hover .scnu-link {
    color: #2a5298;
}

/* 테이블 컬럼 너비 */
.scnu-th-number,
.scnu-td-number {
    width: 8%;
    text-align: center;
}

.scnu-th-title,
.scnu-td-title {
    width: 50%;
    text-align: left;
}

.scnu-th-writer,
.scnu-td-writer {
    width: 15%;
    text-align: center;
}

.scnu-th-division,
.scnu-td-division {
    width: 12%;
    text-align: center;
}

.scnu-th-date,
.scnu-td-date {
    width: 15%;
    text-align: center;
}

.scnu-th-count,
.scnu-td-count {
    width: 12%;
    text-align: center;
}

.scnu-th-period,
.scnu-td-period {
    width: 15%;
    text-align: center;
}

/* 제목 스타일 */
.scnu-title-content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    height: 3.5rem;
    justify-content: flex-start;
}

.scnu-title-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.scnu-title-text {
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scnu-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scnu-link:hover {
    color: #2a5298;
    text-decoration: none;
}

/* 태그 스타일 */
.scnu-tag-notice {
    background: #2a5298;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.scnu-tag-new {
    background: #ff4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.scnu-tag-empty {
    display: inline-block;
    width: 0;
    height: 1.2rem;
}

.scnu-notice-badge {
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 2rem;
}

/* 빈 상태 */
.scnu-empty-cell {
    text-align: center;
    padding: 3rem;
}

/* 액션 버튼 */
.scnu-action-buttons {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.scnu-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.scnu-btn-primary {
    background: #2a5298;
    color: white;
}

.scnu-btn-primary:hover {
    background: #1e3c72;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

/* 반응형 테이블 */
@media (max-width: 768px) {
    .scnu-table-container {
        overflow-x: auto;
    }
    
    .scnu-table {
        min-width: 600px;
    }
    
    .scnu-table th,
    .scnu-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .scnu-title-content {
        gap: 0.3rem;
    }
    
    .scnu-title-tags {
        gap: 0.3rem;
    }
}

/* ===== 유틸리티 클래스 ===== */
.scnu-text-center {
    text-align: center;
}

.scnu-text-right {
    text-align: right;
}

.scnu-text-left {
    text-align: left;
}

.scnu-mb-0 {
    margin-bottom: 0;
}

.scnu-mb-1 {
    margin-bottom: 0.5rem;
}

.scnu-mb-2 {
    margin-bottom: 1rem;
}

.scnu-mb-3 {
    margin-bottom: 1.5rem;
}

.scnu-mt-0 {
    margin-top: 0;
}

.scnu-mt-1 {
    margin-top: 0.5rem;
}

.scnu-mt-2 {
    margin-top: 1rem;
}

.scnu-mt-3 {
    margin-top: 1.5rem;
}

/* 연회비 안내 섹션 */
.membership-fee-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.fee-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.fee-section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.fee-section-header p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.fee-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.fee-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 35px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fee-card.silver {
    border-color: #95a5a6;
}

.fee-card.gold {
    border-color: #f39c12;
    background: #fff9e6;
}

.fee-card.premium {
    border-color: #3498db;
    background: #ebf5fb;
}

.fee-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.badge-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #ff4081;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.fee-title {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.fee-amount {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fee-amount .grade {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
}

.fee-amount .amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.fee-amount .amount strong {
    font-size: 2rem;
    color: #007bff;
    font-weight: 700;
}

.arrow {
    font-size: 1.5rem;
    color: #adb5bd;
    font-weight: bold;
}

.fee-note {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 가족회사 혜택 표 섹션 */
.benefit-table-section {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.benefit-header {
    text-align: center;
    margin-bottom: 25px;
}

.benefit-header .benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.benefit-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-header p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

.benefit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.benefit-table thead {
    background: #007bff;
    color: white;
}

.benefit-table th {
    padding: 18px 15px;
    font-weight: 600;
    text-align: center;
}

.benefit-table th.category-col {
    text-align: left;
    width: 40%;
}

.benefit-table th.silver-col,
.benefit-table th.gold-col,
.benefit-table th.premium-col {
    width: 20%;
}

.grade-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.grade-badge .icon {
    font-size: 1.2rem;
}

.benefit-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.benefit-table tbody tr:hover:not(.section-header) {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.benefit-table td {
    padding: 14px 15px;
    text-align: center;
    color: #495057;
}

.benefit-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
}

.benefit-table tr.section-header {
    background: #e9ecef;
}

.benefit-table tr.section-header td {
    padding: 16px 15px;
    font-size: 1.05rem;
    color: #007bff;
    font-weight: 700;
    text-align: left;
}

.benefit-table td.check {
    color: #007bff;
    font-size: 1.3rem;
    font-weight: bold;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .membership-fee-section {
        padding: 25px 20px;
    }

    .fee-section-header h3 {
        font-size: 1.5rem;
    }

    .fee-section-header p {
        font-size: 0.9rem;
    }

    .fee-cards {
        flex-direction: column;
        gap: 15px;
    }

    .fee-card {
        width: 100%;
        max-width: 280px;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .benefit-table-section {
        padding: 25px 15px;
        overflow-x: auto;
    }

    .benefit-table {
        font-size: 0.875rem;
        min-width: 600px;
    }

    .benefit-table th,
    .benefit-table td {
        padding: 10px 8px;
    }

    .benefit-header h3 {
        font-size: 1.5rem;
    }

    .benefit-header p {
        font-size: 0.95rem;
    }
}
