/* SHARE CARD PREMIUM STYLES */

:root {
    --share-bg: #121212;
    --share-accent: #0061e0;
    --share-text: #ffffff;
    --share-muted: rgba(255, 255, 255, 0.6);
    --share-radius: 24px;
}

/* Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

.share-modal-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: shareModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shareModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close Button */
.share-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* THE CARD */
#share-card-render {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--share-bg);
    border-radius: var(--share-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5);
}

.share-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
}

.share-card-content {
    position: relative;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.share-card-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.share-card-brand span {
    color: var(--share-accent);
}

.share-card-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.share-card-info p {
    font-size: 16px;
    color: var(--share-muted);
    margin-bottom: 20px;
}

.share-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.share-agent-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-agent-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.share-agent-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.share-agent-meta span {
    font-size: 12px;
    color: var(--share-muted);
}

.share-qr-box {
    background: white;
    padding: 6px;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-qr-box img {
    width: 100%;
    height: auto;
}

/* BOTTOM CONTROLS */
.share-actions-tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-btn-download {
    background: white;
    color: black;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.share-btn-download:active {
    transform: scale(0.98);
}

.share-social-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.share-social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-social-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.share-helper-text {
    text-align: center;
    color: var(--share-muted);
    font-size: 13px;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .share-modal-container { max-width: 100%; }
    .share-card-info h2 { font-size: 26px; }
    .share-card-content { padding: 20px; }
}
