/* =============================================================
   sneaking.fr — additional styles for app pages
   ============================================================= */

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
    margin: 32px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.form-grid--wide { max-width: 880px; }
.form-grid--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid--two { grid-template-columns: 1fr; } }
.form-grid label { font-weight: 600; font-size: 13px; }
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,15,16,.06); }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.form-error {
    color: var(--hot);
    font-size: 12.5px;
    margin-top: 4px;
}
.form-help { font-size: 12.5px; color: var(--muted); }
.form-msg {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 13.5px;
}
.form-msg--success { background: #ECFDF5; color: #065F46; }
.form-msg--error   { background: var(--hot-soft); color: var(--hot); }

/* Auth */
.auth-card {
    max-width: 440px;
    margin: clamp(40px, 8vw, 100px) auto;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth-card p.sub { color: var(--muted); margin-top: 6px; margin-bottom: 24px; }
.auth-card form > * + * { margin-top: 14px; }
.auth-card .btn--solid { width: 100%; justify-content: center; padding: 14px; }
.auth-card .auth-card__alt {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}
.auth-card .auth-card__alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Generic content */
.prose { max-width: 760px; margin: 0 auto; padding: 32px var(--pad); font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); margin: 32px 0 14px; letter-spacing: -.02em; }
.prose h3 { font-weight: 700; font-size: 20px; margin: 24px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 8px 16px; color: var(--muted); margin: 16px 0; }

/* Article hero */
.article-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) var(--pad) 0;
}
.article-hero__media {
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
    background: var(--surface);
    display: grid; place-items: center;
    margin-top: 24px;
    overflow: hidden;
    --c: #444;
}
.article-hero__media svg { width: 60%; color: var(--c); filter: drop-shadow(0 16px 22px rgba(0,0,0,.18)); }

/* Tables */
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: var(--surface);
}
.admin-side {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 22px 18px;
}
.admin-side__brand { font-weight: 800; font-size: 16px; padding: 8px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.admin-side a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--ink-soft);
    transition: background .15s var(--ease), color .15s var(--ease);
}
.admin-side a:hover { background: var(--surface); color: var(--ink); }
.admin-side a.is-active { background: var(--ink); color: #fff; }
.admin-side h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .08em;
    margin: 16px 12px 6px;
    font-weight: 700;
}
.admin-main { padding: 28px clamp(20px, 4vw, 40px); }
.admin-main__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
    flex-wrap: wrap;
}
.admin-main__head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .admin-cards { grid-template-columns: repeat(2, 1fr); } }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
}
.admin-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.admin-card .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.admin-card .delta { font-size: 12.5px; color: var(--accent); margin-top: 2px; font-weight: 600; }

.table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.table th { background: var(--surface); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-weight: 700; }
.badge--ok    { background: #ECFDF5; color: #065F46; }
.badge--warn  { background: #FEF3C7; color: #92400E; }
.badge--danger{ background: var(--hot-soft); color: var(--hot); }
.badge--info  { background: var(--accent-soft); color: var(--accent-deep); }

/* User dashboard */
.user-shell { display: grid; grid-template-columns: 220px 1fr; gap: 32px; max-width: var(--container); margin: 36px auto; padding: 0 var(--pad); }
.user-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
}
.user-side h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.user-side a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    transition: background .15s var(--ease);
}
.user-side a:hover { background: var(--surface); }
.user-side a.is-active { background: var(--ink); color: #fff; }
.user-main { min-width: 0; }
@media (max-width: 880px) { .user-shell { grid-template-columns: 1fr; } }

/* Deal cards */
.deal-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color .15s var(--ease), box-shadow .2s var(--ease);
}
.deal-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.deal-card__vote {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--surface);
    border-radius: 12px;
    padding: 8px;
}
.deal-card__vote button {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    transition: background .15s var(--ease);
}
.deal-card__vote button:hover { background: var(--surface-2); }
.deal-card__vote strong { font-weight: 800; font-size: 14px; }
.deal-card__body strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: block; }
.deal-card__body .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.deal-card__price { text-align: right; }
.deal-card__price strong { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.deal-card__price span { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.deal-card__price small { display: block; color: var(--accent); font-weight: 700; font-size: 12px; }
.deal-card__discount {
    background: var(--hot);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

/* Comments */
.comment {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
    margin-bottom: 12px;
}
.comment__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment__head .avatar { width: 32px; height: 32px; font-size: 11px; }
.comment__head strong { font-size: 13px; font-weight: 700; }
.comment__head span { font-size: 12px; color: var(--muted); }
.comment__body { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.comment__reply { margin-left: 36px; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .tag {
    padding: 5px 10px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Empty state */
.empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r);
    color: var(--muted);
}
.empty strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }

/* Filters */
.filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 16px var(--pad);
    max-width: var(--container);
    margin: 0 auto;
}
.filters input,
.filters select {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    outline: none;
}
.filters input:focus, .filters select:focus { border-color: var(--ink); }

/* Specs / shops compact mobile */
@media (max-width: 480px) {
    .deal-card { grid-template-columns: 1fr; gap: 8px; }
    .deal-card__vote { flex-direction: row; justify-content: space-between; }
    .deal-card__price { text-align: left; }
}

/* Avatar bigger sizes */
.avatar--lg { width: 60px; height: 60px; font-size: 22px; }

/* Hero of guides */
.guides-hero { padding-top: clamp(28px, 4vw, 48px); }

/* Color hex helpers */
.product-card[data-color] .product-card__svg { color: var(--card-color, currentColor); }
.product-card { --card-color: #0F0F10; }
.brand-hero__plate svg { color: var(--c, #0F0F10); }
.product-card__svg { color: var(--card-color, #0F0F10); }
