/*
 * Arquivo: claro.css
 * Descrição: Folha de estilos para a página de soluções da Claro.
 * Arquitetura: Mobile-First, com foco em performance e usabilidade.
*/

/* ------------------------- */
/* :: VARIÁVEIS GLOBAIS   */
/* ------------------------- */
:root {
    /* Cores */
    --color-text: #e1e1e6;
    --color-text-soft: #a8a8b3;
    --color-heading: #ffffff;
    --background-start: #12121c;
    --background-end: #0a0a10;
    --surface-color: #1c1c24;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Cores da Marca (Atualizado para Claro) */
    --claro-primary: #ED1C24;   /* Vermelho primário da Claro */
    --claro-secondary: #C41219;  /* Vermelho mais escuro para acentos */

    /* Tipografia */
    --font-primary: 'Poppins', sans-serif;

    /* Outras */
    --border-radius: 12px;
    --transition-speed: 0.4s;
}


/* ------------------------- */
/* :: RESET E BASE         */
/* ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--color-text);
    line-height: 1.6;
}

/* ------------------------- */
/* :: LAYOUT PRINCIPAL     */
/* ------------------------- */
.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 6rem 1rem 3rem 1rem;
}

/* ------------------------- */
/* :: COMPONENTES          */
/* ------------------------- */

/* Botão de Voltar */
.back-button {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    color: var(--color-heading);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}
.back-button:hover {
    transform: scale(1.1);
    background-color: var(--claro-primary);
}

/* Cabeçalho da Página */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}
.operator-brand {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.operator-brand.claro {
    background-color: var(--claro-primary);
}
.title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    color: var(--color-text-soft);
}

/* Seções de Passos */
.step-section {
    margin-bottom: 1.5rem;
}
.step-details {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-details[open] {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-color: var(--claro-primary);
}

.step-summary {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.step-summary:hover {
    background-color: rgba(255,255,255,0.03);
}
.step-summary::-webkit-details-marker {
    display: none;
}
.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}
.summary-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    text-align: left;
}

.summary-indicator {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--color-text-soft);
    flex-shrink: 0;
}
details[open] > summary .summary-indicator {
    transform: rotate(180deg);
    color: var(--claro-primary);
}

.details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-speed) ease-in-out;
}
details[open] > .details-wrapper {
    grid-template-rows: 1fr;
}
.details-content {
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}
.step-details > .details-wrapper > .details-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.step-rationale {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
    text-align: left;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
}

.solution-details {
    border-top: 1px solid var(--border-color);
}
.solution-details:first-of-type {
    border-top: none;
}
.solution-summary {
    padding: 1.25rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    margin-right: -1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.solution-summary:hover {
    background-color: rgba(255,255,255,0.03);
}

.solution-summary .summary-content span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solution-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--border-color);
    color: var(--color-text-soft);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.solution-details[open] .solution-badge {
    background-color: var(--claro-secondary);
    color: #fff;
}

.solution-card {
    padding-top: 0.5rem;
}
.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
    text-align: left;
}
.media-wrapper {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: calc(var(--border-radius) - 4px);
    overflow: hidden;
    background-color: #000;
}
.media-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.instructions {
    text-align: left;
    margin-bottom: 1rem;
}
.instructions strong {
    color: var(--claro-primary);
}

.instructions-list {
    text-align: left;
    margin-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.instructions-list li::marker {
    color: var(--claro-primary);
    font-weight: 700;
}

.command-block {
    background-color: var(--background-start);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.command-block span {
    color: var(--color-text-soft);
}
.command-block code {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: 1px;
}

.apn-list {
    list-style: none;
    background-color: var(--background-start);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.apn-list li {
    padding: 0.25rem 0;
}
.apn-list li strong {
    color: var(--color-text-soft);
}