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

/* Author Main Image */
.author-main-image {
    transition: transform 0.3s ease;
    border: 5px solid white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.author-main-image:hover {
    transform: scale(1.05);
}

/* Quote Cards with Category Color Integration */
.card[data-quote-id] {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.card[data-quote-id]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-left-color: inherit;
}

.quote-content p {
    line-height: 1.6;
    color: #2d3748;
}

.quote-icon {
    transition: opacity 0.3s ease;
}

.card[data-quote-id]:hover .quote-icon i {
    opacity: 0.4 !important;
}

/* Stats Buttons */
.stat-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 6px;
}

.stat-item:hover {
    transform: scale(1.05);
}

.like-stat:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}
.like-stat:hover i {
    color: #dc3545 !important;
}

.bookmark-stat:hover {
    background-color: rgba(255, 193, 7, 0.1) !important;
}
.bookmark-stat:hover i {
    color: #ffc107 !important;
}

.comment-stat:hover {
    background-color: rgba(16, 102, 231, 0.1) !important;
}
.comment-stat:hover i {
    color: #1066E7 !important;
}

/* Copy Button Feedback */
.copy-quote-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    80% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.copy-success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-success i {
    color: white !important;
}

/* View Details Button with Category Color */
.view-details-btn {
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sorting-options .btn {
    padding: 6px 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Related Authors */
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}

/* Author Bio */
.bio-content {
    line-height: 1.75;
    font-size: 0.925rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .col-lg-4 .card.position-sticky {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 768px) {
    .author-main-image {
        width: 140px;
        height: 140px;
    }

    .sorting-options .btn {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .card[data-quote-id] {
        border-left-width: 3px;
    }
}

/* «مؤلفون ذوو صلة»: light tiles (as on /authors) with why each author is listed */
.related-author__avatar {
    object-fit: cover;
    border: 2px solid rgba(16, 102, 231, .15);
}

.related-author__reason {
    font-size: .75rem;
    padding: .1rem .55rem;
    border-radius: 1rem;
    color: #0D1B2E;
    background-color: rgba(77, 145, 255, .12);
}