/* Compact Profile Styles - Optimized for NFC Cards */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1e293b;
}

.profile-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.profile-card-compact {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.profile-header-compact {
    background: linear-gradient(135deg, #232d4b 0%, #2e3a5f 100%);
    padding: 40px 24px 24px;
    text-align: center;
    position: relative;
}

.profile-image-compact {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-compact h1 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-info-compact .title {
    font-size: 16px;
    color: #ff6a00;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info-compact .company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #232d4b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover,
.action-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ff6a00;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%);
    border-color: #ff6a00;
    color: white;
}

.action-btn.primary:hover,
.action-btn.primary:active {
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.4);
    border-color: #ff6a00;
}

.action-btn i {
    font-size: 20px;
}

.action-btn span {
    font-size: 11px;
}

/* Contact Section */
.contact-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(35, 45, 75, 0.1));
    color: #ff6a00;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
    min-width: 0;
}

.contact-item small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item a {
    color: #232d4b;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    word-break: break-all;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #ff6a00;
}

.contact-item span {
    color: #232d4b;
    font-weight: 500;
    font-size: 15px;
}

/* Bio Section */
.bio-section {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.bio-section p {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
}

/* Facts Grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.fact-item {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.05), rgba(35, 45, 75, 0.05));
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fact-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.fact-text {
    font-size: 13px;
    font-weight: 600;
    color: #232d4b;
    line-height: 1.4;
}

/* Company Link */
.company-link {
    padding: 24px;
}

.btn-company {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #232d4b 0%, #2e3a5f 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-company:hover,
.btn-company:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 45, 75, 0.3);
}

.company-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.btn-company i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 0;
        background: white;
    }

    .profile-card-compact {
        border-radius: 0;
        box-shadow: none;
    }

    .profile-header-compact {
        padding: 32px 20px 20px;
    }

    .profile-image-compact {
        width: 100px;
        height: 100px;
    }

    .profile-info-compact h1 {
        font-size: 24px;
    }

    .quick-actions {
        padding: 16px;
    }

    .action-btn {
        padding: 14px 8px;
    }

    .contact-section,
    .bio-section,
    .facts-grid,
    .company-link {
        padding: 20px 16px;
    }

    .facts-grid {
        gap: 10px;
    }

    .fact-item {
        padding: 12px;
    }

    .fact-icon {
        font-size: 28px;
    }

    .fact-text {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .profile-card-compact {
        background: #1e293b;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .quick-actions {
        background: #0f172a;
        border-bottom-color: #334155;
    }

    .action-btn {
        background: #1e293b;
        border-color: #334155;
        color: white;
    }

    .contact-section,
    .bio-section,
    .facts-grid {
        border-bottom-color: #334155;
    }

    .contact-item small {
        color: #94a3b8;
    }

    .contact-item a,
    .contact-item span {
        color: white;
    }

    .bio-section p {
        color: #cbd5e1;
    }

    .fact-item {
        background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(35, 45, 75, 0.2));
        border-color: #334155;
    }

    .fact-text {
        color: white;
    }
}

/* iOS safe area support */
@supports (padding: max(0px)) {
    .profile-card-compact {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}
