/* ============================================================
   amnevoie.de — Stiluri CSS proprii
   Complementare față de Tailwind CDN
   ============================================================ */

/* --- Scroll bar personalizat (webkit) --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #d6a86a;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8863e;
}

/* --- Scroll orizontal fără scrollbar vizibil (categorii) --- */
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

/* --- Animație fade-in pentru carduri --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    animation: fadeInUp 0.25s ease-out both;
}

/* --- Animație puls badge notificări --- */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.85; }
}

.animate-pulse {
    animation: pulse-badge 1.8s ease-in-out infinite;
}

/* --- Line-clamp fallback pentru browsere mai vechi --- */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* --- Sidebar tranziție smooth --- */
#sidebar {
    will-change: transform;
}

/* --- Buton principal (amber) — hover cu tranziție --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #92400e; /* amber-800 */
    color: #fff;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #78350f; /* amber-900 */
    box-shadow: 0 2px 8px rgba(120, 53, 15, 0.25);
}

/* --- Focus vizibil accesibil --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d97706; /* amber-600 */
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Paginare --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #fde68a; /* amber-200 */
    background: #fff;
    color: #78350f;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}
.pagination a:hover {
    background-color: #fef3c7; /* amber-100 */
    border-color: #fbbf24;
}
.pagination .active {
    background-color: #b45309; /* amber-700 */
    color: #fff;
    border-color: #b45309;
    pointer-events: none;
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* --- Print: ascunde sidebar și header --- */
@media print {
    header, aside, footer, .pagination { display: none !important; }
    main { padding: 0 !important; }
}
