/* =================================
   NIBED DEVELOPMENT
   ESTILO ITCH.IO (NAVY & DEEP PURPLE)
================================= */

:root {
    color-scheme: light;
    
    /* Cores base */
    --background: #FFFFFF;
    --surface: #F7F7F9;
    --surface-hover: #EBEBEF;
    
    /* Cores de destaque (Roxo escuro + Azul profundo) */
    --primary: #2D1B4E; 
    --primary-light: #4A327A;
    --accent-blue: #1A365D; 
    
    /* Cores de texto */
    --text-main: #1A1A1A;
    --text-muted: #5C5C66;
    --text-link: #2D1B4E;
    
    /* Bordas e detalhes */
    --border: #D1D1D6;
    --border-focus: #2D1B4E;
    --shadow: rgba(0, 0, 0, 0.05);
    
    /* Cores de status */
    --status-available-bg: #D1FADF;
    --status-available-text: #0A7A3D;
    --status-available-bg-hover: #A6F4C5;
    
    --status-development-bg: #FEF3C7;
    --status-development-text: #946200;
    --status-development-bg-hover: #FDE68A;
    
    --status-planning-bg: #EAEFF5;
    --status-planning-text: #475569;
    --status-planning-bg-hover: #DCE4EE;
    
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-link);
}

a:hover {
    text-decoration: underline;
}

/* CONTAINER (Para Header e Footer) */
.container {
    width: min(1080px, 95%); 
    margin: auto;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
}

.navbar {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 40px; 
}

/* LOGO ATUALIZADA */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-right: auto; 
}

.nav-links a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Botões */
.btn-header, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}

.btn-header {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-header:hover {
    background: var(--surface-hover);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--accent-blue);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

/* =========================================
   LAYOUT PRINCIPAL
   ========================================= */
.main-layout {
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 4px; 
    padding: 1px 1px;
    align-items: start; 
}

/* O TÍTULO (Ocupa a linha inteira no topo) */
.intro-box {
    grid-column: 1 / -1; 
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-left: 20px; 
}

.intro-box h1 {
    font-size: 26px; 
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.intro-box p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 750px;
}

/* BARRA LATERAL */
.sidebar {
    border-right: 1px solid var(--border);
    padding: 0 20px 0 20px; 
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 11px; 
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px; 
}

.sidebar-nav a {
    color: var(--text-muted);
    font-size: 13px; 
    padding: 2px 0;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ÁREA DE CONTEÚDO PRINCIPAL */
.content-area {
    min-width: 0; 
    padding: 0; 
}

/* LISTAGEM DE PRODUTOS */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1px; 
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.product-item {
    display: grid;
    grid-template-columns: 50px 1fr auto; 
    align-items: center;
    gap: 15px;
    padding: 14px 16px; 
    background: var(--background);
    transition: background 0.15s;
    text-decoration: none !important;
}

.product-item:hover {
    background: var(--surface);
}

.product-icon-small {
    width: 42px; 
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
}

.product-item:hover .product-icon-small {
    border-color: var(--primary-light);
}

.product-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.product-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== BADGES DE STATUS ========== */
.product-action {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    line-height: 1.2;
}

/* Verde — Disponível */
.product-action.status-available {
    color: var(--status-available-text);
    background: var(--status-available-bg);
}

.product-item:hover .product-action.status-available {
    background: var(--status-available-bg-hover);
    transform: translateY(-1px);
}

/* Amarelo — Em desenvolvimento */
.product-action.status-development {
    color: var(--status-development-text);
    background: var(--status-development-bg);
}

.product-item:hover .product-action.status-development {
    background: var(--status-development-bg-hover);
    transform: translateY(-1px);
}

/* Azul acinzentado — Em planejamento */
.product-action.status-planning {
    color: #475569;
    background: #EAEFF5;
}

.product-item:hover .product-action.status-planning {
    background: #DCE4EE;
    transform: translateY(-1px);
}

/* SOBRE */
.about-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.about-section h2 {
    font-size: 18px; 
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.about-section p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 700px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 12px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-box {
        padding-left: 20px;
        padding-right: 20px;
        grid-column: 1;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0 20px 15px 20px;
        display: flex;
        gap: 30px;
        overflow-x: auto;
    }
    
    .sidebar-section {
        margin-bottom: 0;
        min-width: 120px;
    }

    .content-area {
        padding: 0 20px;
    }

    .product-item {
        grid-template-columns: 48px 1fr;
        gap: 15px;
    }

    .product-action {
        grid-column: 2;
        margin-top: 8px;
        justify-self: start;
    }
    
    .nav-links {
        display: none; 
    }
}

/* Item sem link (ex.: Em planejamento) */
.product-item-static {
    cursor: default;
}

.product-item-static:hover {
    background: var(--background);
    transform: none;
}

.product-item-static:hover .product-icon-small {
    transform: none;
    border-color: var(--border);
}

/* Link de texto destacado */
.text-link {
    color: var(--primary);
    font-weight: 600;
}

/* Bloco "Fale com a NIBED" */
.about-section-cta {
    border-top: none;
    padding-top: 0;
    margin-top: 20px;
}

.about-section-cta .btn-primary {
    margin-top: 6px;
}