﻿/* ─── Loading / Not Found ─── */

.card-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: #F28E31;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.card-not-found {
    text-align: center;
    padding: 4rem 1rem;
    color: #666;
}

    .card-not-found h2 {
        font-size: 1.5rem;
        color: #1a1a1a;
        margin-bottom: 0.5rem;
    }

    .card-not-found .back-link {
        display: inline-block;
        margin-top: 1rem;
        color: #F28E31;
        text-decoration: none;
        font-weight: 600;
    }

        .card-not-found .back-link:hover {
            color: #d4792a;
        }

/* ─── Page Wrapper ─── */

.card-page {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;

    background: #f8f8f8;
}

/* ─── Card Container ─── */

.card-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

/* ─── Banner ─── */

.card-banner {
    height: 120px;
    background: linear-gradient(135deg, #F9A85C 0%, #F28E31 50%, #d4792a 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px 20px;
}

    .card-banner::after {
        content: "";
        position: absolute;
        left: -10%;
        right: -10%;
        bottom: -1px;
        height: 40px;
        background: #fff;
        border-radius: 50% 50% 0 0;
    }

.card-banner-logo {
    height: 36px;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

/* ─── Card Body ─── */

.card-body {
    position: relative;
    padding: 0 1.75rem 1.75rem;
    margin-top: -48px;
    text-align: center;
}

/* ─── Avatar ─── */

.card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.card-avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #f8f8f8;
    color: #F28E31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* ─── Name / Title / Location ─── */

.card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.2rem;
    letter-spacing: -0.5px;
    border: none;
}

.card-title {
    font-size: 0.95rem;
    color: #F28E31;
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.card-location {
    font-size: 0.84rem;
    color: #666;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .card-location .icon {
        width: 14px;
        height: 14px;
        color: #F28E31;
    }

/* ─── Quote ─── */

.card-quote {
    font-size: 0.88rem;
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    padding: 12px 16px;
    background: #f8f8f8;
    border-left: 3px solid #F28E31;
    border-radius: 0;
    text-align: left;
}

/* ─── Action List ─── */

.card-actions {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s;
    cursor: pointer;
}

    .action-row:not(:last-child) {
        border-bottom: 1px solid #e8e8e8;
    }

    .action-row:hover {
        background: #f8f8f8;
    }

.action-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .action-icon svg {
        width: 16px;
        height: 16px;
        color: #F28E31;
    }

.action-label {
    flex: 1;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-chevron {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
}

/* ─── Save Contact CTA ─── */

.save-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 4px;
    background: #F28E31;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.25rem;
}

    .save-contact-btn:hover {
        background: #d4792a;
    }

    .save-contact-btn .icon {
        width: 18px;
        height: 18px;
    }

/* ─── Social Links ─── */

.card-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 1.25rem;
    border-top: 1px solid #e8e8e8;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .social-btn:hover {
        background: #F28E31;
        border-color: #F28E31;
        color: #fff;
    }

    .social-btn svg {
        width: 18px;
        height: 18px;
    }

/* ─── Footer ─── */

.card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── Mobile ─── */

@media (max-width: 480px) {
    .card-page {
        padding: 0;
        background: #fff;
    }

    .card-container {
        max-width: 100%;
        border-radius: 0;
        border: none;
    }

    .card-banner {
        height: 120px;
    }

    .card-body {
        padding: 0 1.25rem 1.5rem;
    }
}
