/* Share Popup Styles */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-popup-overlay.active {
    display: flex;
}

/* Coming Soon Container */
.share-coming-soon-container {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-radius: 24px;
    border: 2px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: slideUpBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.share-popup-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.share-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-popup-close:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.share-popup-close:active {
    transform: scale(0.95) rotate(90deg);
}

.share-popup-content {
    padding: 1.5rem 2rem;
}

.share-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--primary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.share-preview-avatar {
    flex-shrink: 0;
}

.share-preview-avatar .post-avatar {
    width: 48px;
    height: 48px;
}

.share-preview-info {
    flex: 1;
    min-width: 0;
}

.share-preview-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.share-preview-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.share-option-btn i {
    font-size: 1.5rem;
}

.copy-link-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.copy-link-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.share-discord-btn:hover {
    background: #5865f2;
    color: white;
    border-color: #5865f2;
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.share-url-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.copy-url-btn {
    padding: 0.75rem 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.copy-url-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.share-popup-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    justify-content: center;
}

.share-cancel-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-cancel-btn:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Coming Soon Content */
.share-coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.share-coming-soon-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.share-coming-soon-icon i {
    font-size: 3rem;
    color: white;
}

.share-coming-soon-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-coming-soon-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

.share-coming-soon-features {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    min-width: 100px;
    transition: all 0.3s ease;
}

.share-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

.share-feature-item i {
    font-size: 1.5rem;
    color: #4CAF50;
}

.share-feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.share-coming-soon-btn {
    margin-top: 1rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.share-coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.share-coming-soon-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpBounce {
    0% { 
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5);
    }
}

/* Success feedback */
.share-option-btn.copied {
    background: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.share-option-btn.copied i::before {
    content: "\f00c"; /* Check icon */
}

/* Responsive */
@media (max-width: 768px) {
    .share-coming-soon-container {
        width: 95%;
        margin: 1rem;
        padding: 2.5rem 1.5rem;
    }
    
    .share-coming-soon-icon {
        width: 80px;
        height: 80px;
    }
    
    .share-coming-soon-icon i {
        font-size: 2.5rem;
    }
    
    .share-coming-soon-title {
        font-size: 1.75rem;
    }
    
    .share-coming-soon-description {
        font-size: 0.95rem;
    }
    
    .share-coming-soon-features {
        gap: 1rem;
    }
    
    .share-feature-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .share-feature-item i {
        font-size: 1.25rem;
    }
    
    .share-feature-item span {
        font-size: 0.75rem;
    }
    
    .share-coming-soon-btn {
        padding: 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
}
