﻿.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-gap: 0.5rem;
    justify-content: center;
    width: 100%;
    /*    max-width: 420px;
*/ margin: 0 auto;
    padding: 1rem 0.75rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-btn {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    min-height: 64px;
    min-width: 64px;
}

    /* Brand-specific colors */
    .social-btn.whatsapp {
        background: #fff;
        color: #25D366;
    }

    .social-btn.facebook {
        background: #fff;
        color: #1877F2;
    }

    .social-btn.instagram {
        background: #fff;
        color: #E4405F;
    }

    .social-btn.location {
        background: #fff;
        color: #FF6B35;
    }

    .social-btn.phone {
        background: #fff;
        color: #10B981;
    }

    .social-btn.website {
        background: #fff;
        color: #3B82F6;
    }

    .social-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .social-btn:hover::before,
    .social-btn:focus::before {
        left: 100%;
    }

    .social-btn:hover,
    .social-btn:focus {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }

    .social-btn:active {
        transform: translateY(-2px) scale(1.02);
    }

    .social-btn i {
        pointer-events: none;
        transition: transform 0.25s ease;
    }

    .social-btn:hover i,
    .social-btn:focus i {
        transform: scale(1.1);
    }

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.025em;
    text-align: center;
    line-height: 1.3;
    user-select: none;
    transition: color 0.25s ease;
    margin-top: 0.25rem;
}

.btn-group:hover .contact-label {
    color: #1cb5e0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .social-media-grid {
        grid-template-columns: repeat(3, 1fr);
/*        max-width: 300px;
*/        grid-gap: 1rem;
/*        padding: 35px;
*/    }

    .social-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        min-height: 56px;
        min-width: 56px;
    }

    .contact-label {
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .social-media-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        width: 100%;
        grid-gap: 1.25rem;
        padding: 0.5rem;
    }

    .social-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .contact-label {
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-btn {
        border: 2px solid rgba(0,0,0,0.2);
    }

    .contact-label {
        font-weight: 700;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-btn,
    .social-btn i,
    .social-btn::before {
        transition: none;
    }

        .social-btn:hover,
        .social-btn:focus {
            transform: none;
        }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-btn {
        background: #1f2937;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

        .social-btn:hover,
        .social-btn:focus {
            box-shadow: 0 12px 32px rgba(28, 181, 224, 0.4);
        }

    .contact-label {
        color: #f9fafb;
    }
}
