@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    position: relative;
    min-height: 100vh;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #ffffff;
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 300px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

#results {
    margin-top: 2rem;
    color: #ffffff;
}

/* Results 스타일 */
.character-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: #ffffff;
    min-height: 130px;
}

.character-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.character-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
    width: 100%;
}

.character-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.character-image img {
    width: auto;
    height: 300px;
    object-fit: cover;
    object-position: center 20%;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maple-icon::before {
    content: "🍁";
    font-size: 60px;
}

.character-info-container {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
}

.character-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.character-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.character-info-label {
    display: none;
}

.character-info-value {
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 500;
}

.character-info-value.name {
    font-weight: 600;
    font-size: 1em;
}

/* 추가 결과 스타일 */
#results * {
    color: #ffffff;
}

#results table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

#results th,
#results td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#results th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

#results tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#results .error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

#results .success {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

#results .info {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input {
        min-width: unset;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .character-row {
        gap: 8px;
        font-size: 0.85em;
        padding: 8px 0;
    }
    
    .character-info-container {
        gap: 8px;
    }
    
    .character-image {
        width: 90px;
        height: 90px;
    }
    
    .image-placeholder {
        width: 90px;
        height: 90px;
    }
    
    .maple-icon::before {
        font-size: 45px;
    }
    
    .character-card {
        min-height: 100px;
        padding: 10px;
    }
    
    .character-info-value {
        font-size: 0.8em;
    }
}