/* Page styles of resources/views/frontend/topics/show.blade.php (moved out of the view) */

/* ── Topic Info ───────────────────────────────────────────────── */
.topic-icon-large { transition: transform 0.3s ease; }
.topic-info-header:hover .topic-icon-large { transform: scale(1.1); }
.color-preview {
    border: 1px solid rgba(0,0,0,.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.color-preview:hover { transform: scale(1.2); }

/* ── Quote Items ──────────────────────────────────────────────── */
.quote-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1.25rem;
}
.quote-item:hover {
    background-color: rgba(0,0,0,.02);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}
.quote-content p { line-height: 1.8; position: relative; }
.quote-content p::before {
    content: '"';
    position: absolute;
    right: -10px; top: -5px;
    font-size: 2rem;
    color: var(--bs-primary);
    opacity: .2;
    font-family: serif;
}

/* ── Category badge hover ─────────────────────────────────────── */
.quote-category .badge {
    transition: all 0.3s ease;
    font-size: .85rem;
}
.quote-category .badge:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

/* ── Stats ────────────────────────────────────────────────────── */
.stat-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.like-stat:hover     { background-color: rgba(220,53,69,.1)  !important; }
.like-stat:hover i   { color: #dc3545 !important; transform: scale(1.2); }
.bookmark-stat:hover   { background-color: rgba(255,193,7,.1)  !important; }
.bookmark-stat:hover i { color: #ffc107 !important; transform: scale(1.2); }
.comment-stat:hover    { background-color: rgba(16, 102, 231,.1) !important; }
.comment-stat:hover i, .comment-stat:hover small { color: #1066E7 !important; }
.sorting-options .btn {
    padding: 8px 10px;
    font-size: .85rem;
    transition: all 0.3s ease;
    border-radius: 6px !important;
}

/* ── Author avatar ────────────────────────────────────────────── */
.author-avatar-sm, .author-avatar { position: relative; }
.author-avatar-sm::after, .author-avatar::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%; z-index: -1;
    opacity: 0; transition: opacity 0.3s ease;
}
.quote-item:hover .author-avatar-sm::after,
.card:hover .author-avatar::after { opacity: .3; }
.author-avatar-sm img, .author-avatar img { transition: transform 0.3s ease; }
.quote-item:hover .author-avatar-sm img,
.card:hover .author-avatar img { transform: scale(1.1); }

/* ── Action buttons ───────────────────────────────────────────── */
.quote-actions .btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}
.quote-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes heartBeat {
    0%,100% { transform: scale(1);   }
    25%,75% { transform: scale(1.3); }
}
@keyframes bounceSmall {
    0%,100% { transform: translateY(0);   }
    50%     { transform: translateY(-3px); }
}
.bounce-animation { animation: bounceSmall 0.5s ease; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    border: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .col-lg-4 .card.position-sticky { position: relative !important; top: auto !important; }
}
@media (max-width: 768px) {
    .quote-meta { flex-direction: column; gap: 15px; align-items: flex-start !important; }
    .quote-actions { width: 100%; justify-content: flex-start; }
    .sorting-options .btn { padding: 8px 6px; font-size: .8rem; }
}
@media (max-width: 576px) {
    .quote-item { padding: 15px; margin: 0 5px; }
    .quote-content p { font-size: 1.1rem !important; }
    .quote-actions .btn { padding: 6px 10px; font-size: .85rem; }
    .quote-stats { flex-wrap: wrap; gap: 10px; }
    .sorting-options .col-4 { padding: 0 4px; }
    .sorting-options .btn { padding: 8px 4px; font-size: .75rem; }
}
