/* 오피셜링크 페이지 전용 CSS */

/* CSS 변수 정의 (토큰 클레임과 동일) */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-shadow: rgba(59, 130, 246, 0.15);
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: rgba(139, 92, 246, 0.1);
}

/* 토큰 클레임과 동일한 헤더 스타일 */
.claim-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    padding-top: 10px !important;
}

.claim-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

.claim-container {
    width: 100%;
    margin-top: 1rem;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.claim-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -1px rgba(0, 0, 0, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.claim-header {
    width: 100%;
    padding: 1.25rem 2rem 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent-light), transparent);
}

.claim-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    text-shadow: 0 0 20px var(--accent);
}

.claim-title i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--accent);
}

.claim-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    opacity: 0.8;
    margin-left: 2.5rem;
}

/* 테이블 기본 스타일 */
.links-table {
    border-collapse: collapse;
    width: 100%;
    background: #2d3748;
    border-radius: 6px;
    overflow: hidden;
}

/* 헤더 - #f7e600 노란색 배경 */
.links-table thead {
    background: #f7e600;
}

.links-table th,
.links-table th:first-child,
.links-table th:nth-child(2),
.links-table th:nth-child(3),
.links-table th:nth-child(4),
.links-table th:nth-child(5),
.links-table th:nth-child(6),
.links-table th:nth-child(7),
.links-table th:nth-child(8),
.main-header {
    color: #1a202c;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: 'Segoe UI', sans-serif;
    padding: 5px 5px;
    border: 1px solid #d69e2e;
    text-align: center;
    background: #f7e600;
}

/* 본문 - 어두운 회색 배경 */
.links-table tbody {
    background: #2d3748;
}

.links-table tbody tr {
    border-bottom: 1px solid #718096;
    background: #2d3748;
}

.links-table tbody td {
    color: #f7fafc;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: 'Segoe UI', sans-serif;
    padding: 8px 12px;
    border-right: 1px solid #718096;
    text-align: center;
    vertical-align: middle;
    background: #2d3748;
}

/* 구분, 국문, 영문 컬럼 특별 스타일 */
.links-table tbody td:first-child,
.links-table tbody td:nth-child(2),
.links-table tbody td:nth-child(3) {
    background-color: #1a202c;
    color: #e2e8f0;
    font-weight: 600;
    border-right: 2px solid #718096;
}

/* 링크 컬럼 최소 너비 설정 */
.links-table th:nth-child(4),
.links-table th:nth-child(5),
.links-table th:nth-child(6),
.links-table th:nth-child(7),
.links-table th:nth-child(8),
.links-table th:nth-child(9),
.links-table th:nth-child(10) {
    min-width: 80px;
}

/* 본문 셀에도 최소 너비 적용 */
.links-table tbody td:nth-child(4),
.links-table tbody td:nth-child(5),
.links-table tbody td:nth-child(6),
.links-table tbody td:nth-child(7),
.links-table tbody td:nth-child(8),
.links-table tbody td:nth-child(9),
.links-table tbody td:nth-child(10) {
    min-width: 80px;
}

/* 링크 버튼 - 파란색 텍스트 + 파란색 테두리 */
.link-text {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid #3182ce;
    border-radius: 4px;
    display: inline-block;
}



/* 테이블 전체 중앙정렬 */
.links-table th,
.links-table td {
    text-align: center;
    vertical-align: middle;
}

/* 테이블 자체도 중앙정렬 */
.links-table {
    text-align: center;
}

/* 링크 텍스트도 중앙정렬 */
.link-text {
    text-align: center;
    display: inline-block;
}

/* 모든 hover 효과 제거 */
.links-table tbody tr:hover,
.links-table tbody td:hover,
.links-table th:hover,
.link-text:hover {
    background-color: inherit !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 통합된 구조 스타일 */
.official-links-wrapper {
    width: 100%;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    padding-top: 10px !important;
}

.official-links-header {
    width: 100%;
    padding: 1.25rem 2rem 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent-light), transparent);
    margin-bottom: 1.5rem;
}

.official-links-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.official-links-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* PC용 테이블 뷰 */
.links-table-view {
    width: 100%;
}

/* 모바일용 카드 뷰 */
.links-card-view {
    display: none;
}

.link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.1);
}

.link-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.link-category {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-names {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-name-kr {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.link-name-en {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.link-section {
    margin-bottom: 0.75rem;
}

.link-section:last-child {
    margin-bottom: 0;
}

.link-section-title {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 반응형: 모바일에서는 카드 뷰, PC에서는 테이블 뷰 */
@media (max-width: 767px) {
    .official-links-wrapper {
        padding: 0 16px 16px 16px;
    }
    
    .official-links-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .official-links-title {
        font-size: 1.25rem;
    }
    
    .links-table-view {
        display: none !important;
    }
    
    .links-card-view {
        display: block;
    }
}

@media (min-width: 768px) {
    .links-card-view {
        display: none !important;
    }
    
    .links-table-view {
        display: block;
    }
}
