/* ══════════════════════════════════════════════
   ويدجت النصائح المخصصة — tips.css
══════════════════════════════════════════════ */

.tips-widget {
    margin: 12px auto 4px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tips-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--pf-accent, #b05080);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ── شبكة النصائح ── */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tips-grid .tip-card:nth-child(3) {
        display: none;
    }
}

/* ── بطاقة نصيحة ── */
.tip-card {
    background: var(--pf-card, #fff);
    border: 1.5px solid var(--pf-border, #ffd6e8);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #ffaac8, #b05080);
    opacity: 0.7;
}

.tip-card-1::before { background: linear-gradient(90deg, #c070e0, #7040a0); }
.tip-card-2::before { background: linear-gradient(90deg, #ff90c8, #e05090); }

.tip-card:hover {
    box-shadow: 0 6px 22px rgba(176,80,128,0.12);
    transform: translateY(-2px);
}

.tip-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-text, #3a1a30);
    line-height: 1.55;
    flex: 1;
}

/* ── زر النصيحة ── */
.tip-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.tip-btn:hover {
    opacity: 0.87;
    transform: scale(1.04);
}

/* ── Dark Mode ── */
[data-theme="dark"] .tips-title {
    color: #d090e0;
    opacity: 0.9;
}

[data-theme="dark"] .tip-card {
    background: #120a1e;
    border-color: rgba(180,100,220,0.18);
}

[data-theme="dark"] .tip-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.4);
}

[data-theme="dark"] .tip-text {
    color: #d0b8e0;
}
