/* ══════════════════════════════════════════════════════════════════════════════
   Vapt Log — style.css
   Conversão completa do TailwindCSS para CSS puro
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-primary : #21C17A;
    --green-dark    : #1fac56;
    --green-light   : #25cf6d;
    --blue-primary  : #0856d1;
    --blue-hover    : #074bba;
    --blue-active   : #053e9c;
    --dev-green     : #01875f;
    --text-black    : #111827;
    --text-gray-800 : #1f2937;
    --text-gray-700 : #374151;
    --text-gray-600 : #4b5563;
    --text-gray-500 : #6b7280;
    --text-gray-400 : #9ca3af;
    --border-gray   : #e5e7eb;
    --bg-gray-50    : #f9fafb;
    --bg-gray-100   : #f3f4f6;
    --bg-gray-200   : #e5e7eb;
    --font          : 'Inter', system-ui, -apple-system, sans-serif;
    --radius-card   : 32px;
}

html, body {
    font-family : var(--font);
    background  : #f1f3f4;
    color       : var(--text-black);
    min-height  : 100vh;
    -webkit-font-smoothing  : antialiased;
    -moz-osx-font-smoothing : grayscale;
}

::selection { background: #dcfce7; }

a { text-decoration: none; }
button { cursor: pointer; border: none; background: transparent; font-family: inherit; }
img { display: block; }

/* ── Card wrapper ─────────────────────────────────────────────────────────── */
.card {
    max-width   : 1024px;
    margin      : 0 auto;
    background  : #fff;
    min-height  : 100vh;
    overflow    : hidden;
}

@media (min-width: 768px) {
    .card {
        margin         : 40px auto;
        border         : 1px solid var(--border-gray);
        border-radius  : var(--radius-card);
        box-shadow     : 0 25px 50px -12px rgba(0,0,0,.15);
        min-height     : auto;
        padding-bottom : 32px;
    }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.app-header {
    display     : flex;
    align-items : flex-start;
    gap         : 20px;
    padding     : 32px 16px 0;
}

@media (min-width: 768px) { .app-header { padding: 32px 32px 0; } }

.app-logo {
    width            : 64px;
    height           : 64px;
    background       : var(--green-primary);
    color            : #fff;
    border-radius    : 16px;
    display          : flex;
    align-items      : center;
    justify-content  : center;
    font-size        : 36px;
    font-weight      : 700;
    flex-shrink      : 0;
    box-shadow       : 0 1px 3px rgba(0,0,0,.12);
    overflow         : hidden;
    position         : relative;
    /* subtle inner highlight */
    background-image : radial-gradient(circle at 35% 30%, rgba(255,255,255,.25) 0%, transparent 60%);
}

/* Quando há imagem: remove o fundo verde */
.app-logo--img {
    background       : #ffffff;
    background-image : none;
    box-shadow       : 0 1px 3px rgba(0,0,0,.15);
    padding          : 6px;
}

.app-logo-img {
    width      : 100%;
    height     : 100%;
    object-fit : contain;   /* não corta nem distorce */
    display    : block;
}

.app-info {
    display        : flex;
    flex-direction : column;
    justify-content: center;
    margin-top     : -4px;
}

.app-name {
    font-size   : 22px;
    font-weight : 700;
    color       : var(--text-black);
    line-height : 1.2;
    margin-bottom: 4px;
}

.app-dev {
    color       : var(--dev-green);
    font-weight : 500;
    font-size   : 13px;
}
.app-dev:hover { text-decoration: underline; }

/* ── Stats Row ────────────────────────────────────────────────────────────── */
.stats-row {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    margin          : 24px 16px 0;
    padding-bottom  : 24px;
    border-bottom   : 1px solid var(--bg-gray-100);
    overflow-x      : auto;
    scrollbar-width : none;
}
.stats-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) { .stats-row { margin: 24px 32px 0; } }

.stat-item {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    flex           : 1;
    padding        : 0 8px;
    min-width      : max-content;
}

