/**
 * Multi AI Share Buttons - Premium & Minimal & Minimal Colored Styles
 * Version: 3.9.0
 */

/* Main container */
.multi-share-buttons {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.multi-share-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.multi-share-buttons.centered {
    text-align: center;
}

.multi-share-buttons strong {
    display: block;
    margin-bottom: 20px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* Buttons container */
.multi-share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.multi-share-buttons.centered .multi-share-container {
    justify-content: center;
}

/* Base button styles - Modern gradient design */
.multi-share-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.multi-share-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.multi-share-buttons .btn:hover::before {
    left: 100%;
}

.multi-share-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #fff;
}

.multi-share-buttons .btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Brand-specific button gradients */
.multi-share-buttons .btn.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #0d8968 100%);
}

.multi-share-buttons .btn.chatgpt:hover {
    background: linear-gradient(135deg, #0d8968 0%, #0a6b51 100%);
}

.multi-share-buttons .btn.perplexity {
    background: linear-gradient(135deg, #20808d 0%, #1a6770 100%);
}

.multi-share-buttons .btn.perplexity:hover {
    background: linear-gradient(135deg, #1a6770 0%, #145159 100%);
}

.multi-share-buttons .btn.grok {
    background: linear-gradient(135deg, #1da1f2 0%, #1a8cd8 100%);
}

.multi-share-buttons .btn.grok:hover {
    background: linear-gradient(135deg, #1a8cd8 0%, #1577be 100%);
}

.multi-share-buttons .btn.googleai {
    background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
}

.multi-share-buttons .btn.googleai:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2a62c9 100%);
}

.multi-share-buttons .btn.gemini {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.multi-share-buttons .btn.gemini:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #6c3483 100%);
}

.multi-share-buttons .btn.copilot {
    background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%);
}

.multi-share-buttons .btn.copilot:hover {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.multi-share-buttons .btn.claude {
    background: linear-gradient(135deg, #cc785c 0%, #b8654a 100%);
}

.multi-share-buttons .btn.claude:hover {
    background: linear-gradient(135deg, #b8654a 0%, #a4563d 100%);
}

.multi-share-buttons .btn.metaai {
    background: linear-gradient(135deg, #0668e1 0%, #0552b5 100%);
}

.multi-share-buttons .btn.metaai:hover {
    background: linear-gradient(135deg, #0552b5 0%, #043d89 100%);
}

.multi-share-buttons .btn.mistral {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.multi-share-buttons .btn.mistral:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #dd4d43 100%);
}

.multi-share-buttons .btn.deepseek {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.multi-share-buttons .btn.deepseek:hover {
    background: linear-gradient(135deg, #1a252f 0%, #0f1419 100%);
}

/* ============================================
   MINIMAL STYLE VARIANT
   ============================================ */

.multi-share-buttons.minimal-style {
    margin: 30px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.multi-share-buttons.minimal-style::before {
    display: none;
}

.multi-share-buttons.minimal-style strong {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multi-share-buttons.minimal-style .multi-share-container {
    gap: 8px;
}

.multi-share-buttons.minimal-style .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    min-width: 100px;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.multi-share-buttons.minimal-style .btn::before,
.multi-share-buttons.minimal-style .btn::after {
    display: none;
}

.multi-share-buttons.minimal-style .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.multi-share-buttons.minimal-style .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Minimal style - subtle brand colors on hover only */
.multi-share-buttons.minimal-style .btn.chatgpt:hover {
    border-color: #10a37f;
    color: #10a37f;
}

.multi-share-buttons.minimal-style .btn.perplexity:hover {
    border-color: #20808d;
    color: #20808d;
}

.multi-share-buttons.minimal-style .btn.grok:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.multi-share-buttons.minimal-style .btn.googleai:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.multi-share-buttons.minimal-style .btn.gemini:hover {
    border-color: #8e44ad;
    color: #8e44ad;
}

.multi-share-buttons.minimal-style .btn.copilot:hover {
    border-color: #00a4ef;
    color: #00a4ef;
}

.multi-share-buttons.minimal-style .btn.claude:hover {
    border-color: #cc785c;
    color: #cc785c;
}

.multi-share-buttons.minimal-style .btn.metaai:hover {
    border-color: #0668e1;
    color: #0668e1;
}

.multi-share-buttons.minimal-style .btn.mistral:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.multi-share-buttons.minimal-style .btn.deepseek:hover {
    border-color: #2c3e50;
    color: #2c3e50;
}

/* Minimal style - no animations on load */
.multi-share-buttons.minimal-style .btn {
    animation: none;
}

/* Minimal style responsive */
@media (max-width: 768px) {
    .multi-share-buttons.minimal-style {
        padding: 15px 0;
    }

    .multi-share-buttons.minimal-style strong {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .multi-share-buttons.minimal-style .btn {
        padding: 7px 14px;
        font-size: 12px;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .multi-share-buttons.minimal-style {
        padding: 12px 0;
    }

    .multi-share-buttons.minimal-style .multi-share-container {
        flex-direction: column;
        gap: 6px;
    }

    .multi-share-buttons.minimal-style .btn {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Dark mode for minimal style */
@media (prefers-color-scheme: dark) {
    .multi-share-buttons.minimal-style {
        border-top-color: #374151;
        border-bottom-color: #374151;
    }

    .multi-share-buttons.minimal-style strong {
        color: #9ca3af;
    }

    .multi-share-buttons.minimal-style .btn {
        background: #1f2937;
        color: #e5e7eb;
        border-color: #374151;
    }

    .multi-share-buttons.minimal-style .btn:hover {
        background: #111827;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* ============================================
   END MINIMAL STYLE VARIANT
   ============================================ */

/* ============================================
   MINIMAL COLORED STYLE VARIANT
   ============================================ */

.multi-share-buttons.minimal-colored-style {
    margin: 30px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.multi-share-buttons.minimal-colored-style::before {
    display: none;
}

.multi-share-buttons.minimal-colored-style strong {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multi-share-buttons.minimal-colored-style .multi-share-container {
    gap: 8px;
}

/* Base style for minimal colored buttons */
.multi-share-buttons.minimal-colored-style .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid;
    box-shadow: none;
    min-width: 100px;
    letter-spacing: 0;
    transition: all 0.2s ease;
    background: transparent;
}

.multi-share-buttons.minimal-colored-style .btn::before,
.multi-share-buttons.minimal-colored-style .btn::after {
    display: none;
}

/* Brand-specific colors for minimal colored */
.multi-share-buttons.minimal-colored-style .btn.chatgpt {
    color: #10a37f;
    border-color: #10a37f;
}

.multi-share-buttons.minimal-colored-style .btn.chatgpt:hover {
    background: #10a37f;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.perplexity {
    color: #20808d;
    border-color: #20808d;
}

.multi-share-buttons.minimal-colored-style .btn.perplexity:hover {
    background: #20808d;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.grok {
    color: #1da1f2;
    border-color: #1da1f2;
}

.multi-share-buttons.minimal-colored-style .btn.grok:hover {
    background: #1da1f2;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.googleai {
    color: #4285f4;
    border-color: #4285f4;
}

.multi-share-buttons.minimal-colored-style .btn.googleai:hover {
    background: #4285f4;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.gemini {
    color: #8e44ad;
    border-color: #8e44ad;
}

.multi-share-buttons.minimal-colored-style .btn.gemini:hover {
    background: #8e44ad;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.copilot {
    color: #00a4ef;
    border-color: #00a4ef;
}

.multi-share-buttons.minimal-colored-style .btn.copilot:hover {
    background: #00a4ef;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.claude {
    color: #cc785c;
    border-color: #cc785c;
}

.multi-share-buttons.minimal-colored-style .btn.claude:hover {
    background: #cc785c;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.metaai {
    color: #0668e1;
    border-color: #0668e1;
}

.multi-share-buttons.minimal-colored-style .btn.metaai:hover {
    background: #0668e1;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.mistral {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.multi-share-buttons.minimal-colored-style .btn.mistral:hover {
    background: #ff6b6b;
    color: #ffffff;
}

.multi-share-buttons.minimal-colored-style .btn.deepseek {
    color: #2c3e50;
    border-color: #2c3e50;
}

.multi-share-buttons.minimal-colored-style .btn.deepseek:hover {
    background: #2c3e50;
    color: #ffffff;
}

/* Hover effects for minimal colored */
.multi-share-buttons.minimal-colored-style .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.multi-share-buttons.minimal-colored-style .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* No fade-in animation for minimal colored */
.multi-share-buttons.minimal-colored-style .btn {
    animation: none;
}

/* Minimal colored responsive */
@media (max-width: 768px) {
    .multi-share-buttons.minimal-colored-style {
        padding: 15px 0;
    }

    .multi-share-buttons.minimal-colored-style strong {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .multi-share-buttons.minimal-colored-style .btn {
        padding: 7px 14px;
        font-size: 12px;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .multi-share-buttons.minimal-colored-style {
        padding: 12px 0;
    }

    .multi-share-buttons.minimal-colored-style .multi-share-container {
        flex-direction: column;
        gap: 6px;
    }

    .multi-share-buttons.minimal-colored-style .btn {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Dark mode for minimal colored style */
@media (prefers-color-scheme: dark) {
    .multi-share-buttons.minimal-colored-style {
        border-top-color: #374151;
        border-bottom-color: #374151;
    }

    .multi-share-buttons.minimal-colored-style strong {
        color: #9ca3af;
    }

    /* Colors remain vibrant in dark mode - just adjust opacity slightly */
    .multi-share-buttons.minimal-colored-style .btn {
        opacity: 0.9;
    }

    .multi-share-buttons.minimal-colored-style .btn:hover {
        opacity: 1;
    }
}

/* ============================================
   END MINIMAL COLORED STYLE VARIANT
   ============================================ */

/* Placeholder loading state */
#multi-share-buttons-placeholder {
    min-height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

#multi-share-buttons-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Pulse animation for buttons on load */
@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-share-buttons .btn {
    animation: buttonFadeIn 0.5s ease-out backwards;
}

.multi-share-buttons .btn:nth-child(1) { animation-delay: 0.1s; }
.multi-share-buttons .btn:nth-child(2) { animation-delay: 0.15s; }
.multi-share-buttons .btn:nth-child(3) { animation-delay: 0.2s; }
.multi-share-buttons .btn:nth-child(4) { animation-delay: 0.25s; }
.multi-share-buttons .btn:nth-child(5) { animation-delay: 0.3s; }
.multi-share-buttons .btn:nth-child(6) { animation-delay: 0.35s; }
.multi-share-buttons .btn:nth-child(7) { animation-delay: 0.4s; }
.multi-share-buttons .btn:nth-child(8) { animation-delay: 0.45s; }
.multi-share-buttons .btn:nth-child(9) { animation-delay: 0.5s; }
.multi-share-buttons .btn:nth-child(10) { animation-delay: 0.55s; }

/* Responsive design */
@media (max-width: 768px) {
    .multi-share-buttons {
        padding: 25px 20px;
        margin: 30px 0;
        border-radius: 12px;
    }

    .multi-share-buttons strong {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .multi-share-container {
        gap: 10px;
    }

    .multi-share-buttons .btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 110px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .multi-share-buttons {
        padding: 20px 15px;
        margin: 25px 0;
        border-radius: 10px;
    }

    .multi-share-buttons strong {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .multi-share-container {
        flex-direction: column;
        gap: 8px;
    }

    .multi-share-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .multi-share-buttons {
        display: none;
    }
}

/* Accessibility */
.multi-share-buttons .btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.multi-share-buttons .btn:focus:not(:focus-visible) {
    outline: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .multi-share-buttons {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }

    #multi-share-buttons-placeholder {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
}

/* Additional premium effects */
.multi-share-buttons .btn::after {
    content: '→';
    margin-left: 8px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    font-weight: bold;
}

.multi-share-buttons .btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Sparkle effect on hover */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.multi-share-buttons .btn:hover {
    animation: none; /* Prevents conflict with fade-in */
}

/* Tooltip effect */
.multi-share-buttons .btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}

