/* ============================================================================
   WarnIQ Shareable Results Card — PII-Safe Social Sharing
   Step 5.1: Share card CSS component
   Card dimensions: 600x315px (Twitter/OG image ratio)
   ============================================================================ */

/* Share Card Container */
.share-card {
    width: 600px;
    height: 315px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
}

.share-card--safe {
    background: linear-gradient(145deg, #1B2A4A 0%, #1a3a2e 50%, #2D8F5E 100%);
}
.share-card--caution {
    background: linear-gradient(145deg, #1B2A4A 0%, #3a321a 50%, #D4922A 100%);
}
.share-card--elevated {
    background: linear-gradient(145deg, #1B2A4A 0%, #3a281a 50%, #E8915A 100%);
}
.share-card--high-risk {
    background: linear-gradient(145deg, #1B2A4A 0%, #3a1a1a 50%, #C44040 100%);
}
.share-card--unknown {
    background: linear-gradient(145deg, #1B2A4A 0%, #2a2a2a 50%, #5A5A5A 100%);
}

/* Card Inner Layout */
.share-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2rem 2.5rem;
}

/* Top: Branding */
.share-card-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.share-card-brand i {
    font-size: 1.1rem;
}

/* Middle: Score Display */
.share-card-score-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.share-card-shield {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.share-card-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.share-card-label {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Status Lines */
.share-card-status {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.85;
}
.share-card-status span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Bottom: CTA & URL */
.share-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.share-card-url {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.share-card-tagline {
    font-size: 0.75rem;
    opacity: 0.6;
    font-style: italic;
}

/* ============================================================================
   Share Overlay & Buttons
   ============================================================================ */

.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.share-overlay.active {
    display: flex;
}

.share-overlay-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 650px;
    width: 100%;
    position: relative;
}

.share-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.share-overlay-close:hover {
    color: #fff;
}

.share-overlay-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

/* Share Action Buttons */
.share-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.share-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.share-action-btn.btn-twitter {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
}

.share-action-btn.btn-facebook {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
}

.share-action-btn.btn-copy {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.share-action-btn.btn-native {
    background: rgba(232, 145, 90, 0.2);
    border-color: rgba(232, 145, 90, 0.4);
}

/* Mobile: Scale card down */
@media (max-width: 640px) {
    .share-card {
        width: 100%;
        height: auto;
        aspect-ratio: 600 / 315;
    }

    .share-card-inner {
        padding: 1.25rem 1.5rem;
    }

    .share-card-number {
        font-size: 2.5rem;
    }

    .share-card-label {
        font-size: 0.95rem;
    }

    .share-card-shield {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .share-card-status {
        gap: 0.75rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .share-actions {
        flex-direction: column;
    }

    .share-action-btn {
        justify-content: center;
    }
}
