/* assets/css/style.css
   LmuSetupHub — dark tech styling (complément Tailwind)
*/

:root {
    --bg-1: #071025;
    --bg-2: #0b1220;
    --card-glass: rgba(255, 255, 255, 0.03);
    --muted: #9aa8bf;
    --accent: #0b5fff;
    --accent-2: #7c3aed;
    --success: #2db34a;
    --danger: #ff6b6b;
    --glass-border: rgba(255, 255, 255, 0.04);
    --radius: 12px;
}

html,
body {
    height: 100%;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

/* Header / Nav */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
}

.logo-mark {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

.nav-link {
    color: rgba(230, 238, 248, 0.9);
    transition: color .18s ease;
}

.nav-link:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Card style (glass) */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease, border-color .22s ease;
    box-shadow: 0 6px 22px rgba(3, 6, 15, 0.45);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(3, 6, 15, 0.6), 0 6px 18px rgba(11, 95, 255, 0.06);
    border-color: rgba(11, 95, 255, 0.12);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 18px rgba(11, 95, 255, 0.08);
    font-weight: 600;
}

/* Buttons (primary & ghost) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 10px 30px rgba(11, 95, 255, 0.10);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: inherit;
}

/* Inputs and textarea */
input[type="text"],
input[type="file"],
textarea,
select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: inherit;
    padding: 10px 12px;
    border-radius: 10px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    box-shadow: 0 10px 30px rgba(11, 95, 255, 0.06);
    border-color: rgba(11, 95, 255, 0.18);
}

/* File input button style */
input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    margin-right: 8px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    margin-right: 8px;
    cursor: pointer;
}

/* Cards grid */
.grid-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Small helpers */
.small {
    font-size: 0.85rem;
    color: var(--muted);
}

.meta {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Setup card specifics */
.setup-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}

.setup-card .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Hover highlight */
.setup-card:hover {
    border-color: rgba(11, 95, 255, 0.12);
}

/* Footer */
footer {
    opacity: .9;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Light theme (toggle by adding .light on body) */
body.light {
    background: linear-gradient(180deg, #f8fafc, #e6eef8);
    color: #0b1220;
}

body.light .card {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
    color: #0b1220;
    border-color: rgba(2, 6, 23, 0.06);
    box-shadow: 0 6px 20px rgba(6, 8, 15, 0.04);
}

body.light .badge {
    color: #fff;
}

body.light .nav-link {
    color: #0b1220;
}

/* Responsive tweaks */
@media (max-width: 720px) {
    .card {
        padding: 12px;
        border-radius: 10px;
    }

    header {
        padding: 12px;
    }
}

/* Tiny utility */
.text-faded {
    color: rgba(230, 238, 248, 0.6);
    font-size: .92rem;
}

/* =========================
   Upload form layout
========================= */

.form-upload {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
}

.form-upload h2 {
    text-align: center;
    margin-bottom: 24px;
}

/* Grid layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Full width rows */
.form-full {
    grid-column: 1 / -1;
}

/* Labels */
.form-upload label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

/* Submit button alignment */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.like-btn {
    color: #f87171; /* rouge clair */
    font-size: 1.1rem;
}


/* Mobile */
@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

hr {
    border-color: #374151
}