/* Standardized Detail Layout Styles */

/* Main Detail Card Container */
.candidate-detail-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Section */
.candidate-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.candidate-detail-card .candidate-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-color, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.candidate-detail-card .candidate-header {
    align-items: center;
    gap: 1.5rem;
}

.candidate-detail-card .candidate-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.candidate-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.candidate-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Detail Sections Container */
.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Detail Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detail-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rich-text-content {
    line-height: 1.6;
    color: var(--text-color);
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-actions .btn {
    min-width: 120px;
    text-align: center;
}

/* Link Styles */
.link-primary {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Dark Mode Styles */
.dark-mode .candidate-detail-card {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--border-color);
}

.dark-mode .detail-section {
    background: rgba(51, 65, 85, 0.5);
    border-color: var(--border-color);
}

.dark-mode .detail-content {
    background: rgba(51, 65, 85, 0.5);
    border-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions .btn {
        width: 100%;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .candidate-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .candidate-info h2 {
        font-size: 1.5rem;
    }
    
    .candidate-detail-card {
        padding: 1.5rem;
    }
    
    .candidate-detail-card .candidate-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}