@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700&display=swap');

.gift-history-page {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.gift-history-card {
    width: min(540px, 100%);
    background: #ffffff;
    border: 1px solid #ebe3d5;
    border-radius: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(166, 143, 104, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 680px;
}

.gift-history-header {
    padding: 2rem 2rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-history-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #8c8375;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gift-history-icon:hover {
    background: #f7f2e9;
}

.gift-history-summary {
    margin: 0 2rem 1.2rem;
    background: #faf7f2;
    border: 1px solid #ebe3d5;
    border-radius: 1.8rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gift-history-summary p {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c8375;
}

.gift-history-summary strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-history-summary strong span {
    font-size: 0.85rem;
}

.gift-history-cta {
    border: none;
    border-radius: 0.9rem;
    background: #a68f68;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
}

.gift-history-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0 2rem 1rem;
}

.gift-history-filters button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f7f2e9;
    color: #8c8375;
}

.gift-history-filters button.is-active {
    background: #a68f68;
    color: #ffffff;
}

.gift-history-body {
    flex: 1;
    padding: 0 2rem 2rem;
    overflow-y: auto;
}

.gift-history-group {
    margin-top: 1.2rem;
}

.gift-history-group h3 {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b0a695;
}

.gift-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0ebe0;
}

.gift-history-item:last-child {
    border-bottom: none;
}

.gift-history-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gift-history-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: #f2e8d5;
    color: #a68f68;
}

.gift-history-avatar.is-received {
    background: #e6eadf;
    color: #6b7a5f;
}

.gift-history-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gift-history-title p {
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4a453e;
}

.gift-history-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 0.5rem;
    background: #f2e8d5;
    color: #a68f68;
}

.gift-history-badge.is-received {
    background: #e6eadf;
    color: #6b7a5f;
}

.gift-history-date {
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    color: #b0a695;
}

.gift-history-right {
    text-align: right;
}

.gift-history-amount {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-history-amount.is-received {
    color: #6b7a5f;
}

.gift-history-reason {
    margin: 0.2rem 0 0;
    font-size: 0.65rem;
    color: #b0a695;
}

.gift-history-empty {
    color: #8c8375;
    font-size: 0.85rem;
    padding: 1rem 0;
}