@media (min-width: 768px) {
    .stat-item { padding: 0 24px; border-right: 1px solid var(--bg-gray-200); }
    .stat-item:last-child { border-right: none; }
}

.stat-value {
    display     : flex;
    align-items : center;
    gap         : 3px;
    font-weight : 600;
    color       : var(--text-gray-800);
    font-size   : 15px;
}

.stat-label {
    display     : flex;
    align-items : center;
    font-size   : 11px;
    color       : var(--text-gray-500);
    white-space : nowrap;
    margin-top  : 2px;
    gap         : 3px;
}

.stat-badge-l {
    width            : 20px;
    height           : 20px;
    background       : var(--green-primary);
    color            : #fff;
    border-radius    : 4px;
    display          : flex;
    align-items      : center;
    justify-content  : center;
    font-weight      : 700;
    font-size        : 10px;
    margin-bottom    : 6px;
}

.info-circle {
    display          : inline-flex;
    align-items      : center;
    justify-content  : center;
    width            : 13px;
    height           : 13px;
    border           : 1px solid var(--text-gray-400);
    border-radius    : 50%;
    font-size        : 9px;
    line-height      : 1;
    margin-left      : 2px;
}

.stat-divider {
    width      : 1px;
    height     : 24px;
    background : var(--bg-gray-200);
}
@media (min-width: 768px) { .stat-divider { display: none; } }

/* ── Action Area ──────────────────────────────────────────────────────────── */
.action-area {
    padding : 24px 16px 0;
}
@media (min-width: 768px) { .action-area { padding: 24px 32px 0; } }

.btn-install {
    display      : flex;
    align-items  : center;
    justify-content: center;
    width        : 100%;
    height       : 44px;
    background   : var(--blue-primary);
    color        : #fff;
    border-radius: 999px;
    font-weight  : 500;
    font-size    : 14px;
    font-family  : var(--font);
    text-decoration: none;
    transition   : background .15s ease;
    border       : none;
    cursor       : pointer;
}
.btn-install:hover  { background: var(--blue-hover); }
.btn-install:active { background: var(--blue-active); }

.install-note {
    text-align  : center;
    font-size   : 11px;
    color       : var(--text-gray-500);
    font-weight : 500;
    margin-top  : 10px;
}

/* ── Content Grid ─────────────────────────────────────────────────────────── */
.content-grid {
    display        : flex;
    flex-direction : column;
    gap            : 32px;
    margin-top     : 32px;
    padding        : 0 16px 32px;
}

@media (min-width: 768px) {
    .content-grid {
        flex-direction : row;
        padding        : 0 32px 0;
    }
}

.col-left, .col-right {
    display        : flex;
    flex-direction : column;
    gap            : 24px;
}

@media (min-width: 768px) {
    .col-left  { width: 50%; overflow: hidden; }
    .col-right { width: 50%; }
}

