/**
 * SLS Sharing Styles
 *
 * Sprint 6: Native Sharing (Simplified v1.4.1)
 * @since 1.4.0
 * @since 1.4.1 Removed platform dropdown and copy caption button styles
 */

/* ===================================
   SHARE BUTTONS
   =================================== */

.sls-share-btn,
.sls-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sls-gradient-primary, linear-gradient(135deg, #6d3f77 0%, #798cb1 100%));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--sls-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.sls-share-btn:hover,
.sls-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 63, 119, 0.4);
}

.sls-share-btn:active,
.sls-download-btn:active {
    transform: translateY(0);
}

.sls-share-btn:disabled,
.sls-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button Icons */
.sls-share-btn svg,
.sls-download-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Loading State */
.sls-share-btn.loading::after,
.sls-download-btn.loading::after {
    content: '';
    margin-left: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sls-spin 0.6s linear infinite;
}

@keyframes sls-spin {
    to { transform: rotate(360deg); }
}

/* Secondary Button Variant */
.sls-download-btn {
    background: var(--sls-gray, #363636);
}

.sls-download-btn:hover {
    background: var(--sls-dark-gray, #1A1515);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.sls-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--sls-dark-gray, #1A1515);
    border-radius: var(--sls-border-radius-sm, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--sls-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.sls-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Types */
.sls-toast-success {
    background: white !important;
    color: #333 !important;
    border-left: 4px solid #4CAF50;
}

.sls-toast-error {
    background: white !important;
    color: #333 !important;
    border-left: 4px solid #f44336;
}

.sls-toast-info {
    background: white !important;
    color: #333 !important;
    border-left: 4px solid var(--sls-blue, #8BA2C9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sls-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ===================================
   SHARE SECTION
   =================================== */

.sls-share-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--sls-dark-gray, #1A1515);
    border-radius: var(--sls-border-radius, 20px);
    border: 1px solid rgba(109, 63, 119, 0.2);
}

.sls-share-section h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-family: var(--sls-font-heading, 'Montserrat', sans-serif);
    font-size: 20px;
    font-weight: 700;
}

.sls-share-section p {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.sls-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
    .sls-share-btn,
    .sls-download-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 48px; /* iOS/Android minimum touch target */
    }

    .sls-share-section {
        padding: 16px;
    }

    .sls-share-buttons {
        flex-direction: column;
    }

    .sls-share-btn,
    .sls-download-btn {
        width: 100%;
        justify-content: center;
    }
}
