/* style.css - CSS GLOBAL CORRETO */
/* === VARIÁVEIS DE COR === */
:root {
    --gold: #d4af37;
    --black: #333333;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #777777;
    --error: #e74c3c;
    --success: #2ecc71;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === FONTES === */
@font-face {
    font-family: 'AlimamaShuHeiTi';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlimamaShuHeiTi-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'AlibabaSans';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Regular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'AlibabaSans';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Medium.otf') format('opentype');
    font-weight: 500;
}

/* === ANIMAÇÕES DO REACT ADAPTADAS === */
@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes card-glow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* === RESET BÁSICO === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'AlibabaSans', sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

/* === LOGO UNIVERSAL COM EFEITOS REACT === */
.logo {
    font-family: 'AlimamaShuHeiTi', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.5px;
    will-change: filter;
    transition: filter 300ms, transform 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 1.8em rgba(212, 175, 55, 0.35));
    transform: translateY(-1px);
}

.logo span {
    color: var(--gold);
}

/* React hover effect adaptado */
.logo.react:hover {
    filter: drop-shadow(0 0 2em rgba(212, 175, 55, 0.6));
}

/* === HEADER UNIVERSAL MELHORADO === */
header {
    background-color: var(--white);
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-medium);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s, transform 0.2s ease;
    font-size: 16px;
    position: relative;
    will-change: transform;
}

nav ul li a:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--black);
    will-change: transform, background-color;
}

.icon-btn:hover {
    background-color: var(--gray-light);
    color: var(--gold);
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.2));
}

.header-icons i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.icon-btn:hover i {
    transform: scale(1.1);
}

/* === SISTEMA DE CARDS MELHORADO === */
.card {
    padding: 2em;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: card-glow 2s ease-in-out infinite;
}

/* Aplicar a produtos, info cards, etc */
.product-card,
.info-card,
.payment-card,
.filter-section {
    padding: 1.5em;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    will-change: transform, box-shadow;
}

.product-card:hover,
.info-card:hover,
.payment-card:hover,
.filter-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === BOTÕES COM EFEITOS REACT === */
.btn,
.btn-primary,
.submit-btn,
.filter-button {
    transition: var(--transition-smooth);
    will-change: transform, filter, box-shadow;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.submit-btn:hover,
.filter-button:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.25));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Efeito de loading inspirado no React */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: logo-spin 1s linear infinite;
}

/* === FORMULÁRIOS MELHORADOS === */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    filter: drop-shadow(0 0 0.8em rgba(163, 193, 224, 0.2));
    transform: translateY(-1px);
}
/* === NOTIFICAÇÃO MINIMALISTA CANTO SUPERIOR DIREITO === */
.notification-minimal {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideInRight 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-minimal.error {
    border-left: 4px solid #e53e3e;
}

.notification-minimal.success {
    border-left: 4px solid #38a169;
}

.notification-minimal.info {
    border-left: 4px solid #3182ce;
}

.notification-minimal.warning {
    border-left: 4px solid #d69e2e;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-icon {
    font-size: 16px;
}

.notification-minimal.error .notification-icon {
    color: #e53e3e;
}

.notification-minimal.success .notification-icon {
    color: #38a169;
}

.notification-minimal.info .notification-icon {
    color: #3182ce;
}

.notification-minimal.warning .notification-icon {
    color: #d69e2e;
}

.notification-message {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    font-size: 12px;
    transition: color 0.2s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #e53e3e;
    background: #fed7d7;
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .notification-minimal {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* === UTILITÁRIOS DO REACT ADAPTADOS === */
.read-the-docs {
    color: var(--gray-dark);
    font-style: italic;
}

/* Loading states para elementos */
.loading-shimmer {
    background: linear-gradient(90deg, 
        var(--gray-light) 25%, 
        var(--gray-medium) 50%, 
        var(--gray-light) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Efeito de foco moderno para acessibilidade */
@media (prefers-reduced-motion: no-preference) {
    .logo,
    .icon-btn,
    .product-card,
    .btn-primary {
        will-change: transform, filter;
    }
}