/* Custom tab styles for person page */
.leftBlock .tabsPer {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1em;
    list-style: none;
    padding: 0;
}

.tabsItem {
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tabsItem:hover {
    background: #e0e0e0;
    color: #666;
}

.tabsItem.active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

.tabsItem.active.empty-tab {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    opacity: 0.8;
}

.tabsItem.has-content {
    color: #000;
    font-weight: 500;
}

.tabsItem.empty-tab {
    color: #999;
    opacity: 0.5;
    font-weight: 400;
    cursor: not-allowed;
    pointer-events: none;
}

.tabsItem.empty-tab:hover {
    background: #fff;
    color: #999;
    opacity: 0.5;
}

/* Tab content styles */
.tabContentPer {
    display: none;
    padding: 20px 0;
}

.tabContentPer.active {
    display: block;
}

/* Photo placeholder styles */
.no-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3/4;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.no-photo-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.no-photo-placeholder span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Image wrapper styles */
.imgW {
    width: 100%;
    margin-bottom: 20px;
}

.imgW img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 50px 20px;
}

.error-message h1 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.error-message p {
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Person page responsive */
    .wrapPersonContent {
        flex-direction: column;
        gap: 20px;
    }
    
    .rightBlock {
        width: 100%;
    }
    
    .tabsPer {
        flex-wrap: wrap;
    }
    
    .tabsItem {
        flex: 1;
        min-width: 120px;
        text-align: center;
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .person h1 {
        font-size: 24px;
    }
    
    /* Responsive photo placeholder */
    .no-photo-placeholder {
        width: 100%;
        aspect-ratio: 3/4;
        padding: 15px;
    }
    
    .no-photo-placeholder i {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .no-photo-placeholder span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Person page responsive */
    .person {
        padding: 10px;
    }
    
    .tabsPer {
        flex-direction: column;
    }
    
    .tabsItem {
        border-radius: 4px;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .person h1 {
        font-size: 20px;
    }
    
    /* Responsive photo placeholder */
    .no-photo-placeholder {
        width: 100%;
        aspect-ratio: 3/4;
        padding: 12px;
    }
    
    .no-photo-placeholder i {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .no-photo-placeholder span {
        font-size: 11px;
    }
}
