/* ===== SOCIAL MEDIA BUTTONS STYLES ===== */

/* Base social media card styles */
.social-media-card {
    margin: 4rem 0;
    background: var(--card-dark);
    border-radius: 25px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.social-media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color)
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Shimmer effect on hover */
.social-media-card:hover::before {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
}

/* Card hover effects */
.social-media-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Card entrance animation */
.social-media-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.8s ease-out forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card content animations */
.social-media-card-header,
.social-media-card-body,
.social-media-card-footer {
    opacity: 0;
    transform: translateY(20px);
    animation: contentEntrance 0.6s ease-out forwards;
}

.social-media-card-header {
    animation-delay: 0.2s;
}

.social-media-card-body {
    animation-delay: 0.4s;
}

.social-media-card-footer {
    animation-delay: 0.6s;
}

@keyframes contentEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light theme card styles */
[data-theme="light"] .social-media-card {
    background: var(--light-bg);
    border-color: var(--light-border);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .social-media-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Card focus states */
.social-media-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px var(--primary-color),
        var(--shadow-xl);
}

[data-theme="light"] .social-media-card:focus-within {
    box-shadow: 
        0 0 0 3px var(--primary-color),
        var(--shadow-lg);
}

/* Card header styles */
.social-media-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 100%
    );
}

[data-theme="light"] .social-media-card-header {
    border-bottom-color: var(--light-border);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 255, 255, 0.1) 100%
    );
}

.social-media-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-media-card-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-media-card:hover .social-media-card-title i {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

[data-theme="light"] .social-media-card-title {
    color: var(--light-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-media-card-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    font-style: italic;
}

[data-theme="light"] .social-media-card-subtitle {
    color: var(--light-text-muted);
}

.social-media-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

[data-theme="light"] .social-media-title {
    color: var(--light-text);
}

[data-theme="light"] .social-media-section {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 215, 0, 0.05) 100%
    );
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Card body styles */
.social-media-card-body {
    padding: 2rem;
    text-align: center;
}

/* Modern social media buttons container */
.social-buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

/* Add decorative elements around buttons */
.social-buttons-container::before,
.social-buttons-container::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.social-buttons-container::before {
    left: -80px;
}

.social-buttons-container::after {
    right: -80px;
}

/* Show decorative elements on hover */
.social-buttons-container:hover::before,
.social-buttons-container:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Alternative: show decorative elements when hovering over buttons */
.social-button:hover ~ .social-buttons-container::before,
.social-button:hover ~ .social-buttons-container::after,
.social-buttons-container:hover::before,
.social-buttons-container:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide decorative elements on mobile */
@media (max-width: 768px) {
    .social-buttons-container::before,
    .social-buttons-container::after {
        display: none;
    }
}

/* Card footer styles */
.social-media-card-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.02) 0%, 
        rgba(255, 215, 0, 0.03) 100%
    );
}

[data-theme="light"] .social-media-card-footer {
    border-top-color: var(--light-border);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 100%
    );
}

.social-media-card-footer small {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-media-card-footer i {
    color: var(--primary-color);
    margin-right: 0.25rem;
    transition: all 0.3s ease;
}

.social-media-card:hover .social-media-card-footer i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

[data-theme="light"] .social-media-card-footer small {
    color: var(--light-text-muted);
}

/* Individual social media button */
.social-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 160px;
    background: var(--card-dark);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: visible;
    z-index: 1;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-button:hover::before {
    transform: scaleX(1);
}

[data-theme="light"] .social-button {
    background: var(--light-bg);
    border-color: var(--light-border);
    color: var(--light-text);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--light-border);
    z-index: 1;
}

[data-theme="light"] .social-button:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* Social button hover effects */
.social-button:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    text-decoration: none;
    z-index: 10;
}

/* Social button icon container */
.social-button-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Facebook specific styles */
.social-button.facebook .social-button-icon {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border: 3px solid #1877f2;
}

