/* ============================================
   Rozen Herinneringen - Frontend v2
   ============================================ */

.rozen-herinneringen-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* ============ Intro ============ */
.rh-intro {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff5f5, #fff0f3);
    border-radius: 16px;
    margin-bottom: 32px;
}

.rh-intro-icon { font-size: 48px; margin-bottom: 12px; }
.rh-intro h2 { font-size: 24px; font-weight: 700; color: #1d2327; margin: 0 0 12px; }
.rh-intro p { font-size: 16px; color: #666; line-height: 1.6; max-width: 560px; margin: 0 auto; }

/* ============ Email ============ */
.rh-email-section { margin-bottom: 32px; }

.rh-email-box {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.rh-email-box label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 12px; }
.rh-email-row { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.rh-email-row input { flex: 1; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 16px; outline: none; transition: border-color 0.2s; }
.rh-email-row input:focus { border-color: #c41e3a; }
.rh-email-hint { font-size: 12px; color: #9ca3af; margin: 8px 0 0; }

/* ============ Buttons ============ */
.rh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.rh-btn-primary {
    background: linear-gradient(135deg, #c41e3a, #d4324c); color: #fff;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}
.rh-btn-primary:hover { box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35); transform: translateY(-1px); }
.rh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.rh-btn-large { padding: 14px 28px; font-size: 16px; }
.rh-btn-ghost { background: transparent; color: #6b7280; border: 2px solid #e5e7eb; }
.rh-btn-ghost:hover { background: #f3f4f6; border-color: #d1d5db; }

/* ============ Existing List ============ */
.rh-existing { margin-bottom: 32px; }
.rh-existing h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #1d2327; }
.rh-list { display: flex; flex-direction: column; gap: 8px; }

.rh-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; transition: all 0.15s;
}
.rh-item:hover { border-color: #fecdd3; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.rh-item-inactive { opacity: 0.5; }
.rh-item-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.rh-item-info { flex: 1; min-width: 0; }
.rh-item-title { font-size: 14px; font-weight: 600; color: #1d2327; margin-bottom: 2px; }
.rh-item-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6b7280; }
.rh-badge-inactive { padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #fee2e2; color: #dc2626; }

.rh-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.rh-item-actions button {
    width: 32px; height: 32px; border: none; background: #f3f4f6; border-radius: 8px;
    cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.rh-item-actions button:hover { background: #e5e7eb; transform: scale(1.05); }

/* ============ Add Section ============ */
.rh-add-section {
    background: #fff; border: 2px solid #e5e7eb; border-radius: 12px;
    padding: 28px; margin-bottom: 32px;
}
.rh-add-section h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: #1d2327; }
.rh-add-subtitle { font-size: 14px; color: #6b7280; margin: 0 0 24px; }

/* ============ Accordion ============ */
.rh-accordion { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.rh-acc-item {
    border: 2px solid #e5e7eb; border-radius: 10px; overflow: hidden;
    transition: border-color 0.2s;
}
.rh-acc-item.rh-acc-open { border-color: #c41e3a; }

.rh-acc-header {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 20px; background: #f9fafb; border: none;
    cursor: pointer; font-size: 16px; font-weight: 600; color: #1d2327;
    transition: background 0.15s;
}
.rh-acc-header:hover { background: #f3f4f6; }
.rh-acc-open .rh-acc-header { background: #fff5f5; }

.rh-acc-header-left { display: flex; align-items: center; gap: 10px; }
.rh-acc-icon { font-size: 22px; }
.rh-acc-arrow {
    font-size: 20px; color: #9ca3af; transition: transform 0.2s;
    font-weight: 400;
}
.rh-acc-open .rh-acc-arrow { transform: rotate(90deg); color: #c41e3a; }

.rh-acc-body { padding: 16px 20px; background: #fff; }

/* Occasion buttons inside accordion */
.rh-acc-occasions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.rh-occ-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: #f9fafb; border: 2px solid #e5e7eb;
    border-radius: 8px; cursor: pointer; transition: all 0.15s;
    font-size: 13px; font-weight: 500; color: #374151;
}
.rh-occ-btn:hover { border-color: #fecdd3; background: #fff5f5; }
.rh-occ-btn.rh-occ-selected {
    border-color: #c41e3a; background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.12);
}
.rh-occ-emoji { font-size: 16px; }

/* ============ Inline Add Form ============ */
.rh-inline-add {
    background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px;
    padding: 16px; margin-top: 4px;
}

.rh-selected-tag {
    display: inline-block; padding: 4px 12px; background: #fff5f5;
    border: 1px solid #fecdd3; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: #c41e3a;
    margin-bottom: 10px;
}

.rh-inline-row {
    display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap;
}

.rh-inline-field { display: flex; flex-direction: column; gap: 4px; }
.rh-inline-field label { font-size: 12px; font-weight: 600; color: #6b7280; }
.rh-inline-grow { flex: 1; min-width: 180px; }

.rh-input, .rh-select-sm {
    padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; outline: none; transition: border-color 0.2s;
    background: #fff;
}
.rh-input:focus, .rh-select-sm:focus { border-color: #c41e3a; }
.rh-select-sm { min-width: 90px; cursor: pointer; }

.rh-custom-label-field { margin-bottom: 8px; }
.rh-custom-label-field .rh-input { width: 100%; box-sizing: border-box; }

.rh-inline-hint { font-size: 12px; color: #9ca3af; margin: 10px 0 0; }

/* ============ Queue ============ */
.rh-queue-section {
    background: #fffbeb; border: 2px solid #fef3c7; border-radius: 12px;
    padding: 20px; margin-top: 16px;
}

.rh-queue-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rh-queue-header h4 { font-size: 16px; font-weight: 700; margin: 0; color: #92400e; }
.rh-queue-badge {
    background: #f59e0b; color: #fff; padding: 2px 10px;
    border-radius: 12px; font-size: 13px; font-weight: 700;
}

.rh-queue-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.rh-queue-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #fff; border: 1px solid #fef3c7; border-radius: 8px;
}
.rh-queue-emoji { font-size: 20px; flex-shrink: 0; }
.rh-queue-info { flex: 1; min-width: 0; }
.rh-queue-label { font-size: 14px; font-weight: 600; color: #1d2327; display: block; }
.rh-queue-meta { font-size: 12px; color: #6b7280; }

.rh-queue-remove {
    width: 28px; height: 28px; border: none; background: #fef3c7;
    border-radius: 50%; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; color: #92400e; flex-shrink: 0;
}
.rh-queue-remove:hover { background: #f59e0b; color: #fff; }

.rh-queue-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ============ Edit Section ============ */
.rh-edit-section {
    background: #f0f9ff; border: 2px solid #bae6fd; border-radius: 12px;
    padding: 20px; margin-top: 16px;
}
.rh-edit-section h4 { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: #0369a1; }

.rh-edit-fields { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rh-field-compact { display: flex; flex-direction: column; gap: 4px; }
.rh-field-compact label { font-size: 12px; font-weight: 600; color: #6b7280; }
.rh-field-compact:nth-child(1) { flex: 1; min-width: 150px; }
.rh-field-compact:nth-child(2) { flex: 1; min-width: 150px; }
.rh-field-short { width: 90px; flex: none !important; }

.rh-edit-actions { display: flex; gap: 8px; }

/* ============ Messages ============ */
.rh-message { padding: 14px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.rh-msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.rh-msg-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ============ Info Section ============ */
.rh-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.rh-info-item {
    display: flex; gap: 14px; padding: 20px;
    background: #f9fafb; border-radius: 10px;
}
.rh-info-icon { font-size: 24px; flex-shrink: 0; }
.rh-info-item strong { display: block; font-size: 14px; font-weight: 600; color: #1d2327; margin-bottom: 4px; }
.rh-info-item p { font-size: 13px; color: #6b7280; line-height: 1.4; margin: 0; }

/* Verify notice */
.rh-verify-notice {
    padding: 16px 20px; background: #fffbeb; border: 1px solid #fef3c7;
    border-radius: 8px; font-size: 14px; color: #92400e;
}
.rh-verify-notice p { margin: 0; }

/* Loading */
.rh-loading { text-align: center; padding: 20px; color: #9ca3af; font-size: 14px; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
    .rozen-herinneringen-wrap { padding: 10px; }
    .rh-intro { padding: 28px 16px; }
    .rh-intro h2 { font-size: 20px; }
    .rh-email-row { flex-direction: column; }
    .rh-add-section { padding: 20px 16px; }
    .rh-acc-header { padding: 14px 16px; font-size: 15px; }
    .rh-acc-body { padding: 12px 16px; }
    .rh-occ-btn { padding: 7px 10px; font-size: 12px; }
    .rh-inline-row { flex-direction: column; }
    .rh-inline-grow { min-width: 100%; }
    .rh-select-sm { width: 100%; }
    .rh-btn-add-to-queue { width: 100%; }
    .rh-queue-actions { flex-direction: column; }
    .rh-queue-actions .rh-btn { width: 100%; }
    .rh-edit-fields { flex-direction: column; }
    .rh-field-short { width: 100% !important; }
    .rh-edit-actions { flex-direction: column; }
    .rh-edit-actions .rh-btn { width: 100%; }
    .rh-item { padding: 12px; gap: 10px; }
    .rh-item-meta { flex-direction: column; gap: 2px; }
    .rh-info { grid-template-columns: 1fr; }
}
