/* ===== VARIÁVEIS DE CORES E DESIGN - CREATIVE MARKETPLACE THEME ===== */
:root {
    /* Paleta de cores - Criatividade, Sofisticação e Originalidade */
    --primary-color: #7C3AED;           /* Púrpura vibrante - criatividade e inovação */
    --secondary-color: #2D1B69;         /* Púrpura escuro - sofisticação */
    --success-color: #10B981;           /* Verde esmeralda - crescimento e valor */
    --danger-color: #DC2626;            /* Vermelho vibrante - atenção */
    --warning-color: #F59E0B;           /* Âmbar quente - alerta */
    --info-color: #0EA5E9;              /* Azul céu - inspiração */
    --light-color: #F8FAFC;             /* Branco neutro - clareza */
    --dark-color: #1E293B;              /* Cinza profundo - elegância */

    /* Tons adicionais para criatividade */
    --art-purple: #7C3AED;              /* Púrpura - criatividade */
    --art-indigo: #4F46E5;              /* Índigo - profundidade */
    --art-blue: #0EA5E9;                /* Azul - inspiração */
    --art-pink: #EC4899;                /* Rosa - energia criativa */
    --art-gold: #F59E0B;                /* Ouro - valor artístico */
    --art-emerald: #10B981;             /* Esmeralda - exclusividade */
    --art-slate: #64748B;               /* Slate - neutro elegante */
    --art-cream: #FEF3C7;               /* Creme claro - sofisticação */

    /* Gradientes modernos - Creative Theme */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
    --gradient-hero: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #0EA5E9 100%);
    --gradient-cool: linear-gradient(135deg, #0EA5E9 0%, #7C3AED 100%);

    /* Sombras - elegantes e sofisticadas */
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.12);
    --shadow-lg: 0 8px 28px rgba(124, 58, 237, 0.15);
    --shadow-xl: 0 12px 48px rgba(124, 58, 237, 0.18);

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */

/* Hover effects */
.shadow-hover {
    transition: all var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Font sizes */
.fs-hero {
    font-size: 15rem;
}

/* Resize utilities */
.resize-none {
    resize: none;
}

/* Object position */
.object-top {
    object-position: top;
}

/* Error pages */
.error-code {
    font-size: 10rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-container {
    padding: 60px 15px;
}

.error-traceback {
    max-height: 400px;
}

/* Theme selection cards */
.tema-card-btn {
    transition: all 0.3s;
    outline: 1px solid var(--secondary-color);
    outline-offset: -1px;
}

.tema-card-btn:hover:not(.tema-selected) {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tema-card-btn.tema-selected {
    outline: 6px solid var(--primary-color);
}

/* Preview image size */
.preview-120 {
    width: 120px;
    height: 120px;
    overflow: hidden;
}

/* Text truncation utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em; /* 3 lines * 1.5 line-height */
}

/* ===== BTN-GROUP RESPONSIVO ===== */
/* Vertical por padrão, horizontal em telas >= sm (576px) */

.btn-group-responsive {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.btn-group-responsive > .btn,
.btn-group-responsive > .btn-check + .btn {
    border-radius: 0;
}

.btn-group-responsive > .btn:first-of-type,
.btn-group-responsive > .btn-check:first-of-type + .btn {
    border-top-left-radius: var(--bs-btn-border-radius);
    border-top-right-radius: var(--bs-btn-border-radius);
}

.btn-group-responsive > .btn:last-of-type,
.btn-group-responsive > .btn-check:last-of-type + .btn {
    border-bottom-left-radius: var(--bs-btn-border-radius);
    border-bottom-right-radius: var(--bs-btn-border-radius);
}

@media (min-width: 576px) {
    .btn-group-responsive {
        flex-direction: row;
    }

    .btn-group-responsive > .btn,
    .btn-group-responsive > .btn-check + .btn {
        border-radius: 0;
        flex: 1;
    }

    .btn-group-responsive > .btn:first-of-type,
    .btn-group-responsive > .btn-check:first-of-type + .btn {
        border-top-left-radius: var(--bs-btn-border-radius);
        border-bottom-left-radius: var(--bs-btn-border-radius);
        border-top-right-radius: 0;
    }

    .btn-group-responsive > .btn:last-of-type,
    .btn-group-responsive > .btn-check:last-of-type + .btn {
        border-top-right-radius: var(--bs-btn-border-radius);
        border-bottom-right-radius: var(--bs-btn-border-radius);
        border-bottom-left-radius: 0;
    }
}

/* ===== HERO SECTION MODERNIZADA ===== */
.hero-gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-image {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* ===== CARDS DE PRODUTO MODERNIZADOS ===== */
.product-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    transition: transform var(--transition-slow);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.product-card .card-img-overlay-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.product-card .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FEATURE CARDS (COMO FUNCIONA) ===== */
.feature-card {
    border: none;
    border-radius: 1.5rem;
    transition: all var(--transition-normal);
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-normal);
}

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

.feature-icon-primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #7C3AED;
}

.feature-icon-success {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15) 0%, rgba(56, 239, 125, 0.15) 100%);
    color: #10B981;
}

.feature-icon-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    color: #F59E0B;
}

/* ===== SEÇÃO CTA MODERNIZADA ===== */
.cta-section {
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== CARDS DE VANTAGEM ===== */
.advantage-card {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-card-buyer {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.08) 0%, rgba(56, 239, 125, 0.08) 100%);
    border: 1px solid rgba(17, 153, 142, 0.2);
}

