/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35, #f7931e, #c44569, #8b5cf6, #3b82f6);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --verified-color: #007aff;
    --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --apple-spacing-xs: 8px;
    --apple-spacing-sm: 12px;
    --apple-spacing-md: 16px;
    --apple-spacing-lg: 24px;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
}

body {
    line-height: 1.5;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container-fluid {
    padding: var(--apple-spacing-md);
    min-height: 100vh;
}

.main-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: var(--apple-spacing-lg) 20px;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* ===== SEÇÃO DO PERFIL ===== */
.profile-section {
    margin-bottom: var(--apple-spacing-lg);
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--apple-spacing-sm);
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.03);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: -0.02em;
}

.verified-icon {
    color: var(--verified-color);
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 122, 255, 0.3));
}

/* ===== SEÇÃO DE LINKS ===== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: var(--apple-spacing-xs);
    margin-bottom: var(--apple-spacing-lg);
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--apple-spacing-md);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.link-button::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.4s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    text-decoration: none;
}

.link-button:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.link-button i:first-child {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.link-button span {
    flex: 1;
    text-align: center;
    margin: 0 var(--apple-spacing-xs);
}

.link-button .link-external {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.link-button:hover .link-external {
    opacity: 0.8;
    transform: translateX(2px);
}

/* Estilos específicos para cada botão */
.btn-delivery:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    border-color: #10b981;
}

.btn-reservation:hover {
    background: linear-gradient(135deg, #25d366, #22c55e);
    color: white;
    border-color: #25d366;
}

.btn-location:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    border-color: #ef4444;
}

.btn-featured {
    background: linear-gradient(135deg, #262626, #000000);
    color: white;
    border-color: #64C9ED;
    font-weight: 600;
    position: relative;
    box-shadow: 0 2px 8px rgba(92, 236, 246, 0.25);
}

.btn-featured::after {
    content: '★';
    position: absolute;
    top: calc(50% - 9px);
    right: 13px;
    background: #fbbf24;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.btn-featured:hover {
    background: #64C9ED;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(92, 236, 246, 0.25);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== SEÇÃO SOCIAL ===== */
.social-section {
    text-align: center;
}

.social-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--apple-spacing-md);
    letter-spacing: -0.01em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--apple-spacing-sm);
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--social-color);
    transform: scale(0);
    transition: var(--transition);
    border-radius: 50%;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    color: white;
    border-color: var(--social-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon:active {
    transform: translateY(-1px);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: var(--apple-spacing-xs) 0;
    z-index: 1000;
}

.footer-text {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container-fluid {
        padding: var(--apple-spacing-sm);
    }
    
    .main-card {
        padding: 20px var(--apple-spacing-md);
        max-width: 100%;
        margin-bottom: 60px;
        border-radius: 16px;
    }
    
    .profile-image {
        width: 75px;
        height: 75px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .link-button {
        padding: 11px 14px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: var(--apple-spacing-md) 16px;
        border-radius: 14px;
    }
    
    .profile-name {
        font-size: 1.15rem;
    }
    
    .link-button {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    .link-button i:first-child {
        font-size: 1rem;
        width: 18px;
    }
    
    .social-title {
        font-size: 0.85rem;
        margin-bottom: var(--apple-spacing-sm);
    }
    
    .links-section {
        gap: 6px;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.link-button:focus,
.social-icon:focus,
.footer-link:focus {
    outline: 2px solid var(--verified-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* ===== LOADING STATES ===== */
.profile-image {
    background-color: #f5f5f7;
}

.profile-image[src=""] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='32' fill='%23e5e5e7'/%3E%3Ccircle cx='40' cy='32' r='12' fill='%23d1d1d6'/%3E%3Cpath d='M20 60 Q20 48 40 48 Q60 48 60 60' fill='%23d1d1d6'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ===== OTIMIZAÇÕES APPLE-STYLE ===== */
.main-card {
    /* Sombra mais sutil e elegante */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 16px 24px rgba(0, 0, 0, 0.04);
}

.link-button {
    /* Altura mínima otimizada para toque */
    min-height: 48px;
    /* Espaçamento interno mais compacto */
    padding: 10px var(--apple-spacing-md);
}

/* Micro-interações elegantes */
.link-button:hover {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.social-icon:hover {
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white !important;
    }
    
    .main-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .footer-section {
        position: static !important;
        background: white !important;
    }
    
    .footer-text, .footer-link {
        color: #000 !important;
    }
}