/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.logo:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.header h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.header h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    animation: letterBounce 0.8s ease-out forwards;
}

.header h1 span:nth-child(1) { animation-delay: 0.1s; }
.header h1 span:nth-child(2) { animation-delay: 0.2s; }
.header h1 span:nth-child(3) { animation-delay: 0.3s; }
.header h1 span:nth-child(4) { animation-delay: 0.4s; }
.header h1 span:nth-child(5) { animation-delay: 0.5s; }
.header h1 span:nth-child(6) { animation-delay: 0.6s; }
.header h1 span:nth-child(7) { animation-delay: 0.7s; }
.header h1 span:nth-child(8) { animation-delay: 0.8s; }
.header h1 span:nth-child(9) { animation-delay: 0.9s; }
.header h1 span:nth-child(10) { animation-delay: 1.0s; }
.header h1 span:nth-child(11) { animation-delay: 1.1s; }
.header h1 span:nth-child(12) { animation-delay: 1.2s; }
.header h1 span:nth-child(13) { animation-delay: 1.3s; }

@keyframes letterBounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header h1:hover span {
    animation: letterHover 0.3s ease-in-out;
}

@keyframes letterHover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Card de Localização */
.location-card {
    border-color: #4A90E2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.location-card .card-icon {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.location-card h3 {
    color: #4A90E2;
}

.location-detail {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 15px !important;
}

.local-service-detail {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 15px !important;
    background: rgba(108, 117, 125, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.location-status {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

/* Card Ativo */
.card.active {
    border-color: #25D366;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2);
}

.card.active:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.3);
}

/* Card Inativo */
.card.inactive {
    opacity: 0.6;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-color: #ddd;
}

.card.inactive:hover {
    opacity: 0.8;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Ícones dos Cards */
.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.card.active .card-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

.card.inactive .card-icon {
    background: linear-gradient(135deg, #ccc, #999);
    color: #666;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Títulos e Textos */
.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card.active h3 {
    color: #25D366;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.delivery-minimum {
    font-size: 0.9rem;
    color: #25D366;
    font-weight: 600;
    margin-bottom: 15px !important;
    background: rgba(37, 211, 102, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.free-delivery-promo {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: pulse-promo 2s ease-in-out infinite;
}

.free-delivery-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

.free-delivery-promo i {
    font-size: 1.2rem;
    margin-right: 8px;
    animation: bounce-gift 1.5s ease-in-out infinite;
}

.free-delivery-promo span {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.free-delivery-promo small {
    font-size: 0.8rem;
    opacity: 0.9;
    font-style: italic;
}

@keyframes pulse-promo {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes bounce-gift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Status dos Cards - Oculto por padrão */
.card-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card-status.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.active-status {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

.inactive-status {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: slideInUp 1s ease-out;
}

.social-media {
    margin-bottom: 25px;
}

.social-media h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #0D47A1);
    border-color: rgba(24, 119, 242, 0.3);
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    border-color: rgba(228, 64, 95, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #833AB4, #E4405F);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip.show {
    opacity: 1;
}

/* Animações */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
    }
}

/* Delay para animação dos cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }
.card:nth-child(10) { animation-delay: 1.0s; }

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

/* Efeitos especiais para hover */
.card.active:hover .card-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.1) rotate(10deg);
    }
    40% {
        transform: translateY(-10px) scale(1.1) rotate(10deg);
    }
    60% {
        transform: translateY(-5px) scale(1.1) rotate(10deg);
    }
}

/* Partículas flutuantes (efeito decorativo) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}
