/**
 * Admin Review Notice — Add as Preferred Source on Google
 */

/* ─── Notice Container ───────────────────────────────────────────────────── */
.aaps-review-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #faf9ff;
    border: 1px solid #e0e0f8;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 15px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Left accent stripe */
.aaps-review-notice::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px 0 0 10px;
}

/* ─── Icon + Stars Column ─────────────────────────────────────────────────── */
.aaps-review-notice__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    border-radius: 8px;
    color: #6366f1;
    min-width: 52px;
}

.aaps-review-notice__stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}

/* ─── Content Area ────────────────────────────────────────────────────────── */
.aaps-review-notice__content {
    flex: 1;
    min-width: 0;
}

.aaps-review-notice__title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    line-height: 1.4;
}

.aaps-review-notice__text {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

/* ─── Action Buttons Row ──────────────────────────────────────────────────── */
.aaps-review-notice__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Base button */
.aaps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.aaps-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Primary — solid indigo */
.aaps-btn--primary {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.aaps-btn--primary:hover,
.aaps-btn--primary:focus {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

/* Outline — bordered indigo */
.aaps-btn--outline {
    background: transparent;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.aaps-btn--outline:hover,
.aaps-btn--outline:focus {
    background: #ede9fe;
    border-color: #a5b4fc;
    color: #3730a3;
    text-decoration: none;
}

/* Ghost — plain text */
.aaps-btn--ghost {
    background: transparent;
    border-color: #e5e7eb;
    color: #6b7280;
}

.aaps-btn--ghost:hover,
.aaps-btn--ghost:focus {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
}

/* ─── Dismiss (X) Button ──────────────────────────────────────────────────── */
.aaps-review-notice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.aaps-review-notice__close:hover {
    color: #4f46e5;
    background: #ede9fe;
}

.aaps-review-notice__close:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ─── State Transitions ───────────────────────────────────────────────────── */
.aaps-notice-state {
    animation: aaps-fadein 0.2s ease;
}

@keyframes aaps-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .aaps-review-notice {
        flex-direction: column;
        gap: 14px;
    }

    .aaps-review-notice__icon {
        flex-direction: row;
        align-self: flex-start;
        padding: 6px 12px;
    }

    .aaps-review-notice__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aaps-btn {
        justify-content: center;
    }
}
