/**
 * WPNearMe - Shortlist Styles
 * 
 * Shortlist button and tooltip styles.
 * Modal styles are in join-modal.css
 *
 * @package WPNearMe
 */

/* =============================================================================
   SHORTLIST BUTTON
   ============================================================================= */

.shortlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

.shortlist-btn:hover {
    border-color: var(--color-teal-4);
    color: var(--color-teal-4);
}

.shortlist-btn:focus {
    outline: none;
    border-color: var(--color-teal-4);
    box-shadow: 0 0 0 3px rgba(19, 187, 182, 0.15);
}

.shortlist-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.shortlist-btn .shortlist-icon {
    font-size: 20px;
}

/* Shortlisted state */
.shortlist-btn.is-shortlisted {
    background: var(--color-teal-4);
    border-color: var(--color-teal-4);
    color: #fff;
}

.shortlist-btn.is-shortlisted:hover {
    background: var(--color-teal-3);
    border-color: var(--color-teal-3);
    color: #fff;
}


/* Large variant (for single business page) */
.shortlist-btn--large {
    padding: 10px 16px;
    font-size: 15px;
}

.shortlist-btn--large .shortlist-icon {
    font-size: 22px;
}


/* Icon-only variant (for cards) */
.shortlist-btn--icon-only {
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shortlist-btn--icon-only:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}


/* Button in business page header */
.business-buttons .shortlist-btn--large {
    padding: 12px 20px;
    border: 2px solid var(--color-teal-4);
    background: #fff;
}

.business-buttons .shortlist-btn--large.is-shortlisted {
    background: var(--color-teal-4);
    color: #fff;
}


/* =============================================================================
   TOOLTIP
   ============================================================================= */

.sl-tooltip {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sl-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sl-tooltip-icon {
    font-size: 20px;
    line-height: 1;
}

.sl-tooltip--added .sl-tooltip-icon { color: #4caf50; }
.sl-tooltip--removed .sl-tooltip-icon { color: #ff9800; }
.sl-tooltip--error .sl-tooltip-icon { color: #f44336; }

.sl-tooltip-message {
    flex: 1;
}

.sl-tooltip-link {
    color: var(--color-teal-1);
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.sl-tooltip-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* =============================================================================
   SHORTLIST PAGE
   ============================================================================= */

.shortlist-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shortlist-page-header h1 {
    margin-bottom: 5px;
}

.shortlist-count-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.shortlist-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.shortlist-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--color-teal-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortlist-empty-icon .material-symbols-outlined {
    font-size: 40px;
    color: var(--color-teal-4);
}

.shortlist-empty h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.shortlist-empty p {
    color: #666;
    margin-bottom: 20px;
}


/* =============================================================================
   MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .sl-tooltip {
        left: 10px;
        right: 10px;
        bottom: 20px;
        transform: translateX(0) translateY(20px);
    }
    
    .sl-tooltip.is-visible {
        transform: translateX(0) translateY(0);
    }
}


/* =============================================================================
   PRINT
   ============================================================================= */

@media print {
    .shortlist-btn,
    .sl-tooltip {
        display: none !important;
    }
}
