/* Virtual Nights – Frontend CSS */

:root {
    --vn-primary:     #e91e63;
    --vn-primary-d:   #c2185b;
    --vn-bg:          #1a1a2e;
    --vn-card-bg:     #16213e;
    --vn-surface:     #0f3460;
    --vn-text:        #e0e0e0;
    --vn-text-muted:  #9e9e9e;
    --vn-heading:     #ffffff;
    --vn-border:      rgba(255,255,255,0.1);
    --vn-radius:      10px;
    --vn-shadow:      0 4px 20px rgba(0,0,0,0.3);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
.vn-box, .vn-dashboard, .vn-profile, .vn-event-list, .vn-login-form, .vn-register-form {
    font-family: inherit;
    color: var(--vn-text);
    max-width: 800px;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.vn-box {
    background: var(--vn-card-bg);
    border-radius: var(--vn-radius);
    padding: 28px 32px;
    box-shadow: var(--vn-shadow);
    max-width: 480px;
}
.vn-form-title { margin-top: 0; color: var(--vn-heading); }

.vn-field { margin-bottom: 16px; }
.vn-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.88rem;
    color: var(--vn-text-muted);
    font-weight: 500;
}
.vn-field input,
.vn-field textarea,
.vn-field select {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--vn-border);
    border-radius: 6px;
    color: #fff;
    padding: 10px 12px;
    font-size: 1rem;
    transition: border-color .2s;
    box-sizing: border-box;
}
.vn-field input:focus,
.vn-field textarea:focus,
.vn-field select:focus {
    outline: none;
    border-color: var(--vn-primary);
}
.vn-field-check { display: flex; align-items: center; gap: 8px; }
.vn-field small, .vn-hint { font-size: 0.78rem; color: var(--vn-text-muted); display: block; margin-top: 4px; }
.vn-form-alt  { text-align: center; font-size: 0.88rem; margin-top: 16px; color: var(--vn-text-muted); }
.vn-form-alt a { color: var(--vn-primary); }

/* Notices */
.vn-notice {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.vn-notice-success { background: #1b5e20; color: #c8e6c9; }
.vn-notice-error   { background: #b71c1c; color: #ffcdd2; }
.vn-notice-info    { background: #1a237e; color: #c5cae9; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.vn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}
.vn-btn-primary {
    background: var(--vn-primary);
    color: #fff;
    width: 100%;
}
.vn-btn-primary:hover { background: var(--vn-primary-d); }
.vn-btn-ghost {
    background: transparent;
    color: var(--vn-text-muted);
    border: 1px solid var(--vn-border);
}
.vn-btn-ghost:hover { border-color: var(--vn-primary); color: var(--vn-primary); }
.vn-btn-sm   { padding: 6px 14px; font-size: 0.82rem; }
.vn-badge         { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; background: var(--vn-surface); color: #fff; }
.vn-badge-success { background: #2e7d32; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.vn-dashboard { max-width: 860px; }
.vn-dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vn-border);
}
.vn-dashboard-header h2 { margin: 0; color: var(--vn-heading); }

/* Avatare */
.vn-avatar, .vn-avatar-lg, .vn-avatar-sm {
    border-radius: 50%;
    object-fit: cover;
    background: var(--vn-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vn-avatar    { width: 80px;  height: 80px;  font-size: 1.8rem; }
.vn-avatar-lg { width: 120px; height: 120px; font-size: 2.5rem; }
.vn-avatar-sm { width: 50px;  height: 50px;  font-size: 1.1rem; }

/* Tabs */
.vn-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--vn-border); }
.vn-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--vn-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .2s;
}
.vn-tab.active, .vn-tab:hover { color: var(--vn-primary); border-bottom-color: var(--vn-primary); }
.vn-tab-content { display: none; }
.vn-tab-content.active { display: block; }
.vn-tab-badge { position: relative; }

/* ── Event Grid ───────────────────────────────────────────────────────────── */
.vn-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.vn-event-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.vn-event-card:hover { transform: translateY(-3px); box-shadow: var(--vn-shadow); }
.vn-event-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.vn-event-card-body { padding: 14px 16px; }
.vn-event-date   { font-size: 0.78rem; color: var(--vn-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vn-event-title  { margin: 6px 0; font-size: 1rem; color: var(--vn-heading); }
.vn-event-title a { color: var(--vn-heading); text-decoration: none; }
.vn-event-title a:hover { color: var(--vn-primary); }
.vn-event-city   { font-size: 0.82rem; color: var(--vn-text-muted); margin-bottom: 8px; }
.vn-event-desc   { font-size: 0.83rem; color: var(--vn-text-muted); margin-bottom: 10px; }
.vn-event-card-sm { background: var(--vn-surface); border-radius: 6px; padding: 10px 12px; font-size: 0.85rem; }
.vn-event-card-sm strong { display: block; color: var(--vn-heading); margin-bottom: 2px; }
.vn-event-card-sm span   { color: var(--vn-text-muted); font-size: 0.78rem; }

/* ── Profile ──────────────────────────────────────────────────────────────── */
.vn-profile { max-width: 800px; }
.vn-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.vn-profile-info { flex: 1; }
.vn-profile-name { margin: 0 0 4px; font-size: 1.6rem; color: var(--vn-heading); }
.vn-profile-city, .vn-profile-contacts { font-size: 0.88rem; color: var(--vn-text-muted); margin: 2px 0; }
.vn-profile-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vn-profile-bio     { background: var(--vn-surface); border-radius: 8px; padding: 16px; margin-bottom: 24px; line-height: 1.6; }
.vn-profile-events h2 { color: var(--vn-heading); font-size: 1rem; margin-bottom: 12px; }

/* ── Member Grid ──────────────────────────────────────────────────────────── */
.vn-member-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.vn-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--vn-surface);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
}
.vn-member-card a { color: var(--vn-heading); text-decoration: none; }
.vn-member-card a:hover { color: var(--vn-primary); }

/* ── Contact Requests ─────────────────────────────────────────────────────── */
.vn-contact-request {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vn-border);
}
.vn-no-results { color: var(--vn-text-muted); font-style: italic; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .vn-box { padding: 20px 16px; }
    .vn-profile-header { flex-direction: column; }
    .vn-profile-actions { align-items: flex-start; }
    .vn-event-grid { grid-template-columns: 1fr; }
}
