/* crew/crew.css — Studio v3 */

body { overflow-x: hidden; }

/* ── HERO ── */
.crew-hero {
    position: relative; min-height: 64vh; display: flex; align-items: flex-end;
    padding: 0 5% 64px; overflow: hidden;
}
.hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, var(--bg-void) 0%, rgba(8,9,11,.55) 52%, transparent 100%);
}
.crew-hero-content { position: relative; z-index: 3; max-width: 720px; padding-top: 110px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--tint-2); border: 1px solid var(--border-subtle);
    color: var(--text-body); padding: 7px 15px; border-radius: var(--r-pill);
    font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
    letter-spacing: .01em; text-transform: none; margin-bottom: 20px;
    backdrop-filter: blur(12px);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(42px, 7.2vw, 88px); line-height: .98; letter-spacing: -.045em;
    margin: 0 0 16px; text-transform: uppercase;
}
.hero-desc { font-size: 16px; color: var(--text-body); line-height: 1.65; max-width: 500px; font-weight: 300; margin: 0; }
.crew-hero-content .btn-primary { margin-top: 26px; }

/* ── CONTAINER ── */
.crew-container { padding: 70px 5% 110px; max-width: 1600px; margin: 0 auto; position: relative; z-index: 1; }

/* ── GRID ── */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ── CARD ── */
.crew-card {
    position: relative; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.crew-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.crew-img {
    width: 100%; height: 210px; object-fit: cover; display: block;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform .6s var(--ease);
}
.crew-card:hover .crew-img { transform: scale(1.05); }
.crew-info { padding: 18px 18px 20px; }
.crew-car-name {
    font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.025em;
    color: var(--text-heading); margin-bottom: 5px; line-height: 1.2;
}
.crew-car-model {
    font-family: var(--font-ui); font-size: 12px; color: var(--accent-text);
    letter-spacing: .02em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.crew-owner-name { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); }

/* ── PHOTO SLOT ── */
.crew-photo-slot {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
    background: var(--tint-1); height: 165px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    transition: border-color .25s, background .25s;
}
.crew-photo-slot:hover { border-color: var(--accent-a30); background: var(--accent-a08); }
.crew-photo-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 5; }
.crew-photo-slot .slot-icon { font-size: 26px; opacity: .8; }
.crew-photo-slot .slot-label { font-family: var(--font-ui); font-size: 12.5px; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.crew-photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.remove-crew-photo {
    position: absolute; top: 8px; right: 8px; z-index: 10;
    background: var(--card); color: var(--text); border: 1px solid var(--border-strong);
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px);
    transition: background .2s, color .2s;
}
.remove-crew-photo:hover { background: var(--danger); border-color: var(--danger); color: var(--text); }

/* ── EMPTY ── */
.crew-empty {
    grid-column: 1/-1; text-align: center; padding: 90px 20px;
    color: var(--text-muted); font-family: var(--font-ui); font-size: 15px;
    border: 1px dashed var(--border-subtle); border-radius: var(--r-lg);
    text-transform: none; letter-spacing: 0;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    .crew-hero { min-height: 56vh; padding: 0 5% 44px; }
    .crew-hero-content { padding-top: 96px; }
    .crew-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
    .crew-container { padding: 48px 5% 70px; }
    .crew-card:hover { transform: none; }
}
@media (max-width: 480px) {
    .crew-grid { grid-template-columns: 1fr 1fr; }
    .crew-img { height: 150px; }
    .crew-info { padding: 14px; }
    .crew-car-name { font-size: 16px; }
}

/* ══ v6 — crew în app-shell ══ */
.app-side #btn-join-crew { width: 100%; justify-content: center; }
.crew-container .crew-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.crew-container .crew-empty { padding: 60px 20px; }

/* ══ v7 PRECISION — crew ══ */
.crew-card { border-radius: var(--r-lg); background: var(--bg-card); }
.crew-card:hover { border-color: var(--accent-a30); transform: translateY(-4px); }
.crew-car-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: 17px; }
.crew-car-model { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; }
.crew-owner-name { font-family: var(--font-body); font-size: 13px; }
.crew-photo-slot { border-radius: var(--r-md); }
.crew-photo-slot .slot-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.crew-empty { border-radius: var(--r-lg); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.remove-crew-photo { border-radius: var(--r-sm); }

/* ══ v8 — aer & mobil (crew) ══ */
.crew-info { padding: 22px 20px 24px; }
.crew-container .crew-grid { gap: 20px; }
@media (max-width: 720px) {
    .crew-container .crew-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .crew-img { height: 160px; }
    .crew-info { padding: 16px 14px 18px; }
    .crew-car-name { font-size: 15px; }
    .crew-photo-slot { height: 150px; }
}
@media (max-width: 420px) {
    .crew-container .crew-grid { grid-template-columns: 1fr; }
    .crew-img { height: 210px; }
}
