/* benitocore.online - Dark Chaos Theme */
:root {
    --bg: #050505;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --bg-hover: #222;
    --border: #222;
    --border-focus: #FE2C55;
    --pink: #FE2C55;
    --cyan: #25F4EE;
    --text: #eee;
    --text-muted: #888;
    --text-dim: #555;
    --green: #00e676;
    --yellow: #ffd600;
    --red: #ff1744;
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container - responsive */
.container {
    max-width: 580px;
    margin: 0 auto;
    padding: 16px 14px 50px;
}
@media (min-width: 640px) {
    .container { padding: 24px 20px 60px; }
}

/* Header */
.header {
    text-align: center;
    padding: 32px 0 24px;
}
@media (min-width: 640px) {
    .header { padding: 48px 0 32px; }
}
.header-emoji {
    font-size: 56px;
    margin-bottom: 14px;
    animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg) scale(1.05); }
    75% { transform: rotate(-8deg) scale(1.05); }
}
.header h1 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}
@media (min-width: 640px) {
    .header h1 { font-size: 30px; }
}
.header h1 span {
    background: linear-gradient(135deg, var(--pink) 0%, #ff6b35 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-sub {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
@media (min-width: 640px) {
    .header-sub { font-size: 17px; }
}
.header-sub2 {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-bottom: 14px;
}
@media (min-width: 640px) {
    .card { padding: 24px; margin-bottom: 16px; }
}
.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title i { color: var(--pink); font-size: 13px; }

/* Drop Zone */
.dropzone {
    border: 2px dashed #2a2a2a;
    border-radius: 14px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bg-input);
    margin-bottom: 16px;
}
@media (min-width: 640px) {
    .dropzone { padding: 44px 20px; }
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--pink);
    background: rgba(254, 44, 85, 0.06);
}
.dropzone.has-file {
    border-color: var(--green);
    border-style: solid;
    background: rgba(0, 230, 118, 0.06);
}
.dropzone-icon { font-size: 34px; color: var(--text-dim); margin-bottom: 10px; transition: transform 0.3s; }
.dropzone:hover .dropzone-icon { transform: translateY(-4px); }
.dropzone.has-file .dropzone-icon { color: var(--green); }
.dropzone-text { font-size: 14px; color: var(--text-muted); }
.dropzone-text strong { color: var(--pink); }
.dropzone-hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.dropzone-file { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 8px; word-break: break-all; }

/* Form inputs */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-label .req { color: var(--pink); }
.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--border-focus); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* Hashtag chips */
.hashtag-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hashtag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(254, 44, 85, 0.12); color: var(--pink);
    padding: 5px 10px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.hashtag-chip button {
    background: none; border: none; color: var(--pink); cursor: pointer;
    font-size: 16px; line-height: 1; padding: 0 2px; opacity: 0.6;
}
.hashtag-chip button:hover { opacity: 1; }

/* Progress bar */
.progress-wrap { display: none; margin: 16px 0; }
.progress-wrap.active { display: block; }
.progress-bar-bg { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.progress-bar {
    height: 100%; width: 0%; border-radius: 3px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transition: width 0.3s;
}
.progress-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--pink), #e91e63);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    -webkit-appearance: none;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(254, 44, 85, 0.35); }
.btn-submit:active:not(:disabled) { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Messages */
.msg { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: none; }
.msg.show { display: flex; align-items: center; gap: 10px; }
.msg-success { background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.2); color: var(--green); }
.msg-error { background: rgba(255,23,68,0.1); border: 1px solid rgba(255,23,68,0.2); color: var(--red); }

/* Queue */
.queue-empty { text-align: center; padding: 28px 10px; color: var(--text-dim); font-size: 13px; }
.queue-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.queue-item:last-child { border-bottom: none; }
.queue-item.mine { background: rgba(37,244,238,0.04); margin: 0 -16px; padding: 12px 16px; border-radius: 10px; }
@media (min-width: 640px) {
    .queue-item.mine { margin: 0 -24px; padding: 12px 24px; }
}
.queue-pos {
    width: 28px; height: 28px; border-radius: 8px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--bg-input); color: var(--text-muted);
}
.queue-info { flex: 1; min-width: 0; }
.queue-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Status badges */
.badge { padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.badge-pending { background: rgba(255,214,0,0.12); color: var(--yellow); }
.badge-uploading { background: rgba(37,244,238,0.12); color: var(--cyan); animation: pulse 1.5s infinite; }
.badge-published { background: rgba(0,230,118,0.12); color: var(--green); }
.badge-failed { background: rgba(255,23,68,0.12); color: var(--red); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-dim);
    font-size: 12px;
}

/* Touch improvements for mobile */
@media (max-width: 480px) {
    .form-input, .form-textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
    .btn-submit { font-size: 16px; padding: 16px; }
}

/* Safe area for notch phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .container { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
}
