/* ================================================================
   einetter® Secrets — Frontend Styles
   CI: Dark background, #E8FF00 accent, clean sans-serif
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --es-bg:        #0d0d0d;
    --es-bg-card:   #161616;
    --es-bg-field:  #1e1e1e;
    --es-border:    #2a2a2a;
    --es-accent:    #E8FF00;
    --es-accent-dk: #bfd400;
    --es-text:      #f0f0f0;
    --es-muted:     #888;
    --es-error:     #ff4444;
    --es-warn:      #ff9900;
    --es-success:   #00cc66;
    --es-radius:    12px;
    --es-radius-sm: 8px;
    --es-transition: 0.2s ease;
}

/* Wrap */
.es-wrap {
    font-family: 'Inter', sans-serif;
    color: var(--es-text);
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

/* Card */
.es-card {
    background: var(--es-bg-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 32px;
    animation: es-fade-in 0.35s ease;
}

@keyframes es-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card Header */
.es-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--es-border);
}

.es-logo-badge {
    flex-shrink: 0;
}

.es-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--es-text);
    margin: 0 0 2px;
    line-height: 1.2;
}

.es-subtitle {
    font-size: 13px;
    color: var(--es-muted);
    margin: 0;
}

/* Form */
.es-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.es-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.es-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Textarea */
.es-textarea {
    background: var(--es-bg-field);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    color: var(--es-text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 14px;
    resize: vertical;
    transition: border-color var(--es-transition), box-shadow var(--es-transition);
    width: 100%;
    box-sizing: border-box;
}

.es-textarea:focus {
    outline: none;
    border-color: var(--es-accent);
    box-shadow: 0 0 0 3px rgba(232, 255, 0, 0.12);
}

.es-char-count {
    font-size: 12px;
    color: var(--es-muted);
    text-align: right;
}

/* Select */
.es-select-wrap {
    position: relative;
}

.es-select {
    appearance: none;
    background: var(--es-bg-field);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    color: var(--es-text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 11px 40px 11px 14px;
    width: 100%;
    cursor: pointer;
    transition: border-color var(--es-transition);
}

.es-select:focus {
    outline: none;
    border-color: var(--es-accent);
    box-shadow: 0 0 0 3px rgba(232, 255, 0, 0.12);
}

.es-select-arrow {
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--es-muted);
    font-size: 12px;
}

/* Input */
.es-input-wrap {
    position: relative;
}

.es-input {
    background: var(--es-bg-field);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    color: var(--es-text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 11px 44px 11px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--es-transition), box-shadow var(--es-transition);
}

.es-input:focus {
    outline: none;
    border-color: var(--es-accent);
    box-shadow: 0 0 0 3px rgba(232, 255, 0, 0.12);
}

.es-toggle-pw {
    background: none;
    border: none;
    color: var(--es-muted);
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: color var(--es-transition);
}
.es-toggle-pw:hover { color: var(--es-accent); }

/* Toggle Switch */
.es-toggle-label {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--es-text);
    user-select: none;
}

.es-toggle {
    flex-shrink: 0;
    height: 22px;
    position: relative;
    width: 42px;
}

.es-toggle input {
    display: none;
}

.es-toggle-slider {
    background: var(--es-border);
    border-radius: 11px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background var(--es-transition);
}

.es-toggle-slider::before {
    background: #fff;
    border-radius: 50%;
    bottom: 3px;
    content: '';
    height: 16px;
    left: 3px;
    position: absolute;
    transition: transform var(--es-transition);
    width: 16px;
}

.es-toggle input:checked + .es-toggle-slider {
    background: var(--es-accent);
}

.es-toggle input:checked + .es-toggle-slider::before {
    transform: translateX(20px);
}

.es-sub-field {
    margin-top: 4px;
    animation: es-slide-down 0.2s ease;
}

@keyframes es-slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Button */
.es-btn {
    align-items: center;
    background: var(--es-accent);
    border: none;
    border-radius: var(--es-radius-sm);
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    padding: 13px 24px;
    transition: background var(--es-transition), transform var(--es-transition), box-shadow var(--es-transition);
    width: 100%;
    letter-spacing: 0.01em;
}

.es-btn:hover:not(:disabled) {
    background: var(--es-accent-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,255,0,0.25);
}

.es-btn:active { transform: translateY(0); }

.es-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.es-btn--ghost {
    background: transparent;
    border: 1px solid var(--es-border);
    color: var(--es-muted);
    margin-top: 8px;
}

.es-btn--ghost:hover:not(:disabled) {
    border-color: var(--es-accent);
    color: var(--es-accent);
    background: transparent;
    box-shadow: none;
}

.es-btn--sm {
    font-size: 13px;
    padding: 9px 18px;
    width: auto;
}

/* Spinner */
.es-spinner {
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    width: 16px;
    animation: es-spin 0.7s linear infinite;
}

@keyframes es-spin {
    to { transform: rotate(360deg); }
}

/* Alert */
.es-alert {
    border-radius: var(--es-radius-sm);
    font-size: 13px;
    padding: 12px 14px;
    line-height: 1.5;
}

.es-alert--error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255,68,68,0.3);
    color: #ff7777;
}

/* Info box */
.es-info-box {
    align-items: flex-start;
    background: rgba(232,255,0,0.06);
    border: 1px solid rgba(232,255,0,0.2);
    border-radius: var(--es-radius-sm);
    color: var(--es-accent);
    display: flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.5;
    padding: 12px 14px;
}

.es-info-box svg { flex-shrink: 0; margin-top: 1px; }

.es-info-box--warn {
    background: rgba(255,153,0,0.08);
    border-color: rgba(255,153,0,0.25);
    color: var(--es-warn);
}

/* Result Card */
.es-result-card {
    text-align: center;
}

.es-result-icon {
    margin: 0 auto 16px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.es-result-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.es-result-hint {
    color: var(--es-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.es-link-box {
    align-items: center;
    background: var(--es-bg-field);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 12px;
    text-align: left;
}

.es-link-text {
    color: var(--es-accent);
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.es-copy-btn {
    align-items: center;
    background: rgba(232,255,0,0.1);
    border: 1px solid rgba(232,255,0,0.3);
    border-radius: 6px;
    color: var(--es-accent);
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    padding: 6px 10px;
    transition: background var(--es-transition);
}
.es-copy-btn:hover { background: rgba(232,255,0,0.2); }

/* Secret Display */
.es-secret-display { margin-top: 16px; }

.es-secret-header {
    align-items: center;
    color: var(--es-accent);
    display: flex;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.es-secret-text {
    background: var(--es-bg-field);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    color: var(--es-text);
    font-family: monospace;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-all;
}

.es-secret-actions {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
}

.es-secret-notice {
    align-items: center;
    color: var(--es-muted);
    display: flex;
    font-size: 12px;
    gap: 6px;
}

/* State Cards */
.es-state-card {
    text-align: center;
    padding: 48px 32px;
}

.es-state-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.es-state-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.es-state-text {
    color: var(--es-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .es-card {
        padding: 20px;
    }
    .es-title { font-size: 18px; }
}
