/* ═══════════════════════════════════════════════════════
 * CARNIVORES – Knife Design Competition
 * Main stylesheet (public pages)  · RTL · Hebrew
 * ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --red:          #c62828;
    --red-dark:     #8e0000;
    --red-light:    #ef5350;
    --gold:         #c9a96e;
    --gold-dark:    #a88550;
    --bg:           #0a0a0a;
    --bg-card:      #141414;
    --bg-card-alt:  #1c1c1c;
    --txt:          #f0f0f0;
    --txt-sec:      #999;
    --txt-mute:     #666;
    --border:       #2a2a2a;
    --radius:       12px;
    --shadow:       0 4px 24px rgba(0,0,0,.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ── Utility ── */
.content-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 3px 14px rgba(198,40,40,.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(198,40,40,.45); }
.btn--primary:active { transform: translateY(0); }

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a1a;
    font-weight: 700;
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,169,110,.35); }

.btn--secondary {
    background: var(--bg-card-alt);
    color: var(--txt);
    border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--red); color: var(--red-light); }

.btn--ghost {
    background: transparent;
    color: var(--txt-sec);
    border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-light); }

.btn--full  { width: 100%; }
.btn--lg    { padding: 15px 36px; font-size: 17px; }
.btn--sm    { padding: 7px 14px; font-size: 13px; }

/* ═══ ALERTS ═══ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; }

.alert--error   { background: rgba(198,40,40,.12);   border: 1px solid rgba(198,40,40,.35);  color: #ef5350; }
.alert--success { background: rgba(76,175,80,.12);   border: 1px solid rgba(76,175,80,.35);  color: #66bb6a; }
.alert--info    { background: rgba(33,150,243,.12);  border: 1px solid rgba(33,150,243,.35); color: #64b5f6; }
.alert--warning { background: rgba(255,152,0,.12);   border: 1px solid rgba(255,152,0,.35);  color: #ffb74d; }

.alert--standalone { margin: 0; }

/* ═══ LOGIN PAGE ═══ */
.page-login { min-height: 100vh; position: relative; overflow: hidden; }

/* Ambient glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .25;
    pointer-events: none;
    z-index: 0;
}
.bg-glow--red  { width: 500px; height: 500px; background: var(--red);  top: -120px; right: -100px; }
.bg-glow--gold { width: 350px; height: 350px; background: var(--gold); bottom: -80px; left: -80px; }

.login-screen {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px 40px;
    text-align: center;
}

/* Logo */
.login-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 28px;
    color: var(--txt);
}
.logo-c    { color: var(--red); }
.logo-rest { color: var(--txt); }

.login-card h1        { font-size: 22px; margin-bottom: 6px; }
.login-sub            { color: var(--txt-mute); font-size: 14px; margin-bottom: 26px; }

/* Form */
.login-card label {
    display: block;
    color: var(--txt-sec);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: right;
}

.login-card input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--txt);
    font-size: 20px;
    font-family: inherit;
    text-align: center;
    letter-spacing: 2px;
    direction: ltr;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 20px;
}
.login-card input[type="tel"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(198,40,40,.2);
}
.login-card input[type="tel"]::placeholder { color: var(--txt-mute); letter-spacing: 1px; }

.login-footer {
    margin-top: 22px;
    color: var(--txt-mute);
    font-size: 12px;
}

/* ═══ NAVBAR ═══ */
.navbar {
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 4px;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.navbar-user { color: var(--txt-sec); font-size: 14px; }

/* ═══ HERO ═══ */
.hero {
    text-align: center;
    padding: 56px 20px 36px;
}
.hero h1 {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 10px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--txt), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub { color: var(--txt-sec); font-size: 17px; }

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 20px;
}
.card h2 {
    font-size: 19px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}
.card-desc  { color: var(--txt-sec); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
.card-subhead { color: var(--txt); font-size: 15px; margin-bottom: 10px; }

/* ── Check list ── */
.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.check-list li {
    position: relative;
    padding-right: 24px;
    color: var(--txt-sec);
    font-size: 14px;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #66bb6a;
    font-weight: 700;
}

/* ── Info list ── */
.info-list {
    list-style: none;
    padding: 0;
}
.info-list li {
    color: var(--txt-sec);
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }

/* ── Warning box ── */
.warn-box {
    background: rgba(255,152,0,.08);
    border: 1px solid rgba(255,152,0,.25);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffb74d;
    font-size: 14px;
    margin-top: 16px;
}

/* ── Knife download box ── */
.knife-box {
    text-align: center;
    background: rgba(198,40,40,.06);
    border: 1px dashed rgba(198,40,40,.3);
    border-radius: 10px;
    padding: 28px 20px;
}
.knife-box img {
    max-height: 260px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 6px;
}

/* ── Prompt cards ── */
.prompt-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
}
.prompt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.prompt-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
}
.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--txt-mute);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.copy-btn.copied { border-color: #66bb6a; color: #66bb6a; }

.prompt-body {
    color: var(--txt-sec);
    font-size: 13px;
    line-height: 1.55;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(0,0,0,.3);
    padding: 12px 14px;
    border-radius: 6px;
    margin: 0;
}

/* ═══ CTA ═══ */
.cta-wrap { text-align: center; padding: 32px 0 16px; }

/* ═══ SUBMIT PAGE ═══ */
.page-head { text-align: center; padding: 36px 0 20px; }
.page-head h1 { font-size: 28px; }

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s, background .25s;
    position: relative;
}
.dropzone:hover,
.dropzone.over { border-color: var(--red); background: rgba(198,40,40,.05); }

.dropzone > input { display: none; }

.dropzone-content { pointer-events: none; }
.dropzone-icon    { font-size: 44px; margin-bottom: 10px; }
.dropzone-text    { color: var(--txt-sec); font-size: 15px; }
.dropzone-text strong { color: var(--txt); }
.dropzone-hint    { color: var(--txt-mute); font-size: 13px; margin-top: 6px; }

/* Preview */
.preview-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.preview-wrap img {
    max-height: 380px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.preview-meta { color: var(--txt-mute); font-size: 13px; margin-bottom: 8px; }

/* Confirm checkbox */
.confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,152,0,.06);
    border: 1px solid rgba(255,152,0,.2);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 20px 0;
    cursor: pointer;
}
.confirm-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--red);
    margin-top: 2px;
}
.confirm-label span { color: var(--txt-sec); font-size: 14px; line-height: 1.45; }

/* Already-submitted box */
.submitted-box {
    text-align: center;
    padding: 52px 20px;
}
.submitted-icon { font-size: 60px; margin-bottom: 18px; }
.submitted-box h2 { font-size: 24px; margin-bottom: 8px; color: #66bb6a; }
.submitted-box p  { color: var(--txt-mute); margin-bottom: 20px; }

/* ═══ FOOTER ═══ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
}
.site-footer p {
    color: var(--txt-mute);
    font-size: 12px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .login-card      { padding: 36px 24px 32px; }
    .hero h1        { font-size: 26px; }
    .card           { padding: 20px; }
    .check-list     { grid-template-columns: 1fr; }
    .prompt-head    { flex-direction: column; align-items: flex-start; }
}
