/* Sistema de Fidelidade - Estilos */

/* Additional gradient colors for fidelidade */
.from-purple-50 { --tw-gradient-from: #faf5ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0)); }
.via-pink-50 { --tw-gradient-via: #fdf2f8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, rgba(253, 242, 248, 0)); }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.from-purple-100 { --tw-gradient-from: #f3e8ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(243, 232, 255, 0)); }
.to-pink-100 { --tw-gradient-to: #fce7f3; }
.from-purple-600 { --tw-gradient-from: #9333ea; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0)); }
.to-pink-600 { --tw-gradient-to: #db2777; }
.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.to-pink-500 { --tw-gradient-to: #ec4899; }

.text-purple-700 { color: #7e22ce; }
.text-purple-600 { color: #9333ea; }
.bg-pink-500 { background-color: #ec4899; }

/* Mockup Carousel Container */
.mockup-carousel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.mockup-stack-container {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.mockup-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.mockup-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Fidelidade Dashboard Mockup (Admin View) */
.fidelidade-mockup-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.fidelidade-mockup-wrapper {
    position: relative;
}

.fidelidade-dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.fidelidade-header {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fidelidade-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.fidelidade-icon {
    font-size: 1.5rem;
}

.fidelidade-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.fidelidade-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cards Grid */
.fidelidade-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.fidelidade-card {
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
    border: 1px solid #f3e8ff;
    border-radius: 12px;
    padding: 1.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-period {
    font-size: 0.75rem;
    color: #9333ea;
    font-weight: 600;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.card-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-value.positive {
    color: #9333ea;
}

.card-trend {
    font-size: 0.8125rem;
    color: #6b7280;
}

.card-trend.positive {
    color: #10b981;
}

/* Promoções Section */
.fidelidade-promocoes-section {
    padding: 0 1.5rem 1.5rem;
}

.promocoes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.promocoes-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.add-promocao-btn {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-promocao-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.promocao-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.promocao-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promocao-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.promocao-values {
    font-size: 0.75rem;
    color: #6b7280;
}

.promocao-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.promocao1 {
    background: linear-gradient(90deg, #9333ea, #db2777);
}

.progress-fill.promocao2 {
    background: linear-gradient(90deg, #6366f1, #9333ea);
}

.progress-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9333ea;
    min-width: 35px;
}

.promocao-status {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.promocao-status.success {
    background: #d1fae5;
    color: #059669;
}

.promocao-status.good {
    background: #dbeafe;
    color: #2563eb;
}

/* Chart Mini */
.fidelidade-chart-mini {
    padding: 0 1.5rem 1.5rem;
}

.chart-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.mini-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    padding: 0 0.5rem;
}

.bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    min-height: 20%;
    transition: all 0.3s ease;
}

.bar.purple {
    background: linear-gradient(to top, #9333ea, #c084fc);
}

.bar.pink {
    background: linear-gradient(to top, #db2777, #f472b6);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0 0.5rem;
}

/* Fidelidade Floating Elements */
.fidelidade-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Cliente View */
.fidelidade-cliente-mockup-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.fidelidade-cliente-mockup-wrapper {
    position: relative;
}

.fidelidade-cliente-dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* Cliente Site Header */
.cliente-site-header {
    background: #1f2937;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.logo {
    font-size: 1rem;
}

.brand-name {
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 0.75rem;
}

.nav-item {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-item.active {
    background: rgba(147, 51, 234, 0.3);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-size: 0.75rem;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #db2777);
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Cliente Header */
.cliente-header {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cliente-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.cliente-icon {
    font-size: 1.25rem;
}

.cliente-user {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

/* Cliente Navegação */
.cliente-navegacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.nav-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: #6b7280;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #e5e7eb;
    color: #9333ea;
}

.indicadores {
    display: flex;
    gap: 0.5rem;
}

.indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.2s;
}

.indicador.ativo {
    background: linear-gradient(135deg, #9333ea, #db2777);
    width: 24px;
    border-radius: 4px;
}

/* Cliente Cartão */
.cliente-cartao-container {
    padding: 0 1.5rem 1.5rem;
}

.cliente-cartao {
    perspective: 1000px;
    margin-bottom: 1rem;
}

.cartao-frente {
    background: linear-gradient(135deg, #9333ea, #db2777);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cartao-frente::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cartao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cartao-logo {
    font-size: 2rem;
}

.cartao-nome {
    font-size: 1rem;
    font-weight: 600;
}

.cartao-pontos {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pontos-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pontos-atual {
    font-size: 3rem;
    font-weight: 700;
}

.pontos-separador {
    font-size: 1.5rem;
    opacity: 0.7;
}

.pontos-total {
    font-size: 1.5rem;
    opacity: 0.9;
}

.pontos-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.cartao-progress {
    margin-bottom: 1.5rem;
}

.progress-bar-cliente {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill-cliente {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8125rem;
    text-align: center;
    opacity: 0.9;
}

.cartao-chip {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Cliente Controles */
.cliente-controles {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-flip,
.btn-historico {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-flip:hover,
.btn-historico:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Cliente Stats */
.cliente-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
    border-radius: 12px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #9333ea;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Cliente Site Footer */
.cliente-site-footer {
    background: #1f2937;
    color: white;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand {
    font-weight: 600;
}

.footer-tagline {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
}

/* Cliente Floating Elements */
.cliente-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Mockup Arrow Navigation */
.mockup-arrow-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.mockup-arrow-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #9333ea;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mockup-arrow-button:hover {
    background: #9333ea;
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .fidelidade-cards-grid {
        gap: 0.75rem;
    }

    .promocao-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mockup-arrow-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
