/* ============================================
   Contact Card Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.contact-card-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.cc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    margin: 20px auto;
}

/* --- Logo Area --- */
.cc-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 28px 24px 16px;
    flex-wrap: wrap;
}

.cc-logos img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* --- Divider --- */
.cc-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 0 24px;
}

/* --- Photo --- */
.cc-photo-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0 16px;
}

.cc-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.cc-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
    border: 4px solid #f0f2f5;
}

/* --- Name & Info --- */
.cc-info {
    text-align: center;
    padding: 0 24px 24px;
}

.cc-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cc-organization {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
}

.cc-department {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

.cc-position {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

/* --- Contact Actions --- */
.cc-actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f5f7fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cc-action:hover {
    background: #ebeef3;
    transform: translateY(-1px);
}

.cc-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.cc-action-icon.email {
    background: #e8f0fe;
    color: #1a73e8;
}

.cc-action-icon.phone {
    background: #e6f4ea;
    color: #1e8e3e;
}

.cc-action-icon.mobile {
    background: #e6f4ea;
    color: #1e8e3e;
}

.cc-action-icon.address {
    background: #fce8e6;
    color: #d93025;
}

.cc-action-icon.website {
    background: #e8f0fe;
    color: #1a73e8;
}

.cc-action-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-action-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* --- Address Block --- */
.cc-address-lines {
    line-height: 1.5;
}

/* --- Social Links --- */
.cc-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 24px 24px;
}

.cc-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-social a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cc-social-linkedin {
    background: #0077b5;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* --- Save Contact Button --- */
.cc-save {
    padding: 0 24px 28px;
}

.cc-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cc-save-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.cc-save-btn:active {
    transform: translateY(0);
}

.cc-save-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- QR Code Section --- */
.cc-qr {
    text-align: center;
    padding: 0 24px 28px;
}

.cc-qr img {
    width: 160px;
    height: 160px;
}

.cc-qr-label {
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    body.contact-card-page {
        padding: 0;
        align-items: stretch;
    }

    .cc-card {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        box-shadow: none;
    }
}
