/**
 * User Vibes Styles
 * 
 * @package ZipPicks_Social
 */

/* Vibes Modal */
.vibes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vibes-modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vibes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.vibes-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.vibes-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.vibes-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.vibes-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.vibes-modal-intro {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.vibes-selected-count {
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
    margin-bottom: 24px;
}

.vibes-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.vibe-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.vibe-selector-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.vibe-selector-item.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.vibe-selector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.vibe-selector-icon svg {
    width: 20px;
    height: 20px;
}

.vibe-selector-name {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.vibe-selector-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.vibe-selector-item.selected .vibe-selector-check {
    opacity: 1;
    transform: scale(1);
}

.vibes-loading {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

.vibes-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vibes-privacy-toggle {
    display: flex;
    align-items: center;
}

.vibes-privacy-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4b5563;
    font-size: 14px;
}

.vibes-privacy-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.vibes-modal-actions {
    display: flex;
    gap: 12px;
}

.vibes-cancel-btn,
.vibes-save-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

.vibes-cancel-btn {
    background: #f3f4f6;
    color: #1f2937;
}

.vibes-cancel-btn:hover {
    background: #e5e7eb;
}

.vibes-save-btn {
    background: #2563eb;
    color: white;
}

.vibes-save-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.vibes-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error state */
.vibes-selector-grid .error {
    grid-column: 1 / -1;
    text-align: center;
    color: #ef4444;
    padding: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .vibes-modal {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    
    .vibes-modal-overlay {
        padding: 0;
    }
    
    .vibes-selector-grid {
        grid-template-columns: 1fr;
    }
    
    .vibes-modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .vibes-modal-actions {
        justify-content: stretch;
    }
    
    .vibes-modal-actions button {
        flex: 1;
    }
}