/**
 * PWA Install Prompt & Social Sharing Styles
 */

/* PWA Install Prompt */
.cs-pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cs-pwa-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #1a202c;
}

.cs-pwa-content p {
    margin: 0 0 15px;
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cs-pwa-buttons {
    display: flex;
    gap: 10px;
}

.cs-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.cs-button-primary {
    background: #2563eb;
    color: #fff;
}

.cs-button-primary:hover,
.cs-button-primary:focus {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cs-button-secondary {
    background: #e5e7eb;
    color: #4a5568;
}

.cs-button-secondary:hover,
.cs-button-secondary:focus {
    background: #d1d5db;
}

/* Social Sharing */
.cs-social-sharing {
    margin: 2rem 0;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 8px;
}

.cs-sharing-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: #1a202c;
}

.cs-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #4a5568;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cs-share-button:hover,
.cs-share-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cs-share-twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.cs-share-twitter:hover,
.cs-share-twitter:focus {
    background: #1da1f2;
    color: #fff;
}

.cs-share-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.cs-share-facebook:hover,
.cs-share-facebook:focus {
    background: #1877f2;
    color: #fff;
}

.cs-share-linkedin {
    border-color: #0a66c2;
    color: #0a66c2;
}

.cs-share-linkedin:hover,
.cs-share-linkedin:focus {
    background: #0a66c2;
    color: #fff;
}

.cs-share-email {
    border-color: #718096;
    color: #718096;
}

.cs-share-email:hover,
.cs-share-email:focus {
    background: #718096;
    color: #fff;
}

.cs-share-copy {
    border-color: #2563eb;
    color: #2563eb;
}

.cs-share-copy:hover,
.cs-share-copy:focus {
    background: #2563eb;
    color: #fff;
}

.cs-share-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.cs-copy-notification {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

.cs-copy-notification.success {
    background: #d1fae5;
    color: #065f46;
}

.cs-copy-notification.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Widget Social Links */
.cs-widget-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-widget-social-links .cs-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-widget-social-links .cs-social-link:hover,
.cs-widget-social-links .cs-social-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cs-social-facebook:hover,
.cs-social-facebook:focus {
    background: #1877f2;
    color: #fff;
}

.cs-social-twitter:hover,
.cs-social-twitter:focus {
    background: #1da1f2;
    color: #fff;
}

.cs-social-instagram:hover,
.cs-social-instagram:focus {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
}

.cs-social-linkedin:hover,
.cs-social-linkedin:focus {
    background: #0a66c2;
    color: #fff;
}

.cs-social-youtube:hover,
.cs-social-youtube:focus {
    background: #ff0000;
    color: #fff;
}

.cs-social-github:hover,
.cs-social-github:focus {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-pwa-install-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .cs-sharing-buttons {
        justify-content: center;
    }

    .cs-share-button {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .cs-share-button,
    .cs-widget-social-links .cs-social-link {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cs-pwa-install-prompt {
        animation: none;
    }

    .cs-share-button,
    .cs-button,
    .cs-widget-social-links .cs-social-link {
        transition: none;
    }

    .cs-share-button:hover,
    .cs-button:hover,
    .cs-widget-social-links .cs-social-link:hover {
        transform: none;
    }
}

/* Print */
@media print {
    .cs-pwa-install-prompt,
    .cs-social-sharing {
        display: none;
    }
}
