:root {
    --primary: #ff7eb3;
    --secondary: #ff4757;
    --accent: #ffccd5;
    --text: #4a4a4a;
    --bg: #fff5f7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(255, 126, 179, 0.15);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--accent);
}

header h1 span { display: inline-block; animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
nav ul li a { text-decoration: none; color: var(--primary); font-size: 14px; font-weight: 500; }

/* Main Tool */
main { padding: 40px 0; }
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 2px solid var(--accent);
}

.input-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.person-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field label {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 5px;
}

input[type="text"], input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-family: inherit;
    outline: none;
    text-align: center;
}

/* Photo Upload */
.photo-upload {
    width: 120px;
    height: 120px;
    background: var(--bg);
    border: 2px dashed var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.photo-upload:hover { background: var(--accent); }
.photo-upload span { font-size: 12px; color: var(--primary); text-align: center; padding: 5px; }
.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.vs {
    font-size: 30px;
    font-weight: 900;
    color: var(--secondary);
    text-shadow: 2px 2px 0 var(--accent);
}

button {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    margin-top: 20px;
}

/* Result Area */
#resultArea { margin-top: 50px; text-align: center; }
.result-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.res-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--accent);
    overflow: hidden;
}

.res-vs { font-size: 30px; animation: heartbeat 1s infinite; }
.result-score { font-size: 80px; font-weight: 900; color: var(--secondary); }

/* Content Sections */
.content-section h3 { color: var(--secondary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.content-section h3::before { content: '💖'; }

footer { padding: 40px 0; text-align: center; border-top: 2px solid var(--accent); background: white; }

@media (max-width: 768px) {
    .input-container { flex-direction: column; align-items: center; }
    .vs-container { margin: 20px 0; }
}
