/**
 * Share Smarter AI Pro v3.0 - Frontend Styles
 * PageSpeed Optimized - WCAG AAA Compliant
 * File: /public_html/assets/css/ssai-v3.css
 */

/* Container */
.ssai-v3-container {
    margin: 24px 0;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* RTL Support */
.ssai-v3-container.ssai-rtl {
    direction: rtl;
    text-align: right;
}

/* Header */
.ssai-v3-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.ssai-v3-header .ssai-icon {
    font-size: 18px;
}

/* Buttons Container */
.ssai-v3-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Button Base */
.ssai-v3-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    line-height: 1.2;
}

.ssai-v3-btn:hover,
.ssai-v3-btn:focus {
    border-color: #667eea;
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ssai-v3-btn:active {
    transform: scale(0.98);
}

/* Button Icon */
.ssai-v3-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Platform-specific hover colors */
.ssai-v3-btn.ssai-v3-chatgpt:hover { border-color: #10a37f; }
.ssai-v3-btn.ssai-v3-perplexity:hover { border-color: #20808d; }
.ssai-v3-btn.ssai-v3-claude:hover { border-color: #cc9b7a; }
.ssai-v3-btn.ssai-v3-gemini:hover { border-color: #4285f4; }
.ssai-v3-btn.ssai-v3-grok:hover { border-color: #000000; }
.ssai-v3-btn.ssai-v3-google_ai:hover { border-color: #4285f4; }
.ssai-v3-btn.ssai-v3-copilot:hover { border-color: #0078d4; }
.ssai-v3-btn.ssai-v3-deepseek:hover { border-color: #1a1a1a; }

/* Responsive */
@media (max-width: 600px) {
    .ssai-v3-buttons {
        flex-direction: column;
    }
    .ssai-v3-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Preset: Minimal (default) — inherits base styles */

/* Preset: Modern */
.ssai-style-modern {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ssai-style-modern .ssai-v3-btn {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: none;
}

/* Preset: Gradient */
.ssai-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
.ssai-style-gradient .ssai-v3-header { color: white; }
.ssai-style-gradient .ssai-v3-btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.ssai-style-gradient .ssai-v3-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

/* Preset: Dark */
.ssai-style-dark {
    background: #1f2937;
    border-color: #374151;
}
.ssai-style-dark .ssai-v3-header { color: #f9fafb; }
.ssai-style-dark .ssai-v3-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}
.ssai-style-dark .ssai-v3-btn:hover {
    background: #4b5563;
    border-color: #6366f1;
}

/* Preset: Outlined */
.ssai-style-outlined {
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 0;
}
.ssai-style-outlined .ssai-v3-header { color: #667eea; }
.ssai-style-outlined .ssai-v3-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 0;
}
.ssai-style-outlined .ssai-v3-btn:hover {
    background: #667eea;
    color: white;
}

/* Preset: Pill */
.ssai-style-pill {
    background: transparent;
    border: none;
    padding: 10px 0;
}
.ssai-style-pill .ssai-v3-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
}
.ssai-style-pill .ssai-v3-btn:hover {
    background: #e5e7eb;
}

/* Print - Hide */
@media print {
    .ssai-v3-container { display: none !important; }
}
