/* persons.css - Styles untuk halaman persons */
/* ============================================
   PERSONS WIDGET STYLES - SPECIFIC CLASSES
   ============================================ */

/* Persons List Widget */
.drakor-persons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.drakor-person-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.drakor-person-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.drakor-person-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.drakor-person-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.drakor-person-item:hover .drakor-person-image img {
    border-color: #e63946;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.2);
}

.drakor-person-info {
    flex: 1;
    min-width: 0;
}

.drakor-person-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.drakor-person-name a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drakor-person-name a:hover {
    color: #e63946;
}

.drakor-person-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
}

.drakor-person-rating {
    color: #e63946;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.drakor-person-rating:before {
    content: '★';
    color: #ffc107;
    font-size: 11px;
}

.drakor-person-date {
    color: #868e96;
    font-size: 11px;
}

.drakor-widget-link {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 1px solid #dee2e6;
}

.drakor-widget-link:hover {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

/* Dropdown menu khusus untuk persons */
.drakor-dropdown-divider {
    height: 1px;
    background: #dee2e6;
    margin: 6px 0;
    border: none;
}

.drakor-dropdown-menu .drakor-see-more {
    font-weight: 500;
    color: #e63946;
    text-align: center;
    padding: 8px 12px;
    border-top: 1px solid #dee2e6;
    margin-top: 4px;
    font-size: 13px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.drakor-dropdown-menu .drakor-see-more:hover {
    background: #f8f9fa;
    color: #d00000;
}

/* Responsive styles untuk persons */
@media (max-width: 768px) {
    .drakor-person-image {
        width: 50px;
        height: 50px;
    }
    
    .drakor-person-name {
        font-size: 13px;
    }
    
    .drakor-person-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .drakor-person-date {
        font-size: 10px;
    }
}

/* Person Page Styles (untuk halaman persons.php) */
.drakor-persons-container {
    padding: 20px 0;
}

.drakor-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.drakor-person-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.drakor-person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-color: #e63946;
}

.drakor-person-card-image {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.drakor-person-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.drakor-person-card:hover .drakor-person-card-image img {
    transform: scale(1.05);
}

.drakor-person-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e63946, #f28482);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.drakor-person-card-info {
    padding: 15px;
}

.drakor-person-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.drakor-person-card-name a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s;
}

.drakor-person-card-name a:hover {
    color: #e63946;
}

.drakor-person-card-role {
    color: #e63946;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 6px 0;
}

