/* person-single.css - Styles khusus untuk halaman detail person */

/* Reset dan Global */
.person-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Person Header */
.person-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.person-header:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.person-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    height: 450px;
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.person-image-container:hover {
    transform: translateY(-5px);
}

.person-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.person-image-container:hover img {
    transform: scale(1.05);
}

.person-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.person-title {
    font-size: 2.8rem;
    color: #2d3436;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, #6c5ce7, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.person-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.person-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.person-meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.person-meta-item i {
    color: #6c5ce7;
    font-size: 1.2rem;
}

.person-rating-value {
    background: linear-gradient(135deg, #ffd700, #ffcc00);
    color: #333;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.person-description-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #6c5ce7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.person-description-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
}

.person-description-box p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

.person-categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.person-category-tag {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.2);
}

.person-category-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

/* Vote System */
.person-vote-system {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
    margin-bottom: 40px;
    border: 2px solid #f1f3f5;
    position: relative;
    overflow: hidden;
}

.person-vote-system:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
}

.vote-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.vote-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
    border-radius: 2px;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vote-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.vote-btn:hover:before {
    left: 100%;
}

.vote-like {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.vote-like:hover {
    background: linear-gradient(135deg, #00a085, #00b7b7);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.4);
}

.vote-dislike {
    background: linear-gradient(135deg, #e17055, #fab1a0);
    color: white;
    box-shadow: 0 5px 15px rgba(225, 112, 85, 0.3);
}

.vote-dislike:hover {
    background: linear-gradient(135deg, #d65a3a, #f99f8a);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(225, 112, 85, 0.4);
}

.vote-btn i {
    font-size: 1.4rem;
}

.vote-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding-top: 25px;
    border-top: 2px dashed #e9ecef;
}

.vote-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.vote-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vote-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6c5ce7;
    line-height: 1;
    margin-bottom: 5px;
}

.vote-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Person Content */
.person-content-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.person-content-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
}

.person-content-section h2 {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #6c5ce7;
    position: relative;
    font-weight: 700;
}

.person-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #495057;
}

.person-content h3 {
    font-size: 1.7rem;
    color: #2d3436;
    margin-top: 35px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #e63946;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa, white);
    padding: 15px;
    border-radius: 8px;
}

.person-content h4 {
    font-size: 1.4rem;
    color: #6c5ce7;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.person-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.person-content p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #2d3436;
    font-weight: 500;
}

.person-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 3px solid white;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.person-content ul,
.person-content ol {
    margin-left: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6c5ce7;
}

.person-content li {
    margin-bottom: 12px;
    padding-left: 10px;
    line-height: 1.7;
}

.person-content li:before {
    content: '•';
    color: #e63946;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.person-content strong {
    color: #2d3436;
    font-weight: 700;
}

.person-content em {
    color: #6c5ce7;
    font-style: italic;
}

/* Table Styles */
.person-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.person-content table thead {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.person-content table thead th {
    padding: 18px 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.person-content table thead th:last-child {
    border-right: none;
}

.person-content table thead th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffd700;
}

.person-content table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.person-content table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.person-content table tbody tr:hover {
    background: linear-gradient(135deg, #f1f3f5, #e9ecef);
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.person-content table tbody td {
    padding: 15px;
    color: #495057;
    border-right: 1px solid #e9ecef;
    vertical-align: top;
}

.person-content table tbody td:last-child {
    border-right: none;
}

.person-content table tbody td strong {
    color: #e63946;
    font-weight: 600;
}

/* Blockquote Styles */
.person-content blockquote {
    border-left: 5px solid #6c5ce7;
    margin: 30px 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa, white);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #2d3436;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.person-content blockquote:before {
    content: '"';
    font-size: 4rem;
    color: rgba(108, 92, 231, 0.1);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.person-content blockquote p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Related Articles */
.related-articles-section {
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.related-articles-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #6c5ce7, #e63946, #ffd700);
}

.related-articles-title {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.related-articles-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
    border-radius: 2px;
}

.articles-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-article-modern {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    border: 1px solid #e9ecef;
}

.related-article-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.related-article-modern:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
    z-index: 1;
}

.related-article-modern a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    padding-bottom: 20px;
}

.related-article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-article-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-article-modern:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.related-article-modern h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.related-article-rating {
    background: linear-gradient(135deg, #ffd700, #ffcc00);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-article-date {
    color: #6c5ce7;
    font-weight: 500;
}

/* Person Sidebar */
.person-sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f5;
    position: relative;
    overflow: hidden;
}

.person-sidebar-widget:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #6c5ce7, #e63946);
}

.person-sidebar-title {
    font-size: 1.4rem;
    color: #2d3436;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6c5ce7;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-sidebar-title i {
    color: #e63946;
}

.other-person-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.other-person-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.other-person-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #6c5ce7;
}

.other-person-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #e63946;
    padding: 2px;
}

.other-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.other-person-name {
    font-size: 1rem;
    color: #2d3436;
    font-weight: 600;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.other-person-item:hover .other-person-name {
    color: #6c5ce7;
}

.other-person-rating {
    background: linear-gradient(135deg, #ffd700, #ffcc00);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Kategori List */
.kategori-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kategori-list li {
    margin-bottom: 12px;
}

.kategori-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.kategori-link:hover {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    transform: translateX(5px);
    border-color: #6c5ce7;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.kategori-name {
    flex-grow: 1;
    font-weight: 500;
}

.kategori-count {
    background: #e63946;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: linear-gradient(135deg, #f8f9fa, white);
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.tag:hover {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    transform: translateY(-3px);
    border-color: #e63946;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .person-detail-container {
        grid-template-columns: 1fr;
    }
    
    .person-header {
        grid-template-columns: 300px 1fr;
    }
    
    .articles-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .person-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .person-image-container {
        max-width: 400px;
        margin: 0 auto 30px;
        height: 400px;
    }
    
    .person-meta-grid {
        justify-content: center;
    }
    
    .vote-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .vote-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .vote-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .person-header,
    .person-content-section,
    .related-articles-section,
    .person-vote-system {
        padding: 25px;
    }
    
    .person-title {
        font-size: 2.2rem;
    }
    
    .person-image-container {
        height: 350px;
    }
    
    .person-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .vote-buttons {
        gap: 15px;
    }
    
    .person-content table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .person-header {
        padding: 20px;
    }
    
    .person-title {
        font-size: 1.8rem;
    }
    
    .person-image-container {
        height: 280px;
    }
    
    .person-content-section,
    .person-vote-system {
        padding: 20px;
    }
    
    .vote-buttons {
        flex-direction: column;
    }
    
    .vote-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 20px;
    }
    
    .related-articles-section {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.person-header {
    animation: fadeInUp 0.6s ease-out;
}

.person-vote-system {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.person-content-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.related-articles-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.person-sidebar-widget {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll Animations */
.person-content img,
.person-content table,
.person-content blockquote {
    animation: fadeIn 0.8s ease-out;
}

/* Empty State Handling */
.person-content p:empty,
.person-content div:empty {
    display: none;
}

/* Fix untuk konten yang tidak rapih */
.person-content br {
    display: none;
}

.person-content p + p {
    margin-top: 15px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}