/* ======================== */
/* Tracinho Feliz - Estilos */
/* ======================== */

:root {
    --primary: #a68ef3;
    --primary-dark: #8b6fe0;
    --primary-light: #c8b2e7;
    --accent: #f1a5ba;
    --accent-dark: #e0879e;
    --secondary: #b0dfef;
    --highlight: #fadf8d;
    --bg-cream: #faf8ec;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: #151410;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Brand */
.brand-icon {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 12px;
    object-fit: contain;
}

.brand-logo {
    height: 32px;
    max-height: 32px;
    max-width: 160px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Primary button override */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(166, 142, 243, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Cards */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-product {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-product:hover {
    color: inherit;
}

.card-product:hover .card-title {
    color: var(--primary);
}

.card-product .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.product-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}

/* Badges */
.badge-digital {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 50px;
}

.badge-physical {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 50px;
}

.badge-promo {
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 50px;
}

/* Price */
.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Feature boxes */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* Input fields */
.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(166, 142, 243, 0.15);
}

/* Account Nav */
.account-nav .nav-link {
    color: #6b7280;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.account-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.account-nav .nav-link:hover:not(.active) {
    background: #f3f4f6;
    color: var(--primary);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

/* Admin stats */
.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f3eeff, #fce8ee);
    padding: 4rem 0;
}

/* Pagination override */
.page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Table styles */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hover links */
.hover-light:hover {
    color: var(--primary-light) !important;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}
