/* reminders.css - Promemoria styles */

.reminders-container {
    padding: 20px;
    max-width: 600px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.reminders-header {
    margin-bottom: 20px;
}
.reminders-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}
.reminders-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.reminders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.reminders-empty p {
    margin-top: 12px;
    font-size: 14px;
}

/* Reminder card */
.reminder-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background var(--transition);
}
.reminder-card:hover {
    background: var(--bg-tertiary, var(--bg-secondary));
}

/* Check button */
.reminder-check {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.reminder-check-empty {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: border-color var(--transition);
}
.reminder-check:hover .reminder-check-empty {
    border-color: var(--primary);
}

/* Info */
.reminder-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}
.reminder-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.reminder-body {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.reminder-date {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Delete button */
.reminder-delete {
    opacity: 0.6;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.reminder-card:hover .reminder-delete {
    opacity: 1;
}

/* States */
.reminder-completed .reminder-title {
    text-decoration: line-through;
    opacity: 0.5;
}
.reminder-completed .reminder-body,
.reminder-completed .reminder-date {
    opacity: 0.4;
}

.reminder-past:not(.reminder-completed) .reminder-date {
    color: #C0604A;
    font-weight: 600;
}

/* Alert type badge */
.reminder-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--bg-primary, rgba(0,0,0,0.04));
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
    margin-top: 2px;
}
.reminder-alert-badge svg {
    opacity: 0.6;
}
.reminder-completed .reminder-alert-badge {
    opacity: 0.4;
}

/* Alert type picker in modal */
.alert-type-picker {
    display: flex;
    gap: 8px;
}
.alert-type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px 10px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.alert-type-option:active {
    transform: scale(0.96);
}
.alert-type-option.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}
.alert-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.alert-type-option.selected .alert-type-icon {
    background: var(--primary);
    color: white;
}
.alert-type-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.alert-type-desc {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.2;
}
.alert-type-option.selected .alert-type-label {
    color: var(--primary);
}

[data-theme="dark"] .alert-type-option.selected {
    background: rgba(79, 70, 229, 0.15);
}
