/* ===========================
   Share Button
   =========================== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.share-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.share-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===========================
   Share Modal
   =========================== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.share-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: #ff6b6b;
    color: white;
}

.share-modal-body {
    padding: 2rem;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.share-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.share-platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.share-platform-btn.whatsapp .share-platform-icon {
    background: #25D366;
}

.share-platform-btn.facebook .share-platform-icon {
    background: #1877F2;
}

.share-platform-btn.twitter .share-platform-icon {
    background: #1DA1F2;
}

.share-platform-btn.linkedin .share-platform-icon {
    background: #0A66C2;
}

.share-platform-btn.email .share-platform-icon {
    background: #EA4335;
}

.share-platform-btn.copy .share-platform-icon {
    background: #6c757d;
}

.share-platform-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.share-link-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.share-link-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.share-link-input-group {
    display: flex;
    gap: 0.75rem;
}

.share-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
}

.share-copy-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: var(--primary-dark);
}

/* ===========================
   Product Card Share Button
   =========================== */
.product-share-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ===========================
   Category Share Section
   =========================== */
.category-share-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 2rem 0;
}

.category-share-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.category-share-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.category-share-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.category-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .share-modal-content {
        max-width: 95%;
    }
    
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .share-modal-body {
        padding: 1.5rem;
    }
    
    .share-link-input-group {
        flex-direction: column;
    }
    
    .share-copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-modal-header h3 {
        font-size: 1.25rem;
    }
}
