/* 이 코드를 티스토리 '스킨 편집 > CSS'에 붙여넣으세요. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* 기본 스타일 */
.heart-pairing-container {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0 auto;
    padding: 1rem;
    max-width: 1152px;
    color: #333;
}

/* 헤더 */
.heart-pairing-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fbcfe8, #fce7f3, #e0c3fc);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.heart-pairing-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0 0 0.5rem 0;
}
.heart-pairing-header p {
    font-size: 1.125rem;
    color: #555;
    margin: 0;
}

/* 공통 섹션 스타일 */
.heart-pairing-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.heart-pairing-section-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #86198f;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
}
.heart-pairing-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f9a8d4, #c084fc);
    border-radius: 2px;
}

/* 분석 섹션 */
.analysis-box-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.analysis-box {
    text-align: center;
}
.analysis-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #be185d;
    margin-bottom: 0.5rem;
}
.analysis-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

/* 테이블 */
.table-container {
    overflow-x: auto;
}
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.responsive-table th, .responsive-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #fce7f3;
}
.responsive-table thead th {
    background-color: #fdf2f8;
    color: #be185d;
    font-weight: 700;
    text-align: center;
}
.responsive-table tbody tr:hover {
    background-color: #fdf2f8;
}
.responsive-table td {
    color: #4b5563;
    text-align: center;
}
.responsive-table td:first-child {
    font-weight: 500;
    color: #1f2937;
}

/* 프로필 카드 */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
.profile-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #f3e8ff;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23d8b4fe' stroke-width='3' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9333ea;
    font-weight: 500;
    padding: 1rem;
    text-align: center;
}
.image-placeholder svg { color: #c084fc; margin-bottom: 0.5rem; }
.profile-content { padding: 1.5rem; }
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.profile-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.instagram-link {
    color: #c026d3;
    transition: color 0.2s;
}
.instagram-link:hover { color: #9333ea; }
.instagram-link svg { display: block; }
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}
.tag-male { background-color: #e0f2fe; color: #0c4a6e; border-color: #bae6fd;}
.tag-female { background-color: #fce7f3; color: #831843; border-color: #f9a8d4;}
.tag-couple { background-color: #fef9c3; color: #713f12; border-color: #fde047;}
.tag-maybe { background-color: #e5e7eb; color: #4b5563; border-color: #d1d5db;}
.profile-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #4b5563;
}
.profile-content li { margin-bottom: 0.25rem; }
.profile-content p {
    color: #374151;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 최종 커플 */
.final-couples-subtitle {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem auto;
    color: #4b5563;
    line-height: 1.6;
}
.final-couples-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 42rem;
    margin: 0 auto;
}
.final-couple-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid;
}
.final-couple-box.couple-yes { background-color: #fff1f2; border-color: #ffcdd2; }
.final-couple-box.couple-maybe { background-color: #f3f4f6; border-color: #e5e7eb; }
.final-couple-box .tag { font-size: 1rem; }
.final-couple-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.final-couple-box.couple-yes h3 { color: #be185d; }
.final-couple-box.couple-maybe h3 { color: #374151; }
.final-couple-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* 푸터 */
.heart-pairing-footer {
    text-align: center;
    color: rgba(134, 25, 143, 0.6);
    font-size: 0.875rem;
    margin-top: 4rem;
    padding: 2rem 0;
}
.heart-pairing-footer p { margin: 0.25rem 0; }

/* 반응형 디자인 */
@media (min-width: 768px) {
    .heart-pairing-header { padding: 3rem 1rem; }
    .heart-pairing-header h1 { font-size: 3.75rem; }
    .analysis-box-container {
        flex-direction: row;
        justify-content: space-around;
    }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
        display: block;
        width: 100%;
    }
    .responsive-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #fbcfe8;
        border-radius: 0.75rem;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background-color: #fff;
    }
    .responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border: none;
    }
    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 1rem;
        font-weight: 600;
        text-align: left;
        color: #be185d;
    }
}