.advantage-card-seller {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ===== FAQ ACCORDION MODERNIZADO ===== */
.accordion-modern .accordion-item {
    border: none;
    border-radius: 1rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-modern .accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 1rem !important;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #7C3AED;
}

.accordion-modern .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-modern .accordion-body {
    padding: 1rem 1.5rem 1.5rem;
}

/* ===== NAVBAR GLASS EFFECT ===== */
.navbar-glass {
    backdrop-filter: blur(10px);
    background: rgba(124, 58, 237, 0.95) !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

/* ===== BOTÕES MODERNIZADOS ===== */
.btn-gradient-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    transition: all var(--transition-normal);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    color: #fff;
}

.btn-gradient-success {
    background: var(--gradient-success);
    border: none;
    color: #fff;
    transition: all var(--transition-normal);
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 163, 68, 0.4);
    color: #fff;
}

.btn-gradient-warm {
    background: var(--gradient-warm);
    border: none;
    color: #fff;
    transition: all var(--transition-normal);
}

.btn-gradient-warm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 169, 66, 0.4);
    color: #fff;
}

/* ===== FORMULÁRIOS DE LOGIN/CADASTRO ===== */
.auth-card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-card .form-control {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    transition: all var(--transition-fast);
}

.auth-card .form-control:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.auth-card .btn-primary {
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

/* ===== ANIMAÇÕES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ===== BADGES MODERNIZADOS ===== */
.badge-gradient {
    background: var(--gradient-primary);
    font-weight: 500;
    padding: 0.5em 0.85em;
    border-radius: 0.5rem;
}

.badge-soft-primary {
    background: rgba(124, 58, 237, 0.15);
    color: #7C3AED;
}

.badge-soft-success {
    background: rgba(17, 153, 142, 0.15);
    color: #10B981;
}

/* ===== PÁGINA SOBRE ===== */
.about-hero {
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.team-card {
    border: none;
    border-radius: 1rem;
    transition: all var(--transition-normal);
    background: #fff;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.tech-badge {
    font-size: 0.9rem;
    padding: 0.6em 1em;
    border-radius: 2rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 2rem 1rem !important;
    }

    .hero-gradient h1 {
        font-size: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }
}

/* ===== THEME ANIMAL CARE - NOVOS COMPONENTES ===== */

/* Badges atualizados para tema animal */
.badge-pet-orange {
    background: rgba(124, 58, 237, 0.15);
    color: #7C3AED;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-pet-green {
    background: rgba(107, 163, 68, 0.15);
    color: #10B981;
    border: 1px solid rgba(107, 163, 68, 0.3);
}

.badge-pet-brown {
    background: rgba(139, 115, 85, 0.15);
    color: #2D1B69;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

/* Card de animal/serviço - destacado */
.pet-service-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: #fff;
    position: relative;
}

.pet-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.pet-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Indicador de status - saúde do animal */
.pet-health-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pet-health-good {
    background: rgba(107, 163, 68, 0.1);
    color: #10B981;
    border: 1px solid rgba(107, 163, 68, 0.3);
}

.pet-health-warning {
    background: rgba(245, 169, 66, 0.1);
    color: #F5A942;
    border: 1px solid rgba(245, 169, 66, 0.3);
}

.pet-health-alert {
    background: rgba(214, 76, 92, 0.1);
    color: #D64C5C;
    border: 1px solid rgba(214, 76, 92, 0.3);
}

/* Cards de informação - acessórios, alimentos, etc */
.info-card {
    background: linear-gradient(135deg, #FFF5E6 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.info-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.info-card-title {
    color: #7C3AED;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Seção de cuidados - dicas */
.care-tips-section {
    background: linear-gradient(135deg, rgba(107, 163, 68, 0.05) 0%, rgba(74, 159, 184, 0.05) 100%);
    border-left: 4px solid #10B981;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.care-tips-section h3 {
    color: #10B981;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Avatar com moldura */
.avatar-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #7C3AED;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF5E6;
}

/* Estatísticas em cards */
.stat-card {
    background: #fff;
    border: none;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Timeline de atendimento */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7C3AED;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #7C3AED;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #ddd;
}

/* Seção de galeria de fotos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-gallery-item {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.photo-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botão flutuante de ação */
.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    z-index: 100;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Notificação de alerta importante */
.alert-care {
    border: none;
    border-radius: 1rem;
    border-left: 4px solid;
    padding: 1.25rem;
}

.alert-care-success {
    background: rgba(107, 163, 68, 0.1);
    border-left-color: #10B981;
    color: #5a8c38;
}

.alert-care-warning {
    background: rgba(245, 169, 66, 0.1);
    border-left-color: #F5A942;
    color: #d68a2a;
}

.alert-care-danger {
    background: rgba(214, 76, 92, 0.1);
    border-left-color: #D64C5C;
    color: #b83a47;
}

/* Seção de testemunhos */
.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-size: 3rem;
    color: #7C3AED;
    opacity: 0.3;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #F5A942;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Dropdown com ícones */
.dropdown-custom {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.dropdown-custom .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.dropdown-custom .dropdown-item:hover {
    background: #FFF5E6;
    border-left-color: #7C3AED;
    color: #7C3AED;
}

.dropdown-custom .dropdown-divider {
    margin: 0.5rem 0;
    background: #f0f0f0;
}

/* Melhorias no produto card */
.product-card .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-icon-primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(214, 76, 92, 0.15) 100%);
    color: #7C3AED;
}

.feature-icon-success {
    background: linear-gradient(135deg, rgba(107, 163, 68, 0.15) 0%, rgba(143, 188, 79, 0.15) 100%);
    color: #10B981;
}

.feature-icon-warning {
    background: linear-gradient(135deg, rgba(245, 169, 66, 0.15) 0%, rgba(212, 165, 116, 0.15) 100%);
    color: #F5A942;
}