.social-button.facebook:hover .social-button-icon {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Instagram specific styles */
.social-button.instagram .social-button-icon {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border: 3px solid #dc2743;
}

.social-button.instagram:hover .social-button-icon {
    background: linear-gradient(135deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
}

/* Social button text */
.social-button-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Social button hover text effects */
.social-button:hover .social-button-text {
    color: var(--primary-color);
    transform: scale(1.05);
}

[data-theme="light"] .social-button:hover .social-button-text {
    color: var(--primary-color);
}

/* Social button ripple effect */
.social-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.social-button:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    visibility: visible;
}

/* Social button pulse animation on hover */
.social-button:hover .social-button-icon {
    animation: socialPulse 1.5s ease-in-out infinite;
}

@keyframes socialPulse {
    0%, 100% { 
        transform: scale(1.1) rotate(5deg); 
    }
    50% { 
        transform: scale(1.15) rotate(0deg); 
    }
}

/* Instagram specific pulse animation */
.social-button.instagram:hover .social-button-icon {
    animation: instagramPulse 1.5s ease-in-out infinite;
}

@keyframes instagramPulse {
    0%, 100% { 
        transform: scale(1.1) rotate(-5deg); 
    }
    50% { 
        transform: scale(1.15) rotate(0deg); 
    }
}

/* Social button floating animation */
.social-button {
    animation: float 6s ease-in-out infinite;
}

.social-button:nth-child(1) {
    animation-delay: 0s;
}

.social-button:nth-child(2) {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Social button hover floating override */
.social-button:hover {
    animation: none;
    z-index: 100;
}

/* Enhanced shadows for social buttons */
.social-button {
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-button:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

[data-theme="light"] .social-button {
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .social-button:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

/* Social button focus states for accessibility */
.social-button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 20px;
    transform: scale(1.02);
    box-shadow: 
        0 0 0 3px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced focus effects */
.social-button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    transform: scale(1.02);
}

.social-button:focus-within {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 2px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Focus effects for light theme */
[data-theme="light"] .social-button:focus {
    box-shadow: 
        0 0 0 3px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .social-button:focus-within {
    box-shadow: 
        0 0 0 2px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Social button focus visible for better accessibility */
.social-button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Social button keyboard navigation support */
.social-button:focus-within {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 2px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-button {
        border-width: 3px;
    }
    
    .social-button:hover {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-button,
    .social-button-icon,
    .social-button-text {
        animation: none;
        transition: none;
    }
    
    .social-button:hover {
        transform: none;
    }
    
    .social-button:hover .social-button-icon {
        transform: none;
    }
    
    .social-button:hover .social-button-text {
        transform: none;
    }
    
    .social-media-section::before {
        animation: none;
    }
}

/* Browser compatibility fixes */
.social-button {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .social-media-section {
        background: var(--card-dark);
    }
    
    [data-theme="light"] .social-media-section {
        background: var(--light-bg);
    }
}

/* Social button loading state */
.social-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-button.loading .social-button-icon {
    animation: spin 1s linear infinite;
}

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

/* Responsive design for social buttons */
@media (max-width: 768px) {
    .social-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .social-button {
        min-width: 200px;
        padding: 1.25rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .social-button-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .social-button-text {
        font-size: 1rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Disable 3D effects on mobile for better performance */
    .social-button:hover {
        transform: translateY(-10px) scale(1.02);
        perspective: none;
        z-index: 100;
    }
    
    .social-button:hover .social-button-icon {
        transform: scale(1.05) rotate(5deg);
    }
    
    .social-button:hover .social-button-text {
        transform: scale(1.02);
    }
    
    /* Adjust card padding on mobile */
    .social-media-card {
        margin: 2rem 0;
        border-radius: 20px;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-header {
        padding: 1.5rem 1.5rem 1rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-body {
        padding: 1.5rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-footer {
        padding: 1rem 1.5rem 1.5rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-subtitle {
        font-size: 0.9rem;
        /* Force visibility on mobile */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Optimize card animations for mobile */
    .social-media-card {
        animation: none;
        transform: none;
    }
    
    .social-media-card-header,
    .social-media-card-body,
    .social-media-card-footer {
        animation: none;
        transform: none;
    }
    
    /* Ensure all social media elements are visible */
    .social-media-card * {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .social-button {
        min-width: 180px;
        padding: 1rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .social-button-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .social-button-text {
        font-size: 0.9rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Optimize animations for mobile */
    .social-button {
        animation: none;
        transform: none;
    }
    
    .social-button:hover {
        animation: none;
        transform: translateY(-5px) scale(1.02);
        z-index: 1000;
    }
    
    /* Ensure mobile hover visibility */
    .social-button:hover,
    .social-button:hover * {
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000;
    }
    
    .social-button:hover .social-button-icon {
        animation: none;
        transform: scale(1.05);
    }
    
    /* Reduce card padding on very small screens */
    .social-media-card {
        margin: 1.5rem 0;
        border-radius: 15px;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-header {
        padding: 1rem 1rem 0.5rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-body {
        padding: 1rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-footer {
        padding: 0.75rem 1rem 1rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .social-media-card-subtitle {
        font-size: 0.85rem;
        /* Force visibility on very small screens */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Optimize card animations for very small screens */
    .social-media-card {
        animation: none;
        transform: none;
    }
    
    .social-media-card-header,
    .social-media-card-body,
    .social-media-card-footer {
        animation: none;
        transform: none;
    }
    
    /* Ensure all social media elements are visible on very small screens */
    .social-media-card * {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Social button entrance animations */
.social-button {
    opacity: 0;
    transform: translateY(30px);
    animation: socialButtonEntrance 0.8s ease-out forwards;
    position: relative;
    z-index: 1;
}

/* Ensure buttons are always visible */
.social-button,
.social-button * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force button visibility in all states */
.social-button,
.social-button:focus,
.social-button:hover,
.social-button:active,
.social-button:visited {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.social-button *,
.social-button:focus *,
.social-button:hover *,
.social-button:active *,
.social-button:visited * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Add subtle background pattern */
.social-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button:hover::after {
    opacity: 1;
}

.social-button:nth-child(1) {
    animation-delay: 0.1s;
}

.social-button:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes socialButtonEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social button glow effect on hover */
.social-button.facebook:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(24, 119, 242, 0.3);
}

.social-button.instagram:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(220, 39, 67, 0.3);
}

/* Enhanced hover effects for light theme */
[data-theme="light"] .social-button.facebook:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(24, 119, 242, 0.25);
}

[data-theme="light"] .social-button.instagram:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(220, 39, 67, 0.25);
}

/* Social button text gradient effect */
.social-button:hover .social-button-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced text effects for light theme */
[data-theme="light"] .social-button:hover .social-button-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced social button backgrounds */
.social-button {
    background: linear-gradient(135deg, 
        var(--card-dark) 0%, 
        rgba(255, 215, 0, 0.05) 100%
    );
}

[data-theme="light"] .social-button {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(255, 215, 0, 0.05) 100%
    );
}

/* Social button border gradient on hover */
.social-button:hover {
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
    border-image-slice: 1;
}

/* Social button icon shine effect */
.social-button-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.social-button:hover .social-button-icon::before {
    left: 100%;
    opacity: 1;
    visibility: visible;
}

/* Enhanced icon effects */
.social-button:hover .social-button-icon {
    filter: brightness(1.1) contrast(1.1);
}

/* Icon pulse effect on hover */
.social-button.facebook:hover .social-button-icon {
    animation: facebookPulse 1.5s ease-in-out infinite;
}

.social-button.instagram:hover .social-button-icon {
    animation: instagramPulse 1.5s ease-in-out infinite;
}

@keyframes facebookPulse {
    0%, 100% { 
        transform: scale(1.1) rotate(5deg); 
        box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    }
    50% { 
        transform: scale(1.15) rotate(0deg); 
        box-shadow: 0 12px 30px rgba(24, 119, 242, 0.6);
    }
}

@keyframes instagramPulse {
    0%, 100% { 
        transform: scale(1.1) rotate(-5deg); 
        box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    }
    50% { 
        transform: scale(1.15) rotate(0deg); 
        box-shadow: 0 12px 30px rgba(220, 39, 67, 0.6);
    }
}

/* Social button scale effect on click */
.social-button:active {
    transform: translateY(-10px) scale(0.98);
}

/* Active state effects */
.social-button:active .social-button-icon {
    transform: scale(0.95);
}

.social-button:active .social-button-text {
    transform: scale(0.98);
}

/* Active state for light theme */
[data-theme="light"] .social-button:active {
    background: linear-gradient(135deg, 
                rgba(255, 215, 0, 0.1),
        rgba(255, 215, 0, 0.05)
    );
}

/* Enhanced hover effects with 3D transforms */
.social-button:hover {
    transform: translateY(-15px) scale(1.05) rotateX(5deg);
    perspective: 1000px;
    z-index: 1000;
}

/* Ensure hover state visibility */
.social-button:hover,
.social-button:hover * {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000;
}

/* Hover state for light theme */
[data-theme="light"] .social-button:hover {
    transform: translateY(-15px) scale(1.05);
    perspective: none;
    z-index: 1000;
}

/* Ensure light theme hover visibility */
[data-theme="light"] .social-button:hover,
[data-theme="light"] .social-button:hover * {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000;
}

/* Hover state for mobile devices */
@media (max-width: 768px) {
    .social-button:hover {
        transform: translateY(-10px) scale(1.02);
        perspective: none;
    }
    
    [data-theme="light"] .social-button:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Social button 3D card effect */
.social-button {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Social button icon 3D rotation */
.social-button:hover .social-button-icon {
    transform: scale(1.1) rotateY(10deg) rotateZ(5deg);
}

/* Icon rotation for light theme */
[data-theme="light"] .social-button:hover .social-button-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon rotation for mobile devices */
@media (max-width: 768px) {
    .social-button:hover .social-button-icon {
        transform: scale(1.05) rotate(5deg);
    }
    
    [data-theme="light"] .social-button:hover .social-button-icon {
        transform: scale(1.05) rotate(5deg);
    }
}

/* Social button text 3D effect */
.social-button:hover .social-button-text {
    transform: scale(1.05) translateZ(20px);
}

/* Text effect for light theme */
[data-theme="light"] .social-button:hover .social-button-text {
    transform: scale(1.05);
}

/* Text effect for mobile devices */
@media (max-width: 768px) {
    .social-button:hover .social-button-text {
        transform: scale(1.02);
    }
    
    [data-theme="light"] .social-button:hover .social-button-text {
        transform: scale(1.02);
    }
}

/* Enhanced gradient backgrounds */
.social-button.facebook {
    background: linear-gradient(135deg, 
        var(--card-dark) 0%, 
        rgba(24, 119, 242, 0.1) 50%,
        rgba(24, 119, 242, 0.05) 100%
    );
}

[data-theme="light"] .social-button.facebook {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(24, 119, 242, 0.08) 50%,
        rgba(24, 119, 242, 0.03) 100%
    );
}

[data-theme="light"] .social-button.instagram {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(220, 39, 67, 0.08) 50%,
        rgba(220, 39, 67, 0.03) 100%
    );
}

.social-button.instagram {
    background: linear-gradient(135deg, 
        var(--card-dark) 0%, 
        rgba(220, 39, 67, 0.1) 50%,
        rgba(220, 39, 67, 0.05) 100%
    );
}

[data-theme="light"] .social-button.facebook {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(24, 119, 242, 0.1) 50%,
        rgba(24, 119, 242, 0.05) 100%
    );
}

[data-theme="light"] .social-button.instagram {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(220, 39, 67, 0.1) 50%,
        rgba(220, 39, 67, 0.05) 100%
    );
}

/* Social button disabled state */
.social-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Disabled state for light theme */
[data-theme="light"] .social-button.disabled {
    opacity: 0.4;
    background: var(--light-bg);
    border-color: var(--light-border);
}

/* Disabled state effects */
.social-button.disabled .social-button-icon {
    filter: grayscale(100%);
}

.social-button.disabled .social-button-text {
    color: var(--text-muted);
}

[data-theme="light"] .social-button.disabled .social-button-text {
    color: var(--light-text-muted);
}

/* Social button success state */
.social-button.success .social-button-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.social-button.success {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

/* Social button error state */
.social-button.error .social-button-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border-color: #dc3545;
}

.social-button.error {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

/* Success and error states for light theme */
[data-theme="light"] .social-button.success {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(40, 167, 69, 0.1) 100%
    );
}

[data-theme="light"] .social-button.error {
    background: linear-gradient(135deg, 
        var(--light-bg) 0%, 
        rgba(220, 53, 69, 0.1) 100%
    );
}

/* ===== CRITICAL MOBILE VISIBILITY FIXES ===== */

/* Force visibility for all social media elements on mobile */
@media (max-width: 768px) {
    /* Override any hidden states */
    .social-media-card,
    .social-media-card *,
    .social-button,
    .social-button * {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Ensure social buttons are properly displayed */
    .social-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .social-button-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .social-button-text {
        display: block !important;
    }
    
    /* Override any CSS that might hide elements */
    .social-media-card.hidden,
    .social-button.hidden {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure proper stacking context */
    .social-media-card {
        position: relative;
        z-index: 1;
    }
    
    .social-button {
        position: relative;
        z-index: 2;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    /* Force all elements to be visible */
    .social-media-card,
    .social-media-card *,
    .social-button,
    .social-button * {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Ensure proper button layout */
    .social-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px;
    }
    
    /* Override any problematic CSS */
    .social-media-card[style*="display: none"],
    .social-button[style*="display: none"] {
        display: block !important;
    }
    
    .social-media-card[style*="visibility: hidden"],
    .social-button[style*="visibility: hidden"] {
        visibility: visible !important;
    }
    
    .social-media-card[style*="opacity: 0"],
    .social-button[style*="opacity: 0"] {
        opacity: 1 !important;
    }
}

/* ===== FOOTER SOCIAL LINKS STYLES ===== */

/* Footer social links container */
.footer-social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* Footer social link */
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer Facebook link */
.footer-social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border: 2px solid #1877f2;
}

.footer-social-link.facebook:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
    color: white;
}

/* Footer Instagram link */
.footer-social-link.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border: 2px solid #dc2743;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(135deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
    color: white;
}

/* Footer social link icon */
.footer-social-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover i {
    transform: scale(1.1);
}

/* Footer social link ripple effect */
.footer-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.footer-social-link:hover::before {
    width: 100px;
    height: 100px;
}

/* Footer social link focus states */
.footer-social-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive footer social links */
@media (max-width: 768px) {
    .footer-social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-social-link {
        width: 50px;
        height: 50px;
    }
    
    .footer-social-link i {
        font-size: 1.3rem;
    }
}

/* ===== MOBILE VISIBILITY ENFORCEMENT ===== */

/* Force social media section visibility on all devices */
.social-media-card,
.social-media-card *,
.social-button,
.social-button * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Ensure social buttons are properly displayed */
.social-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
}

.social-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

.social-button-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-button-text {
    display: block !important;
}

/* Mobile-specific overrides */
@media (max-width: 768px) {
    .social-media-card {
        margin: 2rem 0 !important;
        padding: 1rem !important;
        background: var(--card-dark) !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    .social-buttons-container {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .social-button {
        min-width: 200px !important;
        padding: 1.25rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .social-button-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .social-button-text {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .social-media-card {
        margin: 1rem 0 !important;
        padding: 0.75rem !important;
    }
    
    .social-button {
        min-width: 180px !important;
        padding: 1rem !important;
    }
    
    .social-button-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
    
    .social-button-text {
        font-size: 0.9rem !important;
    }
}
