/* --- Base --- */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    background: #f3f3f3;
    color: #1f1f1f;
    text-align: center;
}

header {
    padding: 3rem 1rem 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 600;
}

header p {
    margin-top: 0.8rem;
    color: #666;
}

/* --- Search Box --- */
.search-box {
    margin: 2rem auto;
    max-width: 420px;
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.search-box button {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: none;
    background: #e8ddc7;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Card List Layout (image left, name right) --- */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.05),
        0 6px 14px rgba(0,0,0,0.06),
        0 18px 40px rgba(0,0,0,0.05);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-row:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.08),
        0 10px 22px rgba(0,0,0,0.08),
        0 24px 50px rgba(0,0,0,0.07);
}

.card-row img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    margin-right: 1.2rem;
}

.card-row h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.search-wrapper {
    position: relative;
    max-width: 420px;
    margin: 2rem auto;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.05),
        0 6px 14px rgba(0,0,0,0.06);
    overflow: hidden;
    display: none;
}

.suggestion-item {
    padding: 0.6rem 0.9rem;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f7f7f7;
}
