/* TP Social Points Extension - Public Styles */

/* Floating Button */
.tp-social-points-button {
    position: fixed;
    z-index: 10;
    padding: 12px 20px;
    background-color: #4267B2;
    color: white;
    border: 2px solid #4267B2;
    border-radius: 25px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(66, 103, 178, 0.3);
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.tp-social-points-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.4);
    background-color: #365899;
    border-color: #365899;
    color: white;
    text-decoration: none;
}

.tp-social-points-button:active {
    transform: translateY(0);
}

/* Button Positions */
.tp-social-bottom-right {
    bottom: 30px;
    right: 30px;
}

.tp-social-bottom-left {
    bottom: 30px;
    left: 30px;
}

.tp-social-top-right {
    top: 30px;
    right: 30px;
}

.tp-social-top-left {
    top: 30px;
    left: 30px;
}

/* Button Sizes */
.tp-social-small {
    padding: 8px 16px;
    font-size: 12px;
}

.tp-social-medium {
    padding: 12px 20px;
    font-size: 14px;
}

.tp-social-large {
    padding: 16px 24px;
    font-size: 16px;
}

/* Button Animations */
@keyframes tp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes tp-bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

@keyframes tp-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.tp-social-pulse {
    animation: tp-pulse 2s infinite;
}

.tp-social-bounce {
    animation: tp-bounce 2s infinite;
}

.tp-social-shake {
    animation: tp-shake 0.8s infinite;
}

/* Button Content */
.tp-social-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-social-button-icon {
    font-size: 1.2em;
}

.tp-social-button-text {
    font-weight: 600;
}

/* Popup Styles */
.tp-social-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tp-social-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tp-social-popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: tp-popup-enter 0.3s ease-out;
}

@keyframes tp-popup-enter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tp-social-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
}

.tp-social-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1c1e21;
}

.tp-social-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8a8d91;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tp-social-popup-close:hover {
    background-color: #f2f3f4;
    color: #1c1e21;
}

.tp-social-popup-body {
    padding: 20px 24px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Loading State */
.tp-social-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8a8d91;
}

.tp-social-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid #4267B2;
    border-radius: 50%;
    animation: tp-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes tp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Actions List */
.tp-social-actions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-social-action-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.tp-social-action-item:hover {
    border-color: #4267B2;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.1);
}

.tp-social-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tp-social-action-icon svg {
    width: 24px;
    height: 24px;
}

.tp-social-action-content {
    flex: 1;
    margin-right: 16px;
}

.tp-social-action-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    line-height: 1.3;
}

.tp-social-action-content p {
    margin: 0;
    font-size: 14px;
    color: #8a8d91;
    font-weight: 500;
}

.tp-social-action-button {
    background: #4267B2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tp-social-action-button:hover {
    background: #365899;
    transform: translateY(-1px);
}

.tp-social-action-button:disabled {
    background: #8a8d91;
    cursor: not-allowed;
    transform: none;
}

/* Empty State */
.tp-social-no-actions {
    text-align: center;
    padding: 40px 20px;
}

.tp-social-empty-state {
    color: #8a8d91;
}

.tp-social-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.tp-social-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1c1e21;
    font-weight: 600;
}

.tp-social-empty-state p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Notification */
.tp-social-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000001;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #42b883;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 320px;
}

.tp-social-notification.success {
    border-left-color: #42b883;
}

.tp-social-notification.error {
    border-left-color: #e53e3e;
}

.tp-social-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tp-social-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-social-notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tp-social-notification-text {
    font-size: 14px;
    font-weight: 500;
    color: #1c1e21;
    line-height: 1.4;
}

/* Body class when popup is open */
body.tp-social-popup-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tp-social-points-button {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .tp-social-bottom-right,
    .tp-social-bottom-left {
        bottom: 20px;
    }
    
    .tp-social-bottom-right {
        right: 20px;
    }
    
    .tp-social-bottom-left {
        left: 20px;
    }
    
    .tp-social-popup {
        padding: 16px;
    }
    
    .tp-social-popup-content {
        max-height: 85vh;
    }
    
    .tp-social-popup-header {
        padding: 20px 20px 16px;
    }
    
    .tp-social-popup-header h3 {
        font-size: 18px;
    }
    
    .tp-social-popup-body {
        padding: 16px 20px 20px;
    }
    
    .tp-social-action-item {
        padding: 12px;
    }
    
    .tp-social-action-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .tp-social-action-content {
        margin-right: 12px;
    }
    
    .tp-social-action-content h4 {
        font-size: 14px;
    }
    
    .tp-social-action-content p {
        font-size: 12px;
    }
    
    .tp-social-action-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .tp-social-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .tp-social-button-text {
        display: none;
    }
    
    .tp-social-points-button {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
    
    .tp-social-button-content {
        gap: 0;
    }
    
    .tp-social-button-icon {
        font-size: 24px;
    }
}