/* ── Screenshots ──────────────────────────────────────────────────────────── */
.screenshots-scroll {
    display         : flex;
    gap             : 12px;
    overflow-x      : auto;
    padding-bottom  : 16px;
    scrollbar-width : none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshot-img {
    width         : 145px;
    height        : 260px;
    border-radius : 14px;
    flex-shrink   : 0;
    object-fit    : cover;
    box-shadow    : 0 2px 8px rgba(0,0,0,.12);
    transition    : transform .2s ease, box-shadow .2s ease;
}
.screenshot-img:hover {
    transform  : translateY(-3px);
    box-shadow : 0 8px 20px rgba(0,0,0,.15);
}

.screenshot {
    width         : 145px;
    height        : 260px;
    border-radius : 14px;
    flex-shrink   : 0;
    display       : flex;
    flex-direction: column;
    padding       : 16px;
    font-weight   : 500;
    position      : relative;
    box-shadow    : 0 1px 4px rgba(0,0,0,.08);
}

.screenshot-title {
    font-size   : 14px;
    font-weight : 600;
    line-height : 1.3;
    margin-top  : 8px;
}

/* Green cards */
.green-card {
    background : linear-gradient(to bottom, var(--green-light), var(--green-dark));
    color      : #fff;
}

/* Light cards */
.light-card {
    background : var(--bg-gray-50);
    color      : var(--text-gray-800);
    border     : 1px solid var(--bg-gray-200);
}

/* Estilos de mock removidos — substituídos por imagens PNG */

/* ── Section Heading ──────────────────────────────────────────────────────── */
.section-heading {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    margin-bottom   : 8px;
}

.section-heading h2 {
    font-size   : 18px;
    font-weight : 700;
    color       : var(--text-black);
}

/* ── About ────────────────────────────────────────────────────────────────── */
.about-text {
    font-size   : 13px;
    color       : var(--text-gray-600);
    line-height : 1.6;
}

/* ── Ratings ──────────────────────────────────────────────────────────────── */
.ratings-note {
    font-size    : 11px;
    color        : var(--text-gray-500);
    margin-bottom: 24px;
    display      : flex;
    align-items  : flex-start;
    gap          : 4px;
    line-height  : 1.4;
}

.ratings-summary {
    display     : flex;
    align-items : center;
    gap         : 32px;
}

.big-score {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    flex-shrink    : 0;
}

.score-number {
    font-size   : 48px;
    font-weight : 400;
    color       : var(--text-black);
    line-height : 1;
}

.score-stars {
    display  : flex;
    gap      : 1px;
    margin   : 4px 0;
}

.score-count {
    font-size : 10px;
    color     : var(--text-gray-500);
}

.rating-bars {
    display        : flex;
    flex-direction : column;
    flex           : 1;
    gap            : 4px;
}

.rating-bar-row {
    display     : flex;
    align-items : center;
    gap         : 10px;
}

.bar-label {
    font-size   : 10px;
    font-weight : 500;
    color       : var(--text-gray-700);
    width       : 8px;
    text-align  : center;
}

.bar-track {
    flex          : 1;
    height        : 8px;
    background    : var(--bg-gray-200);
    border-radius : 999px;
    overflow      : hidden;
}

.bar-fill {
    height        : 100%;
    background    : var(--blue-primary);
    border-radius : 999px;
    transition    : width .4s ease;
}

/* ── Review Cards ─────────────────────────────────────────────────────────── */
.reviews-list {
    display        : flex;
    flex-direction : column;
    padding-top    : 8px;
}

.review-card {
    display        : flex;
    flex-direction : column;
    gap            : 10px;
    margin-bottom  : 32px;
    overflow       : hidden;
}

.review-header {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
}

.review-user {
    display     : flex;
    align-items : center;
    gap         : 10px;
}

.review-avatar {
    width         : 32px;
    height        : 32px;
    border-radius : 50%;
    background    : var(--bg-gray-200);
    object-fit    : cover;
    flex-shrink   : 0;
}

.review-name {
    font-size   : 12px;
    font-weight : 500;
    color       : var(--text-black);
}

.review-more {
    padding       : 4px;
    border-radius : 50%;
    transition    : background .15s;
    margin-right  : -8px;
    display       : flex;
    align-items   : center;
    justify-content: center;
}
.review-more:hover { background: var(--bg-gray-100); }

.review-meta {
    display     : flex;
    align-items : center;
    gap         : 10px;
    font-size   : 10px;
    color       : var(--text-gray-500);
}

.review-stars {
    display : flex;
    gap     : 1px;
    line-height: 1;
}

.review-date { font-size: 10px; }

.review-text {
    font-size   : 12px;
    color       : var(--text-gray-600);
    line-height : 1.55;
}

.review-helpful {
    font-size : 10px;
    color     : var(--text-gray-500);
}

.review-actions {
    display : flex;
    gap     : 16px;
    margin-bottom: 8px;
}

.review-btn {
    padding       : 5px 14px;
    border        : 1px solid var(--bg-gray-200);
    border-radius : 999px;
    font-size     : 12px;
    font-weight   : 500;
    color         : var(--text-gray-700);
    font-family   : var(--font);
    transition    : background .15s;
}
.review-btn:hover { background: var(--bg-gray-50); }
