/* Email Capture & Social Sharing Styles for GR8LOCI.ONLINE */

/* Email Capture Component Styles */
.email-capture {
    background: linear-gradient(135deg, #163759 0%, #1e4663 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(22, 55, 89, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-capture.inline {
    margin: 1rem 0;
    padding: 1.5rem;
}

.email-capture.sidebar {
    margin: 1rem 0;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.email-capture h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Cormorant Garamond', serif;
}

.email-capture p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.email-capture-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-capture-form.horizontal {
    flex-direction: row;
    max-width: 500px;
}

.email-input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
}

.email-input:focus {
    outline: none;
    border-color: #becedd;
    box-shadow: 0 0 0 3px rgba(190, 206, 221, 0.3);
    background: white;
}

.email-input::placeholder {
    color: #666;
}

.email-submit {
    padding: 0.875rem 2rem;
    background: #becedd;
    color: #163759;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.email-submit:hover {
    background: #a8b9c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 206, 221, 0.4);
}

.email-submit:active {
    transform: translateY(0);
}

.email-submit:disabled {
    background: rgba(190, 206, 221, 0.5);
    cursor: not-allowed;
    transform: none;
}

.email-capture-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.email-capture-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.lead-magnet {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-magnet-title {
    color: #becedd;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.lead-magnet-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Social Sharing Styles */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(22, 55, 89, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(22, 55, 89, 0.1);
}

.social-sharing-label {
    font-weight: 600;
    color: #163759;
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
}

.social-sharing-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.social-share-btn.facebook:hover {
    background: #166fe5;
}

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

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

.social-share-btn.linkedin {
    background: #0a66c2;
}

.social-share-btn.linkedin:hover {
    background: #0952a5;
}

.social-share-btn.email {
    background: #163759;
}

.social-share-btn.email:hover {
    background: #0f2640;
}

.social-share-btn.copy {
    background: #6b7280;
}

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

.social-share-btn.copy.copied {
    background: #22c55e;
}

/* Newsletter Modal Popup */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-modal.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.newsletter-modal.show .newsletter-modal-content {
    transform: scale(1);
}

.newsletter-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.newsletter-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.newsletter-modal .email-capture {
    background: linear-gradient(135deg, #163759 0%, #1e4663 100%);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-capture {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .email-capture h3 {
        font-size: 1.25rem;
    }
    
    .email-capture-form.horizontal {
        flex-direction: column;
    }
    
    .social-sharing {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-sharing-label {
        white-space: normal;
    }
    
    .newsletter-modal-content {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .social-sharing-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-share-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Animation for successful subscription */
@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.email-capture-success {
    animation: success-bounce 0.6s ease-out;
}

/* Loading state for submit button */
.email-submit.loading {
    position: relative;
    color: transparent;
}

.email-submit.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #163759;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}