/* ===== CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-red: #e31e24;
    --dark-red: #b71c1c;
    --light-red: #ff5252;
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 8px 24px rgba(227, 30, 36, 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND ANIMADO ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--dark-red);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px 40px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ===== LOGO SECTION ===== */
.logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-red);
    box-shadow: var(--shadow-red), 0 0 40px rgba(227, 30, 36, 0.2);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.logo {
    width: 130%;
    height: 130%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 130%;
    max-height: 130%;
    transform-origin: center center;
}

.logo-container:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.logo-container:active .logo {
    transform: none;
}

/* ===== BADGE VERIFICADO ===== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(227, 30, 36, 0.15);
    border: 1px solid rgba(227, 30, 36, 0.3);
    border-radius: 24px;
    margin: 0 auto 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    animation: fadeInUp 0.6s ease 0.2s both;
    line-height: 1;
}

.verified-badge i {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* ===== NOME DA MARCA ===== */
.brand-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.3;
    animation: fadeInUp 0.6s ease 0.3s both;
    display: block;
}

/* ===== BIO CARD ===== */
.bio-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
}

.bio strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bio .emoji {
    font-size: 18px;
    display: inline-block;
    margin-right: 4px;
}

.bio .divider {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    vertical-align: middle;
}

/* ===== ESTATÍSTICAS ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:active {
    transform: scale(0.95);
    background: rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.3);
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-red);
}

.stat-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== BOTÕES DE LINKS ===== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.link-button:active::before {
    left: 100%;
}

.link-button:active {
    transform: scale(0.98);
}

/* Animação de entrada dos botões */
.link-button {
    animation: fadeInUp 0.5s ease both;
}

.link-button:nth-child(1) { animation-delay: 0.6s; }
.link-button:nth-child(2) { animation-delay: 0.7s; }
.link-button:nth-child(3) { animation-delay: 0.8s; }
.link-button:nth-child(4) { animation-delay: 0.9s; }
.link-button:nth-child(5) { animation-delay: 1s; }
.link-button:nth-child(6) { animation-delay: 1.1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.button-icon i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.link-button:active .button-icon i {
    transform: scale(1.2);
}

.button-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.button-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.button-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.button-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-button:active .button-arrow {
    transform: translateX(4px);
}

/* ===== BOTÕES ESPECÍFICOS ===== */
.whatsapp-btn:active {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.2) 100%);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active .button-icon {
    background: rgba(37, 211, 102, 0.2);
}

.whatsapp-btn .button-icon i {
    color: #25D366;
}

.instagram-btn:active {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.2) 0%, rgba(188, 24, 136, 0.2) 100%);
    border-color: rgba(240, 148, 51, 0.5);
    box-shadow: 0 8px 24px rgba(240, 148, 51, 0.3);
}

.instagram-btn:active .button-icon {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.3), rgba(188, 24, 136, 0.3));
}

.instagram-btn .button-icon i {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.catalog-btn:active {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.2) 0%, rgba(183, 28, 28, 0.2) 100%);
    border-color: rgba(227, 30, 36, 0.5);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.3);
}

.catalog-btn:active .button-icon {
    background: rgba(227, 30, 36, 0.2);
}

.catalog-btn .button-icon i {
    color: var(--primary-red);
}

.location-btn:active {
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.2) 0%, rgba(245, 124, 0, 0.2) 100%);
    border-color: rgba(255, 160, 0, 0.5);
    box-shadow: 0 8px 24px rgba(255, 160, 0, 0.3);
}

.location-btn:active .button-icon {
    background: rgba(255, 160, 0, 0.2);
}

.location-btn .button-icon i {
    color: #FFA000;
}

.hours-btn:active {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.2) 0%, rgba(21, 101, 192, 0.2) 100%);
    border-color: rgba(30, 136, 229, 0.5);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}

.hours-btn:active .button-icon {
    background: rgba(30, 136, 229, 0.2);
}

.hours-btn .button-icon i {
    color: #1E88E5;
}

.share-btn:active {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.2) 0%, rgba(0, 137, 123, 0.2) 100%);
    border-color: rgba(0, 191, 165, 0.5);
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.3);
}

.share-btn:active .button-icon {
    background: rgba(0, 191, 165, 0.2);
}

.share-btn .button-icon i {
    color: #00BFA5;
}

/* Botão primário (WhatsApp) com destaque */
.primary-btn {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.15) 100%);
    border: 2px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

/* ===== SEÇÃO SOCIAL ===== */
.social-section {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 1.2s both;
}

.social-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-icon:active {
    transform: scale(0.9) rotate(10deg);
}

.social-icon.instagram:active {
    background: linear-gradient(135deg, #f09433 0%, #bc1888 100%);
    border-color: #f09433;
    box-shadow: 0 8px 24px rgba(240, 148, 51, 0.4);
}

.social-icon.whatsapp:active {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.social-icon.facebook:active {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.6s ease 1.3s both;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-made {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-made i {
    color: var(--primary-red);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border-radius: 32px 32px 0 0;
    padding: 32px 24px 40px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:active {
    transform: scale(0.9) rotate(90deg);
    background: rgba(227, 30, 36, 0.2);
    color: var(--primary-red);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-header i {
    font-size: 32px;
    color: var(--primary-red);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.hours-item:active {
    background: rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.3);
}

.hours-item.closed {
    opacity: 0.5;
}

.hours-day {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.hours-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
}

.hours-item.closed .hours-time {
    color: var(--text-muted);
}

.modal-cta {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.modal-cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.modal-cta i {
    font-size: 20px;
}

/* ===== RESPONSIVIDADE EXTRA ===== */
@media (max-width: 380px) {
    .container {
        padding: 24px 16px 32px;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
        padding: 3px;
    }
    
    .verified-badge {
        font-size: 13px;
        padding: 7px 16px;
        gap: 6px;
    }
    
    .verified-badge i {
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 26px;
    }
    
    .bio-card {
        padding: 20px 16px;
    }
    
    .bio {
        font-size: 14px;
    }
    
    .stat-item {
        padding: 12px 6px;
    }
    
    .stat-item i {
        font-size: 20px;
    }
    
    .stat-item span {
        font-size: 11px;
    }
    
    .link-button {
        padding: 16px 16px;
    }
    
    .button-icon {
        width: 46px;
        height: 46px;
    }
    
    .button-icon i {
        font-size: 22px;
    }
    
    .button-title {
        font-size: 15px;
    }
    
    .button-subtitle {
        font-size: 12px;
    }
}

/* ===== LANDSCAPE MODE (CELULAR DEITADO) ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .logo-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        padding: 3px;
    }
    
    .verified-badge {
        margin-bottom: 8px;
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .verified-badge i {
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .bio-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .stats-container {
        margin-bottom: 16px;
    }
    
    .links-container {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .link-button {
        padding: 14px 16px;
    }
}

/* ===== DARK MODE SUPORTE (AUTOMÁTICO) ===== */
@media (prefers-color-scheme: light) {
    /* Caso queira adaptar para tema claro, adicione aqui */
}

/* ===== ANIMAÇÕES DE SCROLL (OPCIONAL) ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
