/* ========================================
   VARIÁVEIS E RESET - NOVO DESIGN AZUL
   ======================================== */
:root {
    --primary-color: #0e0e0e;      /* Azul escuro principal */
    --primary-light: #303030;      /* Azul claro */
    --bg-color: #ffffff;           /* Fundo branco */
    --card-bg: #f8fafc;            /* Fundo card claro */
    --text-primary: #1e293b;       /* Texto escuro */
    --text-secondary: #64748b;     /* Texto cinza */
    --border-color: #e2e8f0;       /* Borda clara */
    --success-color: #10b981;      /* Verde */
    --transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #0f172a;           /* Fundo escuro */
    --card-bg: #1e293b;            /* Fundo card escuro */
    --text-primary: #ffffff;       /* Texto branco */
    --text-secondary: #cbd5e1;     /* Texto cinza claro */
    --border-color: #334155;       /* Borda escura */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-light);
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   PROFILE SECTION
   ======================================== */
.profile {
    text-align: center;
    padding: 30px 0 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    /* border: 3px solid var(--primary-light); */
    /* box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.social-btn.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.5);
}

.social-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-btn.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ========================================
   LINKS SECTION
   ======================================== */
.links-section {
    flex: 1;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Separador entre lojas */
.store-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
    opacity: 0.5;
}

/* ========================================
   SECTOR GROUP
   ======================================== */
.sector-group {
    margin-bottom: 35px;
}

.sector-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   LINK CARD - NOVO DESIGN
   ======================================== */
.link-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0e0e0e, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    /*border-color:#0e0e0e;*/
    box-shadow: 0 8px 25px #0e0e0e;
    transform: translateY(-2px);
}

.link-card:hover::before {
    opacity: 1;
}

/* Store Header com Avatar */
.store-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

.store-info {
    flex: 1;
    min-width: 0;
}

.store-info h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Store Footer com rota e botões */
.store-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.route-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.route-text i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Store Actions (Botões) */
.store-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.action-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 2px 8px rgba(188, 24, 136, 0.3);
}

.action-btn.instagram:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.5);
}

.action-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.action-btn.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
}

.action-btn.maps {
    background: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.action-btn.maps:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.5);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 20px 0;
}

.cta-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.cta-btn:active {
    transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }

    .profile {
        padding: 20px 0 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .profile {
        padding: 15px 0 10px;
    }

    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }

    .profile h1 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .bio {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .social-links {
        gap: 12px;
        margin-bottom: 20px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .links-container {
        gap: 12px;
    }

    .link-card {
        padding: 12px;
        gap: 10px;
    }

    .store-avatar {
        width: 55px;
        height: 55px;
    }

    .store-info h3 {
        font-size: 0.95rem;
    }

    .store-address {
        font-size: 0.8rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .route-text {
        font-size: 0.75rem;
        gap: 6px;
    }

    .route-text i {
        font-size: 0.9rem;
    }

    .sector-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .cta-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .footer {
        font-size: 0.75rem;
        padding: 15px 0;
    }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL
   ======================================== */
@media (max-width: 360px) {
    .profile h1 {
        font-size: 1.1rem;
    }

    .store-info h3 {
        font-size: 0.9rem;
    }

    .store-address {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .store-actions {
        gap: 8px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .route-text span {
        font-size: 0.7rem;
    }

    .sector-title {
        font-size: 0.95rem;
    }
}

/* ========================================
   NO STORES MESSAGE
   ======================================== */
.no-stores {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 1rem;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   ERROR MESSAGE
   ======================================== */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.error-message i {
    font-size: 1.3rem;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: fadeIn 0.5s ease forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
