
/* 
   PORTAL FÊNIX - GLOBAL STYLE (STARTUP PREMIUM EDITION)
   Cores baseadas no Logo: Laranja (#E84A27), Amarelo (#FDB813), Vermelho (#C42021)
*/

:root {
    --fenix-orange: #E84A27;
    --fenix-yellow: #FDB813;
    --fenix-red: #C42021;
    --fenix-dark: #1A1A1A;
    --fenix-light: #FFFFFF;
    --fenix-gray: #F8F9FA;
    --fenix-text: #333333;
    --gradient-fenix: linear-gradient(135deg, #FDB813 0%, #E84A27 50%, #C42021 100%);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
}

/* 1. RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--fenix-gray);
    color: var(--fenix-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    color: var(--fenix-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-orange { color: var(--fenix-orange) !important; }
.text-gradient {
    background: var(--gradient-fenix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. COMPONENTES DE INTERFACE */

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--fenix-orange);
    padding: 12px 0;
}

.user-welcome {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fenix-orange);
    margin-right: 15px;
}

/* --- ESTILOS DE LOGO E IMAGENS --- */
.logo-nav {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-nav:hover {
    transform: scale(1.05);
}

.logo-login {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
}

.logo-cadastro {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.logo-sidebar {
    height: 50px;
    width: auto;
}

.avatar-perfil-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fenix-orange);
    object-fit: cover;
}

.avatar-perfil-painel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--fenix-orange);
    object-fit: cover;
}

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

/* Banner Area */
.banner-area {
    background: #eee;
    border: 2px dashed #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    margin-bottom: 30px;
    min-height: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px;
}

/* Botões */
.btn-fenix {
    background: var(--gradient-fenix);
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(232, 74, 39, 0.3);
}

.btn-fenix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 74, 39, 0.4);
}

/* Sidebar de Filtros */
.filter-sidebar {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
}

/* Cards e Itens de Lista (Estilo OLX) */
.card-fenix {
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-fenix:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenix-orange);
}

.list-item-fenix {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.list-item-fenix:hover {
    background: #fff9f5;
    border-color: var(--fenix-orange);
    transform: translateX(5px);
}

.list-item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

.list-item-content {
    flex-grow: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--fenix-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.list-item-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f0f0f0;
    color: #666;
    margin-bottom: 8px;
}

/* 4. TRATAMENTO DE IMAGENS (PLACEHOLDERS) */
.img-container {
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container::before {
    content: '\F4E1';
    font-family: 'bootstrap-icons';
    font-size: 3rem;
    color: #ccc;
    position: absolute;
    z-index: 1;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.img-container img.broken {
    display: none;
}

/* 5. PAGINAÇÃO */
.pagination-fenix {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn.active {
    background: var(--fenix-orange);
    color: white;
    border-color: var(--fenix-orange);
}

.page-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* 6. MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .filter-sidebar { 
        position: static;
        margin-bottom: 30px;
    }
    .list-item-fenix { 
        gap: 12px;
        padding: 10px;
    }
    .list-item-img { 
        width: 80px; 
        height: 80px; 
    }
    .list-item-title {
        font-size: 1rem;
    }
}

.section-padding { padding: 60px 0; }
.bg-fenix-dark { background-color: var(--fenix-dark) !important; }
.rounded-20 { border-radius: 20px !important; }

/* 7. ADMIN SPECIFIC STYLES */
.navbar-admin .logo-nav {
    height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Estilos para o CTA "Pá-Pum" na Hero Section */
.btn-hero-cta {
    background: var(--gradient-fenix);
    color: white !important;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(232, 74, 39, 0.4);
    display: inline-block;
    text-decoration: none;
}

.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(232, 74, 39, 0.6);
}

/* Estilos para o Selo de Confiança */
.confidence-seal {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confidence-seal i {
    color: #FDB813;
    font-size: 1.1rem;
}

/* Estilos para o logo no rodapé */
.logo-footer {
    height: 40px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: inline-block;
}

/* Estilo para o botão de WhatsApp no perfil */
.btn-whatsapp-perfil {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-perfil:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Estilos para o Grupo de CTAs na Hero Section */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Para quebrar linha no mobile */
}

.cta-item {
    text-align: center;
    max-width: 280px;
}

.btn-cta-fenix {
    display: block;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white !important;
    border: none;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-cta-fenix:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-cta-orange {
    background: linear-gradient(90deg, var(--fenix-orange) 0%, var(--fenix-red) 100%);
}

.btn-cta-orange:hover {
    background: linear-gradient(90deg, var(--fenix-red) 0%, var(--fenix-orange) 100%);
}

.btn-cta-dark {
    background-color: #343a40;
    border: 1px solid #495057;
}

.btn-cta-dark:hover {
    background-color: #23272b;
    border-color: #343a40;
}

.btn-cta-gold {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%); /* Dourado */
    color: #333 !important;
}

.btn-cta-gold:hover {
    background: linear-gradient(90deg, #FFA500 0%, #FFD700 100%);
}

.cta-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-width: 250px;
    margin: 0 auto;
}

/* Responsividade para CTAs */
@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-item {
        max-width: 90%;
        width: 100%;
    }

    .btn-cta-fenix {
        width: 100%;
    }
}


/* --- SEÇÃO FALE COM A GENTE --- */
.bg-fenix-dark-contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#form-contato .form-control,
#form-contato .form-select {
    background-color: #2d2d2d;
    color: white;
}

#form-contato .form-control:focus,
#form-contato .form-select:focus {
    background-color: #2d2d2d;
    border-color: #ff8c00;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

#form-contato .form-label {
    color: #fff;
}

#form-contato .form-control::placeholder {
    color: #999;
}

#form-contato .btn-fenix {
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    border: none;
    color: white;
    transition: 0.3s;
}

#form-contato .btn-fenix:hover {
    background: linear-gradient(45deg, #e67e00, #ff9500);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}


/* --- SEÇÃO RADAR DE OPORTUNIDADES --- */
.oportunidade-card {
    border-radius: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background: white;
}

.oportunidade-card:hover {
    box-shadow: 0 10px 30px rgba(232, 74, 39, 0.15) !important;
    border-color: var(--fenix-orange);
}

.oportunidade-card .badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

.oportunidade-card .btn-outline-warning {
    color: var(--fenix-orange) !important;
    border-color: var(--fenix-orange) !important;
    transition: all 0.3s ease;
}

.oportunidade-card .btn-outline-warning:hover {
    background-color: var(--fenix-orange);
    border-color: var(--fenix-orange);
    color: white !important;
}

#container-oportunidades {
    min-height: 300px;
}

/* Animação de carregamento */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.spinner-border {
    animation: pulse 1.5s ease-in-out infinite;
}

/* --- ESTILOS DO CARD DE EMPREENDEDOR (VITRINE) --- */
.card-empreendedor {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.card-empreendedor:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    height: 200px;
    background: #f8f9fa;
}

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

.card-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--fenix-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card-body {
    padding: 20px;
}

.card-title-empresa {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--fenix-dark);
}

.card-text-responsavel {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-text-descricao {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
}

.card-location {
    font-size: 0.8rem;
    color: var(--fenix-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.btn-whatsapp-card {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-whatsapp-card:hover {
    background-color: #128C7E;
    color: white;
}

