﻿@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --bg-dark: #09090b;
  --card-bg: #18181b;
  --card-border: #27272a;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  
  --primary-glow: rgba(250, 204, 21, 0.15);
  --accent-gold: center, #facc15 0%, #ca8a04 100%;
  --accent-gold-linear: linear-gradient(135deg, #facc15, #ca8a04);
  
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-family); }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-primary); 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 3rem 1rem;
    line-height: 1.6;
}

.background-anim {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at top right, #1f1f22, var(--bg-dark));
}

.container { max-width: 680px; width: 100%; }

header { text-align: center; margin-bottom: 3rem; }
h1 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem; 
    background: var(--accent-gold-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
header p { color: var(--text-secondary); font-size: 1.1rem; }

.search-box {
    display: flex; gap: 0.5rem; padding: 0.5rem; 
    background: var(--card-bg);
    border: 1px solid var(--card-border); 
    border-radius: 999px; /* Pill shape */
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

input {
    flex: 1; padding: 1rem 1.5rem; border: none; border-radius: 999px; 
    background: transparent; color: var(--text-primary); font-size: 1.05rem; outline: none; 
}
input::placeholder { color: #52525b; }

button {
    padding: 0 2rem; border: none; border-radius: 999px; 
    background: var(--text-primary);
    color: var(--bg-dark); font-weight: 700; cursor: pointer; transition: 0.3s;
    font-size: 1rem;
}
button:hover { background: #d4d4d8; transform: scale(1.02); }

.loader { text-align: center; margin-top: 4rem; }
.spinner {
    width: 36px; height: 36px; 
    border: 3px solid var(--card-border); 
    border-top: 3px solid var(--text-primary);
    border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1.5rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.result-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 20px; padding: 2.5rem; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Accent top border for card */
.result-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-gold-linear);
}

.result-header {
    display: flex; flex-direction: column; align-items: center; 
    padding-bottom: 2rem; gap: 1rem;
}

#resNickname { color: var(--text-primary); font-weight: 800; font-size: 1.5rem; }

.action-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.action-btn:hover {
    background: #27272a;
    color: var(--text-primary);
    border-color: #3f3f46;
}

.style-title {
    font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 0.5rem;
    background: var(--accent-gold-linear); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; letter-spacing: -1px;
}

.synergy-box {
    text-align: center; margin-bottom: 2.5rem; 
    font-size: 0.95rem; color: var(--text-secondary);
}
.synergy-highlight {
    font-weight: 700; color: #facc15; padding: 0.2rem 0.5rem; 
    background: rgba(250, 204, 21, 0.1); border-radius: 6px;
}

.style-desc { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.style-desc li {
    padding: 1.5rem; background: #202024; border-radius: 12px; font-size: 1rem; line-height: 1.6; color: #d4d4d8;
}
.style-desc li strong { color: #facc15; display: block; font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.3px; }

h3 { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; }

.champions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.champion-card {
    text-align: center; transition: 0.3s;
}
.char-img { 
    width: 72px; height: 72px; border-radius: 24px; /* Squircle feeling */
    margin-bottom: 0.8rem; box-shadow: 0 8px 16px rgba(0,0,0,0.3); object-fit: cover;
    background: #27272a; border: 2px solid transparent;
}
.char-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); letter-spacing: -0.3px; margin-bottom: 0.2rem; }
.char-type { font-size: 0.8rem; color: var(--text-secondary); }

/* Animations */
@keyframes scaleUpBouncy {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUpFade {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
