/* Oracle / Advice Component — Glassmorphism Edition */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,700&display=swap');

.advice-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 400px;
    background: radial-gradient(circle at top right, #fdf2f8, #f0f9ff);
    border-radius: 24px;
    overflow: hidden;
}

.advice-card {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.oracle-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.oracle-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
    animation: oracle-float 4s ease-in-out infinite;
}

.advice-id {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #94a3b8;
    text-transform: uppercase;
}

.advice-body {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.advice-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    line-height: 1.4;
    color: #1e293b;
    font-style: italic;
    margin: 0;
    opacity: 1;
    transition: all 0.8s ease;
}

.advice-text.fade-out {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
}

.advice-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 85, 247, 0.1);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: oracle-spin 1s linear infinite;
}

.loading-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.oracle-btn {
    margin-top: 30px;
    position: relative;
    padding: 16px 40px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(30, 41, 59, 0.4);
}

.oracle-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(30, 41, 59, 0.6);
}

.oracle-btn:active { transform: scale(0.95); }

.btn-glow {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.oracle-btn:hover .btn-glow { left: 150%; }

@keyframes oracle-spin  { to { transform: rotate(360deg); } }
@keyframes oracle-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 767px) {
    .advice-card { padding: 30px 20px; }
    .advice-text { font-size: 1.4rem; }
    .oracle-icon { font-size: 2.5rem; }
}

/* ── Inline-style external (RFC-V2 finalisation) ─── */
.advice-config-panel {
    align-items: stretch;
    gap: 10px;
}

.advice-collection-panel {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.advice-collection-title {
    color: #854d0e;
}

.advice-collection-list {
    max-height: 240px;
    overflow-y: auto;
}

.advice-empty-msg {
    font-size: 0.75rem;
    font-style: italic;
    color: #92400e;
}

.advice-collection-item {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #fde68a;
}

.advice-collection-text {
    font-size: 0.875rem;
    color: #451a03;
    flex: 1;
}

.advice-collection-remove {
    color: #dc2626;
}