.drakor-person-card-birth {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Person Single Page Styles (untuk person-single.php) */
.drakor-person-header {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.drakor-person-profile {
    display: flex;
    align-items: center;
    gap: 25px;
}

.drakor-person-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.drakor-person-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.drakor-person-basic-info h1 {
    color: #343a40;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.drakor-person-tagline {
    color: #6c757d;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.drakor-person-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.drakor-stat-item {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 13px;
    color: #495057;
}

.drakor-person-content-section {
    margin-bottom: 30px;
}

.drakor-section-title {
    color: #343a40;
    border-bottom: 2px solid #e63946;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Pagination untuk persons */
.drakor-person-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.drakor-person-pagination a {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.drakor-person-pagination a:hover,
.drakor-person-pagination a.active {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

/* Empty state */
.drakor-no-persons {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.drakor-no-persons i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
    display: block;
}

/* Grid untuk persons di index */
.drakor-persons-grid-index {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Khusus untuk widget di sidebar */
.widget .drakor-persons-list {
    margin-bottom: 0;
}

.widget .drakor-person-item {
    padding: 8px;
    margin-bottom: 0;
}

.widget .drakor-person-image {
    width: 50px;
    height: 50px;
}

.widget .drakor-person-name {
    font-size: 13px;
}

.widget .drakor-person-meta {
    font-size: 11px;
}
/* Person Single Page Styles */
.drakor-person-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.drakor-person-profile {
    display: flex;
    align-items: center;
    gap: 30px;
}

.drakor-person-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.drakor-person-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.drakor-person-basic-info h1 {
    color: #343a40;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.drakor-person-tagline {
    color: #6c757d;
    font-size: 16px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.drakor-person-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.drakor-stat-item {
    background: white;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    color: #495057;
}

.person-content {
    line-height: 1.8;
    font-size: 16px;
}

.person-content h2,
.person-content h3,
.person-content h4 {
    color: #343a40;
    margin-top: 30px;
    margin-bottom: 15px;
}

.person-content-section {
    margin: 40px 0;
}

.drakor-section-title {
    color: #343a40;
    border-bottom: 3px solid #e63946;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .drakor-person-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .drakor-person-avatar {
        width: 120px;
        height: 120px;
    }
    
    .drakor-person-basic-info h1 {
        font-size: 24px;
    }
    
    .drakor-person-stats {
        justify-content: center;
    }
    
    .drakor-stat-item {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* =============================================================================
   TRENDING PERSONS SECTION
   ============================================================================= */

.widget-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 400;
    opacity: 0.9;
}

.trending-persons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.trending-person-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trending-person-item:hover {
    background: #f0f7ff;
    border-color: #cfe2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.trending-person-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
    opacity: 0;
    transition: var(--transition);
}

.trending-person-item:hover::before {
    opacity: 1;
}

/* Trending Indicator */
.trending-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 40px;
    flex-shrink: 0;
}

.trending-indicator i {
    font-size: 1.2rem;
    animation: firePulse 2s infinite;
}

.trending-score {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

@keyframes firePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Person Image */
.drakor-person-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.trending-person-item:hover .drakor-person-image {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.drakor-person-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,107,0.2), rgba(78,205,196,0.2));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.trending-person-item:hover .drakor-person-image::before {
    opacity: 1;
}

.drakor-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trending-person-item:hover .drakor-person-image img {
    transform: scale(1.1);
}

/* Person Info */
.drakor-person-info {
    flex: 1;
    min-width: 0;
}

.drakor-person-name {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.drakor-person-name a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drakor-person-name a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Trending Stats */
.trending-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.like-count-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #495057;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    transition: var(--transition);
}

.trending-person-item:hover .like-count-small {
    background: rgba(40, 167, 69, 0.2);
    transform: translateY(-1px);
}

.like-count-small i {
    color: #28a745;
    font-size: 0.8rem;
}

.trending-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #495057;
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    transition: var(--transition);
}

.trending-person-item:hover .trending-rating {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.trending-rating i {
    color: #ffc107;
    font-size: 0.8rem;
}

/* Badge untuk Top 3 */
.trending-person-item:nth-child(1) .trending-indicator {
    position: relative;
}

.trending-person-item:nth-child(1) .trending-indicator::after {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 0.8rem;
    animation: trophyShine 2s infinite;
}

.trending-person-item:nth-child(2) .trending-indicator::after {
    content: '🥈';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
}

.trending-person-item:nth-child(3) .trending-indicator::after {
    content: '🥉';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
}

@keyframes trophyShine {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Progress Bar untuk Engagement Score */
.trending-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.trending-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trending-person-item {
        padding: 12px;
        gap: 12px;
    }
    
    .drakor-person-image {
        width: 50px;
        height: 50px;
    }
    
    .trending-indicator {
        min-width: 35px;
    }
    
    .trending-indicator i {
        font-size: 1rem;
    }
    
    .trending-score {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .drakor-person-name {
        font-size: 0.9rem;
    }
    
    .trending-stats {
        gap: 10px;
    }
    
    .like-count-small,
    .trending-rating {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .trending-person-item {
        flex-wrap: wrap;
    }
    
    .trending-indicator {
        order: 1;
    }
    
    .drakor-person-image {
        order: 2;
    }
    
    .drakor-person-info {
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #dee2e6;
    }
    
    .trending-stats {
        justify-content: center;
    }
    
    .widget-subtitle {
        font-size: 0.8rem;
    }
}

/* Empty State */
.trending-persons-list:empty::after {
    content: 'Belum ada data trending saat ini';
    display: block;
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px dashed #dee2e6;
}