/* User Engagement Styles */

/* Save Notification */
.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.save-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Calculation History */
.calculation-history {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-type {
    font-weight: 600;
    color: #1f2937;
    text-transform: capitalize;
}

.history-date {
    font-size: 12px;
    color: #6b7280;
}

.history-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.data-item {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #4b5563;
}

.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #fecaca;
}

.delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #006399;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #1664d8;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #20ba5a;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

.share-btn.email:hover {
    background: #4b5563;
}

.share-btn.copy {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.share-btn.copy:hover {
    background: #e5e7eb;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-title {
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.author-title {
    font-size: 14px;
    color: #6b7280;
}

.testimonial-rating {
    margin-top: 12px;
    color: #fbbf24;
}

/* Email Signup */
.email-signup-section {
    background: #f9fafb;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 40px 0;
}

.email-signup-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.email-signup-title {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.email-signup-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.email-signup-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.email-signup-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
}

.email-signup-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.email-signup-form button {
    padding: 14px 28px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.email-signup-form button:hover {
    background: #2563eb;
}

.email-privacy {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message .check-icon {
    width: 48px;
    height: 48px;
    color: #10b981;
    margin: 0 auto 16px;
}

.success-message h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 8px;
}

.success-message p {
    color: #6b7280;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.trust-badge.verified {
    border-color: #10b981;
    background: #ecfdf5;
}

.trust-badge.secure {
    border-color: #3b82f6;
    background: #eff6ff;
}

.trust-badge.free {
    border-color: #f59e0b;
    background: #fffbeb;
}

/* Responsive */
@media (max-width: 768px) {
    .email-signup-form {
        flex-direction: column;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
