/**
 * Facebook Connect Styles for Gayatri IT Solutions
 * Matches the website's theme and provides responsive design
 */

/* Facebook Login Button Styles */
.facebook-login-btn,
.facebook-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.facebook-login-btn:hover,
.facebook-logout-btn:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.facebook-login-btn:active,
.facebook-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.3);
}

.facebook-login-btn i,
.facebook-logout-btn i {
    font-size: 16px;
}

/* Facebook Share Button Styles */
.facebook-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.facebook-share-btn:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.facebook-share-btn i {
    font-size: 14px;
}

/* Facebook User Info Styles */
.facebook-user-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.facebook-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.facebook-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.facebook-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.facebook-user-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.facebook-user-email {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #666);
    opacity: 0.8;
}

/* Facebook Connect Container */
.facebook-connect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Facebook Share Section */
.facebook-share-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.facebook-share-section h4 {
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #333);
}

/* Dark Mode Support */
[data-theme="dark"] .facebook-user-name {
    color: #ffffff;
}

[data-theme="dark"] .facebook-user-email {
    color: #cccccc;
}

[data-theme="dark"] .facebook-connect-container,
[data-theme="dark"] .facebook-share-section {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .facebook-user-info {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .facebook-login-btn,
    .facebook-logout-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .facebook-share-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .facebook-connect-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .facebook-user-profile {
        gap: 10px;
    }
    
    .facebook-user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .facebook-user-name {
        font-size: 13px;
    }
    
    .facebook-user-email {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .facebook-login-btn,
    .facebook-logout-btn,
    .facebook-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .facebook-share-section {
        flex-direction: column;
    }
    
    .facebook-connect-container {
        padding: 12px;
    }
}

/* Animation Effects */
@keyframes facebookPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 119, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

.facebook-login-btn.pulse,
.facebook-share-btn.pulse {
    animation: facebookPulse 2s infinite;
}

/* Loading State */
.facebook-login-btn.loading,
.facebook-logout-btn.loading,
.facebook-share-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.facebook-login-btn.loading::after,
.facebook-logout-btn.loading::after,
.facebook-share-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State */
.facebook-login-btn.success,
.facebook-share-btn.success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Integration with existing website styles */
.hero-section .facebook-connect-container,
.services-section .facebook-share-section,
.portfolio-section .facebook-share-section {
    margin: 30px auto;
    max-width: 400px;
}

/* Footer Facebook Integration */
.footer .facebook-connect-container {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation Facebook Integration */
.nav-container .facebook-login-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .nav-container .facebook-login-btn {
        display: none;
    }
}